jar:jar with classifier runs twice.

2008-07-29 Thread mhuber

Hi all,

we want to create a set of jars with different configuration files and  
thought about using a classifier.


I configured the pom so far with the maven-jar-plugin and defined the  
filters and profile. Now I have the problem that the jar plugin is  
executed twice. The 1st run created the jar without the classifier  
(say myLib.jar), the 2nd run, with the classifier  
(myLib-classifier.jar).


Iff I now execute the install task both jar (with and without  
classifier) are installed into my repostory.

How do I avoid the creation or installtion of the jar without classifier?

Here are the relevant part from my pom:

[...]
build
  plugins
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-jar-plugin/artifactId
  executions
execution
  configuration
classifier${environment.suffix}/classifier
  /configuration
  goals
goaljar/goal
  /goals
/execution
  /executions
/plugin
  /plugins
/build

profiles
  profile
idlive/id
properties
  environment.suffixliveConfig/environment.suffix
/properties
  /profile
  profile
idtest/id
properties
  environment.suffixtestConfig/environment.suffix
/properties
  /profile
/profiles
[...]

Thank you for your help.

Marco


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



Re: jar:jar with classifier runs twice.

2008-07-29 Thread Magne Nordtveit
On Tuesday 29 July 2008 15:00:12 [EMAIL PROTECTED] wrote:
 [...]
 build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
executions
  execution
configuration
  classifier${environment.suffix}/classifier
/configuration
goals
  goaljar/goal
/goals
  /execution
/executions
  /plugin
/plugins
 /build

 profiles
profile
  idlive/id
  properties
environment.suffixliveConfig/environment.suffix
  /properties
/profile
profile
  idtest/id
  properties
environment.suffixtestConfig/environment.suffix
  /properties
/profile
 /profiles
 [...]


Try to pull it out of the execution

[...]
build
   plugins
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-jar-plugin/artifactId
   configuration
 classifier${environment.suffix}/classifier
   /configuration
   goals
 goaljar/goal
   /goals
 /plugin
   /plugins
/build

I havn't tested it, but it should do the trick.

Magne
-- 
Magne Nordtveit [EMAIL PROTECTED]
Systems Engineer
Offshore Simulator Centre AS
http://www.offsimcentre.no

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