[ 
https://issues.apache.org/jira/browse/MPH-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15639875#comment-15639875
 ] 

Guillaume Boué commented on MPH-114:
------------------------------------

When invoking {{mvn help:evaluate -Dartifact=com.acme:aggregator}}, without 
specifying the version of the wanted artifact, the plugin tries to locate the 
latest version of it. But when no metadata for this artifact are present in the 
local repository, and the artifact cannot be found in any remote repositories, 
it cannot determine the latest version and fails.

The solution is therefore to pass a version with {{mvn help:evaluate 
-Dartifact=com.acme:aggregator:0.0.1-SNAPSHOT}}, and it will find it from the 
reactor, if present.

The documentation didn't cover the case when no version is specified, so the 
real fix here is to clarify the doc.

> Goal fails with “Unable to get the POM for the artifact”
> --------------------------------------------------------
>
>                 Key: MPH-114
>                 URL: https://issues.apache.org/jira/browse/MPH-114
>             Project: Maven Help Plugin
>          Issue Type: Bug
>          Components: evaluate
>    Affects Versions: 2.2
>            Reporter: Jakub Bochenski
>
> See linked SO question



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to