You should use two executions within the same plugin, each with their own configuration.
Never specify a plugin twice in the same pom. Always use executions for that. Justin On Aug 13, 2010, at 12:45 PM, Frank Maritato <[email protected]> wrote: > Hi, > > I'd like to have 2 assemblies for my project. One that creates a tar.gz > distribution and one that creates an executable jar. This is what I have so > far: > > <plugin> > <artifactId>maven-assembly-plugin</artifactId> > <version>2.2-beta-5</version> > <configuration> > <descriptors> > <descriptor>src/assemble/distribution.xml</descriptor> > </descriptors> > </configuration> > </plugin> > <plugin> > <artifactId>maven-assembly-plugin</artifactId> > <version>2.2-beta-5</version> > <configuration> > <descriptorRefs> > <descriptorRef>jar-with-dependencies</descriptorRef> > </descriptorRefs> > <archive> > <manifest> > <mainClass>my.pkg.ClassName</mainClass> > </manifest> > </archive> > </configuration> > </plugin> > > It works *except* that I want to change the name of the jar-with-dependencies > because it is really long. If I add the > > <appendAssemblyId>false</appendAssemblyId> > <finalName>prj-${project.version}</finalName> > > tags to the configuration for the executable jar, *both* assemblies get this > new name, not just the one. Is there any way to do this? > > Thanks! > -- > Frank Maritato > > --------------------------------------------------------------------- > 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]
