Skipping some stuff in a multi-configuration Maven project

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Skipping some stuff in a multi-configuration Maven project

Fabrizio Giudici
So,

I have a multi-configuration project which uses Maven. So far I have two
configurations (Java 5 and Java 6) and everything works. Now I'd like to
have a deploy to be executed at the end of the stuff. Indeed it already
works, but of course the deploy is performed both for the Java 5 and the
Java 6 configurations. As I'll add more configurations, this will get
ridiculous. So I'd only like to perform the deploy on the last
configuration executed. I can think of profiles, and conditioning them
to the property that defines the configuration, but I'm missing the
final step on how to disable a goal with a profile.

Thanks.

--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
[hidden email] - mobile: +39 348.150.6941


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Skipping some stuff in a multi-configuration Maven project

Nord, James
Set a property maven.deploy.skip to true in the profile should do your
trick.


> -----Original Message-----
> From: Fabrizio Giudici [mailto:[hidden email]]
> Sent: 01 July 2009 14:35
> To: [hidden email]
> Subject: Skipping some stuff in a multi-configuration Maven project
>
> So,
>
> I have a multi-configuration project which uses Maven. So far
> I have two configurations (Java 5 and Java 6) and everything
> works. Now I'd like to have a deploy to be executed at the
> end of the stuff. Indeed it already works, but of course the
> deploy is performed both for the Java 5 and the Java 6
> configurations. As I'll add more configurations, this will
> get ridiculous. So I'd only like to perform the deploy on the
> last configuration executed. I can think of profiles, and
> conditioning them to the property that defines the
> configuration, but I'm missing the final step on how to
> disable a goal with a profile.
>
> Thanks.
>
> --
> Fabrizio Giudici - Java Architect, Project Manager
> Tidalwave s.a.s. - "We make Java work. Everywhere."
> weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
> [hidden email] - mobile: +39 348.150.6941
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the [hidden email] and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]