RE: Add dependencies via plugin.jelly

2005-03-08 Thread eric . jacob
le, I want to add the MySQL connector jar to the project.xml file. Eric > -Original Message- > From: Brett Porter [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 08, 2005 3:38 PM > To: Maven Users List > Subject: Re: Add dependencies via plugin.jelly > > Theoretic

RE: Add dependencies via plugin.jelly

2005-03-08 Thread Adrian Tarau
Hi Eric, Yes you can. I had the same need to add dynamic dependency. I can give you a short explanation how to do it. You can create a Java bean class which has a property 'project' of type Project, and in your maven.xml you can initialize the bean and set the current mailto:[EMAIL PROTECTED]

Re: Add dependencies via plugin.jelly

2005-03-08 Thread Brett Porter
Theoretically, yes - but it's a bad idea. If the project needs the dependency, it should declare it - unless you are trying to mimic transitive dependencies or such. What are you attempting to do in the plugin? ie, why are you adding the dependencies? - Brett On Tue, 8 Mar 2005 15:33:51 -0500,