M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Matthew Wheaton
Hi all, In Maven 1.x, I could get a list of the jars in my version control repository, and dynamically add them to the Maven build path using an ant task. What's important to note, is that I have all my dependency jars in a few, KNOWN directories. I would like to be able to include all those

Re: M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Martin van den Bemt
1) Do what you are doing now. 2) Create on dependencies.xml (project.xml style) with ALL artifacts and dependencies. (problem is that it will not download anything, in my case it was a solution :) 3) Do something like this in a goal : u:available file=${basedir}/dependencies.xml

Re: M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Martin van den Bemt
Shit :) Your question was about maven 2... Sorry for the noice.. Mvgr, Martin Martin van den Bemt wrote: 1) Do what you are doing now. 2) Create on dependencies.xml (project.xml style) with ALL artifacts and dependencies. (problem is that it will not download anything, in my case it was a

Re: M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Jeff Jensen
Yes, we do the same thing. How to solve changed with M2. Now, use scopesystem/scope and systemPath. I think this JIRA discusses what your issue is. Brett described the un-recommended workaround. http://jira.codehaus.org/browse/MNG-1471 I look forward to reading your comments on this... :-)

Re: M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Matthew Wheaton
Jeff, I added a comment to that issue. If they take systemPath away, as he says, then that'll break me again, for sure. I'm really contemplating NOT using M2. In any case, my workaround to make it truly dynamic, is my build.bat file first calls an ANT script that compiles a DependencyBuilder

Re: M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Matthew Wheaton
All good points Jeff, I'm going to give M2 a try with my workaround, but if even one other thing gets in my way, I'll be reverting my build to Maven 1.x On 12/5/05, Jeff Jensen [EMAIL PROTECTED] wrote: Quoting Matthew Wheaton [EMAIL PROTECTED]: Jeff, I added a comment to that issue. If