custom deployment cycle

View: New views
4 Messages — Rating Filter:   Alert me  

custom deployment cycle

by olip :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everyone!
I am a total newbie to Maven and cant seem to figure out the following.

I want to use one maven command to do the following thing:

1.build a war file out of my project and install it in the local repository
2.build an executable jar file which includes the war file (I have written a jetty class to load it within the jar)
3.make a project site
4.deploy everything

I can do this by typing:
four commands on the command line:
mvn install
mvn assembly:assembly
mvn site
mvn deploy


how can I do several different maven things with one maven command, can I do this with goals tags?

Thank you for our help
Oliver

Re: custom deployment cycle

by Wendy Smoak-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jul 1, 2009 at 6:58 AM, olip<oliverpelz@...> wrote:

> I can do this by typing:
> four commands on the command line:
> mvn install
> mvn assembly:assembly
> mvn site
> mvn deploy

You should be able to get it down to "mvn site deploy" if you change
your assembly plugin configuration to one of the 'attached' goals that
runs automatically as part of the build.

deploy implies (is later in the lifecycle than) install, so you don't need both.

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: custom deployment cycle

by olip :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Wendy,
Can you give me an example what do you mean by "attached" goals in my assembly plugin configuration. Sorry but I am a total newbie.
Thank you for your help
Oli
Wendy Smoak-3 wrote:
On Wed, Jul 1, 2009 at 6:58 AM, olip<oliverpelz@googlemail.com> wrote:

> I can do this by typing:
> four commands on the command line:
> mvn install
> mvn assembly:assembly
> mvn site
> mvn deploy

You should be able to get it down to "mvn site deploy" if you change
your assembly plugin configuration to one of the 'attached' goals that
runs automatically as part of the build.

deploy implies (is later in the lifecycle than) install, so you don't need both.

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

Re: custom deployment cycle

by Wendy Smoak-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jul 1, 2009 at 7:16 AM, olip<oliverpelz@...> wrote:

> Thanks Wendy,
> Can you give me an example what do you mean by "attached" goals in my
> assembly plugin configuration. Sorry but I am a total newbie.

See http://maven.apache.org/plugins/maven-assembly-plugin/usage.html
and scroll down to Building an Assembly as Part of the Build Lifecycle .

(We really need to get anchors on that page, or split it up...)

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...