Ant Tasks use of <authentication> is inconsistent
-------------------------------------------------

                 Key: MNG-2492
                 URL: http://jira.codehaus.org/browse/MNG-2492
             Project: Maven 2
          Issue Type: Bug
          Components: Ant tasks
    Affects Versions: 2.0.4
         Environment: cygwin/win32
            Reporter: jonathan anderson
            Priority: Minor


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

        

Reply via email to