BTW we are assuming (and this is an assumption) that you don't need to
change your artifact for each deployment artifact.

If you need to "tweak" the artifact for each deployment destination then
you actually need to create a separate module for each deployment
destination, as using profiles to modify the built artifact is a bad plan
(see
http://developer-blog.cloudbees.com/2012/11/maven-profiles-and-maven-way.html)

-Stephen


On 11 January 2013 10:49, Stephen Connolly
<[email protected]>wrote:

> ship-maven-plugin@mojo
>
>
> On 11 January 2013 10:39, Rainer Völschow <[email protected]> wrote:
>
>> Hi Patrick,
>>
>> one part of my question was, how can I pass the profiles to pom.xml
>>
>> > If what you want is to deploy a war with different servers (possibly
>> with
>> > different configurations), you could use profiles.
>>
>> It seems there is no way that I can use Maven only. So I go into
>> myself and try to look for an alternative way.
>>
>> 2013/1/10 Patrick Turcotte <[email protected]>:
>> > Hi,
>> >
>> > If what you want is to deploy a war with different servers (possibly
>> with
>> > different configurations), you could use profiles.
>> >
>> > And if you want to do it for all of them in one go, you could write a
>> script
>> > (bat, bash) that would wrap it.
>> >
>> > Patrick
>> >
>> >
>> > On 13-01-10 10:43 AM, Rainer Völschow wrote:
>> >>
>> >> Hello folks,
>> >>
>> >> at my work I've got the task to develop a maven build script, that is
>> >> able to deploy a project to different server enviroments. According my
>> >> resaerch in the Internet, it seems that the maven-invoker-plugin is
>> >> the only once option for that. I visited the homepage of that plugin
>> >> serveral times, but I couldn't get any idea how can I achive this.
>> >> Where I'm stuck is, how can I get all defined profiles and pass it to
>> >> the invoke-plugin?
>> >>
>> >> Thanks in Advance
>> >> Rainer
>> >>
>> >> PS: Any alternatives idears to rech the goal are welcome. :-)
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [email protected]
>> >> For additional commands, e-mail: [email protected]
>> >>
>> >
>> >
>> > --
>> > Patrick Turcotte
>> > Directeur technologique
>> > ------------------------------------------------
>> > [email protected]
>> > (819) 780-8955, poste 1129
>> > Sans frais 1-800-996-8955, poste 1129
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > 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