RE: Add dependencies via plugin.jelly

2005-03-08 Thread eric . jacob
Thanks for the reply.

I'm writing a template for the Maven Genapp Plug-in and I would like to
add some dependencies into the POM file depending on the user choices.
An example of that would be the possibility for the user to choose the
database he wants to use. If he chooses MySQL for example, 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
> 
> 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, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > This is my third attempt on the subject and I'll try to make my
question
> > clearer (and the mail's title).
> >
> > I'm currently developing a plug-in and I want to know if it's
possible
> > to add a dependency to the project.xml using the plugin.jelly file?
> >
> > Thanks in advance,
> >
> > Eric
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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



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] 
Sent: Tuesday, March 08, 2005 3:34 PM
To: users@maven.apache.org
Subject: Add dependencies via plugin.jelly

Hi all,

 

This is my third attempt on the subject and I'll try to make my question
clearer (and the mail's title).

 

I'm currently developing a plug-in and I want to know if it's possible
to add a dependency to the project.xml using the plugin.jelly file?

 

Thanks in advance,

 

Eric

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> This is my third attempt on the subject and I'll try to make my question
> clearer (and the mail's title).
> 
> I'm currently developing a plug-in and I want to know if it's possible
> to add a dependency to the project.xml using the plugin.jelly file?
> 
> Thanks in advance,
> 
> Eric
> 
>

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