Baubak Gandomi created MPH-172:
----------------------------------

             Summary: Allow expression to fetch a dependency given an artefactID
                 Key: MPH-172
                 URL: https://issues.apache.org/jira/browse/MPH-172
             Project: Maven Help Plugin
          Issue Type: New Feature
          Components: expressions
            Reporter: Baubak Gandomi


I would like to know the version of a dependency which is being used in the 
pom. 

Today if I want to do it, the only way I know is to:
{code:java}
mvn help:evaluate   -Dexpression=project.dependencies[5].version   
-DforceStdout {code}
The problem with this is that I need to know the order in which a dependency 
has been defined. What I would like is to do dependency map fetching. Example 
for an artefact with th artefactId "BBB", I should be able to get the used 
version by:
{code:java}
mvn help:evaluate   -Dexpression=project.dependencies["BBB"].version   
-DforceStdout {code}
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to