You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2011/07/25 23:16:42 UTC
[jira] Closed: (MNG-5117) UnresolvableModelException in aggregator
POM when parent POM is separate and not yet built
[ https://jira.codehaus.org/browse/MNG-5117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MNG-5117.
----------------------------------
Resolution: Not A Bug
Assignee: Benjamin Bentmann
Please recheck the error message:
bq. The project com.example:com.example.module1:0.1.0-SNAPSHOT [...] and 'parent.relativePath' points at wrong local POM @ line
which is exactly the case. All modules that refer to a parent need to have the proper relativePath, not just one of them.
> UnresolvableModelException in aggregator POM when parent POM is separate and not yet built
> ------------------------------------------------------------------------------------------
>
> Key: MNG-5117
> URL: https://jira.codehaus.org/browse/MNG-5117
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Bootstrap & Build, Command Line, POM
> Affects Versions: 3.0.3
> Reporter: Jonathan Whitall
> Assignee: Benjamin Bentmann
> Attachments: com.example.zip, maven2.log, maven3.log
>
>
> I get the following error when attempting to build an aggregator POM who references an external parent (but locally specified by parent.relativePath):
> Non-resolvable parent POM: Could not find artifact com.example:com.example.parent:pom:0.1.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 4, column 10
> Example is attached as well as two log files (one for Maven 2.2.1 which works correctly, one for Maven 3.0.3 which does not)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira