[ 
https://jira.codehaus.org/browse/MANTTASKS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Clemens Ballarin closed MANTTASKS-236.
--------------------------------------

    Resolution: Not A Bug

Defective repository configuration in settings.xml, see MNG-2631.
                
> Dependencies task picks POM from releases but JAR from snapshots
> ----------------------------------------------------------------
>
>                 Key: MANTTASKS-236
>                 URL: https://jira.codehaus.org/browse/MANTTASKS-236
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Bug
>          Components: dependencies task
>    Affects Versions: 2.1.3
>         Environment: Apache Ant version 1.7.1
> Artifactory 2.6.6
>            Reporter: Clemens Ballarin
>
> This issue manifests when using a version range.
> {code:xml}
>   <artifact:dependencies pathId="remoteexec.classpath">
>     <dependency groupId="xyz" artifactId="remoteexec" version="[1.3]"/>
>   </artifact:dependencies>
> {code}
> produces this failure:
> {noformat}
> [artifact:dependencies] Downloading: xyz/remoteexec/1.3/remoteexec-1.3.pom 
> from repository central at http://localhost:8081/artifactory/libs-release
> [artifact:dependencies] Transferring 3K from central
> [artifact:dependencies] Downloading: xyz/remoteexec/1.3/remoteexec-1.3.jar 
> from repository snapshots at http://localhost:8081/artifactory/libs-snapshot
> [artifact:dependencies] Unable to locate resource in repository
> {noformat}
> While the POM is correctly retrieved from lib-release-local, getting the JAR 
> from libs-snapshot-local obviously must fail.
> When setting the version to "1.3" the dependency is resolved correctly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to