-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Affected version
at least 3.5.1, likely earlier versions too
Bug description
I am using maven v3.9.11
In my pom.xml I define something like
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<plugin.id>foo-bar</plugin.id>
</properties>
If I run
mvn org.apache.maven.plugins:maven-help-plugin:3.5.1:evaluate -Dexpression='plugin.id' -q -DforceStdout
I'd expect to get back foo-bar, instead I get back org.apache.maven.plugins:maven-help-plugin:3.5.1.
Using project.properties.plugin.id I get null object or invalid expression. I can however get all of the properties (including plugin.id) if I only use project.properties.
I have also tried with -Dartifact specified - the behavior didn't change.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working