Re: How to execute jar:jar just once?

2006-07-25 Thread Denis Cabasson


Wayne Fay wrote:
 
 I think you should just move the configuration/ element to be a
 child inside plugin/, and then remove the executions/ completely.
 
 Wayne
 

+1 with Wayne.

Should get the resulting part in your build/plugins part:
plugin 
groupIdorg.apache.maven.plugins/groupId 
artifactIdmaven-jar-plugin/artifactId 
version2.1-SNAPSHOT/version 
   configuration 
archive 
manifestSections 
manifestSection 
nameel4j-config/name 
manifestEntries 
Module${el4j-config.module}/Module 
Files${el4j-config.files}/Files 
  
Dependencies${el4j-config.dependencies}/Dependencies 
/manifestEntries 
/manifestSection 
/manifestSections 
/archive 
/configuration 
/plugin

What you want to do is change the configuration of the jar plugin, not add a
execution of this plugin with a specific configuration

Denis.
-- 
View this message in context: 
http://www.nabble.com/How-to-execute-jar%3Ajar-just-once--tf1993039.html#a5481055
Sent from the Maven - Users forum at Nabble.com.


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



How to execute jar:jar just once?

2006-07-24 Thread Zeltner Martin
Hello!

I have the following plugin config in my pom with packaging jar:

---
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
version2.1-SNAPSHOT/version
executions
execution
iddefault/id
goals
goaljar/goal
/goals
configuration
archive
manifestSections
manifestSection
nameel4j-config/name
manifestEntries
Module${el4j-config.module}/Module
Files${el4j-config.files}/Files
 
Dependencies${el4j-config.dependencies}/Dependencies
/manifestEntries
/manifestSection
/manifestSections
/archive
/configuration
/execution
/executions
/plugin
---

If I have a look at the console output when executing mvn package I
can see that goal jar:jar is executed twice. The first invokation
comes from the default jar lifecycle of my pom and the second from my
config above. Can someone tell me how to configure the plugin above that
the default jar lifecycle directly executes my execution-definition
(id=default)?

Thanks for your help in advance!

Cheers,
Martin

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



Re: How to execute jar:jar just once?

2006-07-24 Thread Wayne Fay

I think you should just move the configuration/ element to be a
child inside plugin/, and then remove the executions/ completely.

Wayne

On 7/24/06, Zeltner Martin [EMAIL PROTECTED] wrote:

Hello!

I have the following plugin config in my pom with packaging jar:

---
plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-jar-plugin/artifactId
   version2.1-SNAPSHOT/version
   executions
   execution
   iddefault/id
   goals
   goaljar/goal
   /goals
   configuration
   archive
   manifestSections
   manifestSection
   nameel4j-config/name
   manifestEntries
   Module${el4j-config.module}/Module
   Files${el4j-config.files}/Files

Dependencies${el4j-config.dependencies}/Dependencies
   /manifestEntries
   /manifestSection
   /manifestSections
   /archive
   /configuration
   /execution
   /executions
/plugin
---

If I have a look at the console output when executing mvn package I
can see that goal jar:jar is executed twice. The first invokation
comes from the default jar lifecycle of my pom and the second from my
config above. Can someone tell me how to configure the plugin above that
the default jar lifecycle directly executes my execution-definition
(id=default)?

Thanks for your help in advance!

Cheers,
Martin

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