Re: inherit execution only for packaging war

2008-03-25 Thread Kees van Dieren
Thanks for your suggestion! I think this solution helps for us.

Best regards,

Kees

On Wed, Mar 19, 2008 at 4:26 PM, Wayne Fay [EMAIL PROTECTED] wrote:

 I have no idea if its a bug or not, but a way to fix things would be
 to simply add another level of parent in the project under which all
 your war projects are located.

 Thus:
 top-parent
 + war-parent
 ++ war-project1
 ++ war-project2
 ++ war-project3

 Then tell your war-projects to use war-parent as its parent, and set
 the configuration inside it.

 Wayne

 On 3/19/08, Wendy Smoak [EMAIL PROTECTED] wrote:
  On Wed, Mar 19, 2008 at 6:51 AM, Kees van Dieren
  [EMAIL PROTECTED] wrote:
 
In our root pom.xml we have the maven war plugin defined:
  ...
On mvn package, it will run mvn war:inplace, but not only for war
 artifacts,
but also for jar artifacts.
  
How can we make this execution only applicable for projects with
 packaging
war?
 
  Is it a bug in the war plugin perhaps?  Should it somehow know not
  to run in the jar modules?
 
  If you don't get more info here, I'd construct a simple example to
  demonstrate when it does the wrong thing, and attach it to an issue in
  JIRA.  http://jira.codehaus.org/browse/MWAR
 
  --
  Wendy
 
  -
  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]




-- 
Squins IT Solutions
Kees van Dieren
Oranjestraat 23
2983 HL Ridderkerk
Phone: +31 180 41 45 20
Mobile: +31 6 30 41 38 41
www: http://squins.com


Re: inherit execution only for packaging war

2008-03-20 Thread Tim Kettler

Wendy Smoak schrieb:

On Wed, Mar 19, 2008 at 6:51 AM, Kees van Dieren
[EMAIL PROTECTED] wrote:


 In our root pom.xml we have the maven war plugin defined:

...

 On mvn package, it will run mvn war:inplace, but not only for war artifacts,
 but also for jar artifacts.

 How can we make this execution only applicable for projects with packaging
 war?


Is it a bug in the war plugin perhaps?  Should it somehow know not
to run in the jar modules?


It's not a bug. The war plugin execution is explicitly configured in the
parent pom and hence it's executed in every module inheriting from the
parent.

The correct way to configure something like this, is to configure the
war plugin in the pluginManagement/ section of the pom. The
configuration is then picked up by child modules that have the war
plugin in their lifecycle (like war modules).

-Tim


If you don't get more info here, I'd construct a simple example to
demonstrate when it does the wrong thing, and attach it to an issue in
JIRA.  http://jira.codehaus.org/browse/MWAR




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



inherit execution only for packaging war

2008-03-19 Thread Kees van Dieren
Hi folks,

Shortly what we wish to have:
* we have a pom.xml (packaging: pom): with multiple modules of type war and
jar
* for all war projects, we wish to run war:inplace after the war:war task.

How can we do this?

In our root pom.xml we have the maven war plugin defined:
plugin
artifactIdmaven-war-plugin/artifactId
executions
execution
phaseinstall/phase
goals
goalinplace/goal
/goals
configuration
/configuration
/execution
/executions
configuration
/plugin

On mvn package, it will run mvn war:inplace, but not only for war artifacts,
but also for jar artifacts.

How can we make this execution only applicable for projects with packaging
war?

Thanks in advance for your time!

Best regards,

Kees

-- 
Squins IT Solutions
Kees van Dieren
Oranjestraat 23
2983 HL Ridderkerk
Phone: +31 180 41 45 20
Mobile: +31 6 30 41 38 41
www: http://squins.com


Re: inherit execution only for packaging war

2008-03-19 Thread Wendy Smoak
On Wed, Mar 19, 2008 at 6:51 AM, Kees van Dieren
[EMAIL PROTECTED] wrote:

  In our root pom.xml we have the maven war plugin defined:
...
  On mvn package, it will run mvn war:inplace, but not only for war artifacts,
  but also for jar artifacts.

  How can we make this execution only applicable for projects with packaging
  war?

Is it a bug in the war plugin perhaps?  Should it somehow know not
to run in the jar modules?

If you don't get more info here, I'd construct a simple example to
demonstrate when it does the wrong thing, and attach it to an issue in
JIRA.  http://jira.codehaus.org/browse/MWAR

-- 
Wendy

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



Re: inherit execution only for packaging war

2008-03-19 Thread Wayne Fay
I have no idea if its a bug or not, but a way to fix things would be
to simply add another level of parent in the project under which all
your war projects are located.

Thus:
top-parent
+ war-parent
++ war-project1
++ war-project2
++ war-project3

Then tell your war-projects to use war-parent as its parent, and set
the configuration inside it.

Wayne

On 3/19/08, Wendy Smoak [EMAIL PROTECTED] wrote:
 On Wed, Mar 19, 2008 at 6:51 AM, Kees van Dieren
 [EMAIL PROTECTED] wrote:

   In our root pom.xml we have the maven war plugin defined:
 ...
   On mvn package, it will run mvn war:inplace, but not only for war 
  artifacts,
   but also for jar artifacts.
 
   How can we make this execution only applicable for projects with packaging
   war?

 Is it a bug in the war plugin perhaps?  Should it somehow know not
 to run in the jar modules?

 If you don't get more info here, I'd construct a simple example to
 demonstrate when it does the wrong thing, and attach it to an issue in
 JIRA.  http://jira.codehaus.org/browse/MWAR

 --
 Wendy

 -
 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]