[
http://jira.codehaus.org/browse/MNG-5006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=256775#action_256775
]
Sei Syvalta edited comment on MNG-5006 at 2/18/11 7:48 AM:
---
{quote}
- org.apache.maven.model.building.DefaultModelBuilder.readParentExternally
fails because of that (no repositories)
- parent is not found from local repository because the key in repo tracking
properties is "test-parent-pom-1.0.1.pom>releases" but is searched with key
"test-parent-pom-1.0.1.pom>".{quote}
The difference to the working direct SNAPSHOT reference (i.e. non-range) is the
list of repositories. The local repo lookup fails also in that case, but parent
will be found from remote repo.
was (Author: bugittaa):
> org.apache.maven.model.building.DefaultModelBuilder.readParentExternally
fails because of that (no repositories)
> parent is not found from local repository because the key in repo tracking
> properties is "test-parent-pom-1.0.1.pom>releases" but is searched with key
> "test-parent-pom-1.0.1.pom>".
The difference to the working direct SNAPSHOT reference (i.e. non-range) is the
list of repositories. The local repo lookup fails also in that case, but parent
will be found from remote repo.
> M3 attempts to get released parent pom from snapshot repository when a
> dependency has range
> ---
>
> Key: MNG-5006
> URL: http://jira.codehaus.org/browse/MNG-5006
> Project: Maven 2 & 3
> Issue Type: Bug
>Affects Versions: 3.0.2
> Environment: WinXP SP3, Java 6u20
>Reporter: Kristoffer Peterhansel
> Attachments: mvn-verify-fixed-version.log, mvn-verify-offline.log,
> mvn-verify-range-version.log
>
>
> I have a bit of a strange issue. When running under Maven 3.0.2 I am getting
> build errors when I try to build one of our projects when one of their
> dependencies have a range version. But when setting it to a specific version
> it seems to work. The same project works without a hitch in Maven 2.2.1.
> As can be seen from the first included verbose trace
> (mvn-verify-range-version.log). Maven attempts to get the pom from our
> snapshot repository. That will, obviously, not work for a released artefact.
> Changing the dependency version from the [1,2) range to 1.0.1-SNAPSHOT seems
> to skip that step completely. Even though it resolves to the same version in
> the end. As seen in the other verbose trace (mvn-verify-fixed-version.log)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira