maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arthur Bauer (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (MNG-5821) Documentation of the element parent.relativePath wrong in XSD
Date Mon, 27 Jul 2015 13:43:04 GMT

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

Arthur Bauer edited comment on MNG-5821 at 7/27/15 1:42 PM:
------------------------------------------------------------

There are 3 maven projects in the attached zip file:
- bundle
- child
- parent

Just try to build the bundle. It will fail with a message like this:
{code}
[ERROR]     Non-resolvable parent POM: Failure to find test:parent:pom:1.0-SNAPSHOT in http://mvn.intra/artifactory/libs-snapshot
was cached in the local repository, resolution will not be reattempted until the update interval
of snapshots has elapsed or updates are forced and 'parent.relativePath' points at wrong local
POM @ line 5, column 11 -> [Help 2]
{code}

But if you build the parent project first (mvn install) and then build the bundle project
it will succeed.


was (Author: arci):
There are 3 maven projects in the attached zip file:
- bundle
- child
- parent

Just try to build the bundle. It will fail a message like this:
{code}
[ERROR]     Non-resolvable parent POM: Failure to find test:parent:pom:1.0-SNAPSHOT in http://mvn.intra/artifactory/libs-snapshot
was cached in the local repository, resolution will not be reattempted until the update interval
of snapshots has elapsed or updates are forced and 'parent.relativePath' points at wrong local
POM @ line 5, column 11 -> [Help 2]
{code}

But if you build the parent project first (mvn install) and then build the bundle project
it will succeed.

> Documentation of the element parent.relativePath wrong in XSD
> -------------------------------------------------------------
>
>                 Key: MNG-5821
>                 URL: https://issues.apache.org/jira/browse/MNG-5821
>             Project: Maven
>          Issue Type: Documentation
>            Reporter: Arthur Bauer
>             Fix For: waiting-for-feedback
>
>         Attachments: test.zip
>
>
> The documentation of the element parent.relativePath in the XSD file seems to be wrong
or outdated. It says: 
> "Maven looks for the parent pom first in the reactor of currently building projects,
then in this location on the filesystem, then the local repository, and lastly in the remote
repo." 
> (Source: http://maven.apache.org/xsd/maven-4.0.0.xsd)
> But the actual documentation of maven says
> "Maven looks for the parent POM first in this location on the filesystem, then the local
repository, and lastly in the remote repo."
> (Source: http://maven.apache.org/ref/3.0.3/maven-model/apidocs/org/apache/maven/model/Parent.html#getRelativePath%28%29)
> I have tested it on my local and I have seen the behavior as described in the second
source, i.e. maven does not look for the parent pom in the reactor of currently building projects
first.
> So this is pretty misleading. It is even more misleading for us, as we are reading the
documentation directly from eclipse, which loads it from the XSD file.
> Could you please correct the XSD documentation?



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

Mime
View raw message