Yes, just put the config in a profile block.

-----Original Message-----
From: Ken Liu [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 29, 2008 4:17 PM
To: Maven Users List
Subject: Re: SNAPSHOT checking plugin?

Ok. The problem is that I would like to do the check for the SNAPSHOT
versions only at release-time, just like the release plugin does.
Normally,
the developers depend on SNAPSHOT dependencies during day to day
development, but at release time, we update all the dependencies to
depend
on specific versions.

Is there a way I can use profiles to add the configuration for the
enforcer
so that it only gets run when a special "release" profile is activated?

Ken


On 2/29/08, Brian E. Fox <[EMAIL PROTECTED]> wrote:
>
> This is the only way to do it. You should have a common pom that all
> your stuff shares and you would just put the config in that one place.
>
> -----Original Message-----
> From: Ken Liu [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 29, 2008 11:19 AM
> To: Maven Users List
> Subject: Re: SNAPSHOT checking plugin?
>
> This looks great, but I would prefer not to add additional
configuration
> to
> my POMs just to do a check for SNAPSHOT versions.  Is there any way to
> achieve this without adding stuff to POMs? (I would have to add
> configuration to all of my POMs, of which there are many).
>
> Thanks,
>
> Ken
>
>
> On 2/28/08, Jason Chaffee <[EMAIL PROTECTED]> wrote:
> >
> > maven-enforcer-plugin
> >
> > you might have to build the latest from source to get all the
> documented
> > functionality as the current released one doesn't support everything
> on
> > the Web site.
> >
> > -----Original Message-----
> > From: Ken Liu [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, February 28, 2008 3:06 PM
> > To: Maven Users List
> > Subject: SNAPSHOT checking plugin?
> >
> > Hi all -
> >
> > I really like that the release-plugin checks the project for any
> > SNAPSHOT
> > dependencies, but I am not so crazy about the release-plugin itself.
> Is
> > there any plugin available that will only do the check for SNAPSHOT
> > dependencies, or is there any other way to do this?
> >
> > Thanks,
> >
> > Ken
> >
> >
---------------------------------------------------------------------
> > 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]
>
>

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

Reply via email to