|
> Can it help you ? Not really because I use mostly ibiblio. The other repository is just for jars that are not in ibiblio. A single project can depend on jars that are on both repositories. Anyway I just use the ant build.xml to not disturb developers that don't still know maven. In the end I would prefer to work in an only maven environment. So don't worry I can live with what we have now. Thanks for trying. I understand your problem. Proxying would be the way to go in most cases. However it won't work in my case. I am working on an open source project. The 'specific' remote repository is simply hosted on sourceforge. I don't have the luxury, at the moment, to setup a publicly available java application server for the proxy. ok. I think I found a way to do it.
Arnaud Heritier made changes - 27/Feb/05 04:30 PM
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: On execution of the script, ant complains with the following: BUILD FAILED $ 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:
In any case I really appreciate what you have done. Oscar
I just publish a new snapshot and updated the staging site. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Not really easy to do.
Because of
MPANT-20, we define a unique property for each dependency. Using several repositories will break it because we'll need to download several times the same dependency. We'll not be able to do it with a property (which is immutable).What we can do easily is to provide a property which will allow the user to select the repository to use (and not the default ${maven.repo.remote}[0]). Can it help you ?