[
http://jira.codehaus.org/browse/MANTTASKS-13?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Herve Boutemy closed MANTTASKS-13.
----------------------------------
Assignee: Herve Boutemy
Resolution: Fixed
Fix Version/s: 2.0.9
fixed in trunk r615613, 2.0.x branch r615614
> Ant Tasks use of <authentication> is inconsistent
> -------------------------------------------------
>
> Key: MANTTASKS-13
> URL: http://jira.codehaus.org/browse/MANTTASKS-13
> Project: Maven 2.x Ant Tasks
> Issue Type: Bug
> Affects Versions: 2.0.4, 2.0.6, 2.0.7
> Environment: cygwin/win32
> Reporter: jonathan anderson
> Assignee: Herve Boutemy
> Priority: Minor
> Fix For: 2.0.9
>
>
> In the ant build file, authentication works fine if you do:
> <artifact:dependencies pathId="dependency.classpath">
> <dependency groupId="edu.blah" artifactId="blah"
> version="1.0-SNAPSHOT"/>
> <remoteRepository id="abcde.repository"
> url="https://blah.blah.edu:8081/maven2">
> <authentication username="username" password="password"/>
> <remoteRepository>
> </artifact:dependencies>
> But, if you do
> <artifact:remoteRepository id="abcde.repository"
> url="https://blah.blah.edu:8081/maven2">
> <authentication username="username" password="password"/>
> </artifact:remoteRepository>
> <artifact:dependencies pathId="dependency.classpath">
> <dependency groupId="edu.blah" artifactId="blah"
> version="1.0-SNAPSHOT"/>
> <artifact:remoteRepository refid="abcde.repository"/>
> </artifact:dependencies>
> It fails mysteriously. The remoteRepository is found, but the http client
> does not respond to the authentication challenge. The only error which
> presents is a vague "Error transferring file" message
--
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