The following comment has been added to this issue:

     Author: Oscar Picasso
    Created: Sun, 27 Feb 2005 6:51 PM
       Body:
I tested your fix.

It works and can retrieves the jars from several repositories.

Some few comments below.

1- The generated build.xml script has the following lines:
  <property name="proxy.host" value="${maven.proxy.host}">
  </property>

In case you don't have set ${maven.proxy.host}, proxy.host is set to the string 
"${maven.proxy.host}" so the script is in "useProxy mode".

On execution of the script, ant complains with the following:

BUILD FAILED
<path-to-project>/build.xml:313: java.lang.NumberFormatException: For input 
string: "${maven.proxy.port}"

In order to succeed you have to explicitly set ${maven.proxy.port} to an empty 
string. Something like:

$ ant -Dmaven.proxy.host=

which is not something you should have to do.

My first impression is that the two lines that set proxy.host shouldn't be 
generated when maven.proxy.host is not set in maven.

2- Once the problem above corrected, the ant script execution produce several 
error messages like:

      [get] Error opening connection java.io.FileNotFoundException...

It doesn't affect the final results. It doesn't mean that something really went 
wrong, just that some jars are not in some repositories which is expected.

Removing these pesky messages would be "la cerise sur le g�teau".

I'm not sure, though, if:
- it's easy.
- it's doable without removing the messages that need to remain (for example if 
all connection for a give jar failed).

In any case I really appreciate what you have done.

Oscar

---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MPANT-24?page=comments#action_30355

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPANT-24

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPANT-24
    Summary: Ant build.xml looking for dependenciesin several remote 
repositories
       Type: Improvement

     Status: Closed
   Priority: Major
 Resolution: FIXED

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-ant-plugin
   Fix Fors:
             1.9
   Versions:
             1.8.1

   Assignee: Arnaud HERITIER
   Reporter: Oscar Picasso

    Created: Sat, 26 Feb 2005 5:52 PM
    Updated: Sun, 27 Feb 2005 6:51 PM
Environment: Any

Description:
The generated ant build.xml only tries to download dependent jars from one 
remote repository.

It should also try to download from the alternate remote repositories in  
maven.repo.remote.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to