nerbb-techmatrix opened a new issue, #351:
URL: https://github.com/apache/maven-help-plugin/issues/351

   ### 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.
   
   This might be related to #310 and #336.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to