You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Meyer <mi...@bluewin.ch> on 2006/04/19 19:15:35 UTC

@execute goal="...."

Hi,
I wrote a simple webstart plugin. There are three goals:
webstart:sign
webstart:jnlp
webstart:webstart

sign and jnlp can be executed independently. But the webstart
goal should execute the sign and the jnlp goal. I tried the
@execute annotation but I couldn't find out how to execute
two goals.
 
Cheers,
michael


This is what I've tried till now:

 /**
  * @goal webstart
  * @execute phase="jnlp"
  * @execute phase="sign"
  * @description Create a war archive
  */
public class WebstartMojo extends AbstractMojo
 
/**
  * @goal webstart
  * @execute phase="jnlp, sign"
  * @description Create a war archive
  */
public class WebstartMojo extends AbstractMojo
 
/**
  * @goal webstart
  * @execute phase="jnlp sign"
  * @description Create a war archive
  */
public class WebstartMojo extends AbstractMojo
 

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


Re: @execute goal="...."

Posted by Rinku <ra...@gmail.com>.
Hi,

I don't know about @execute annotation, but you could also use Maven 
Embedder to execute the two goals.

Cheers,
Rahul


----- Original Message ----- 
From: "Michael Meyer" <mi...@bluewin.ch>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Thursday, April 20, 2006 5:15 AM
Subject: @execute goal="...."


> Hi,
> I wrote a simple webstart plugin. There are three goals:
> webstart:sign
> webstart:jnlp
> webstart:webstart
>
> sign and jnlp can be executed independently. But the webstart
> goal should execute the sign and the jnlp goal. I tried the
> @execute annotation but I couldn't find out how to execute
> two goals.
>
> Cheers,
> michael
>
>
> This is what I've tried till now:
>
> /**
>  * @goal webstart
>  * @execute phase="jnlp"
>  * @execute phase="sign"
>  * @description Create a war archive
>  */
> public class WebstartMojo extends AbstractMojo
>
> /**
>  * @goal webstart
>  * @execute phase="jnlp, sign"
>  * @description Create a war archive
>  */
> public class WebstartMojo extends AbstractMojo
>
> /**
>  * @goal webstart
>  * @execute phase="jnlp sign"
>  * @description Create a war archive
>  */
> public class WebstartMojo extends AbstractMojo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


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


Re: @execute goal="...."

Posted by Tom Huybrechts <to...@gmail.com>.
you could define a custom lifecycle 'webstart' that includes the sign
and jnlp mojos, and then let the webstart mojo fork this lifecycle
with:
@execute phase="jnlp" lifecycle="webstart"

See http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
(at the end)

Never tried it myself...

On 4/19/06, Michael Meyer <mi...@bluewin.ch> wrote:
> Hi,
> I wrote a simple webstart plugin. There are three goals:
> webstart:sign
> webstart:jnlp
> webstart:webstart
>
> sign and jnlp can be executed independently. But the webstart
> goal should execute the sign and the jnlp goal. I tried the
> @execute annotation but I couldn't find out how to execute
> two goals.
>
> Cheers,
> michael
>
>
> This is what I've tried till now:
>
>  /**
>   * @goal webstart
>   * @execute phase="jnlp"
>   * @execute phase="sign"
>   * @description Create a war archive
>   */
> public class WebstartMojo extends AbstractMojo
>
> /**
>   * @goal webstart
>   * @execute phase="jnlp, sign"
>   * @description Create a war archive
>   */
> public class WebstartMojo extends AbstractMojo
>
> /**
>   * @goal webstart
>   * @execute phase="jnlp sign"
>   * @description Create a war archive
>   */
> public class WebstartMojo extends AbstractMojo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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