Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
2.2
-
None
-
None
Description
I'd like to create executable .jar files.
I tried
<executions> <execution> <id>makeExecJar_1</id> <phase>package</phase> <goals> <goal>attached</goal> </goals> <configuration> <descriptors> <descriptor>assembly/my-assembly.xml</descriptor> </descriptors> <finalName>../../target/dist/final-1</finalName> <archive> <addMavenDescriptor>false</addMavenDescriptor> <manifest> <mainClass>my.package.MyMainClass</mainClass> </manifest> </archive> </configuration> </execution> </executions>
as well as
<executions> <execution> <id>makeExecJar_1</id> <phase>package</phase> <goals> <goal>attached</goal> </goals> <configuration> <descriptors> <descriptor>assembly/my-assembly.xml</descriptor> </descriptors> <finalName>../../target/dist/final-1</finalName> <archive> <addMavenDescriptor>false</addMavenDescriptor> <manifestFile>MY_MANIFEST.MF</manifestFile> </archive> </configuration> </execution> </executions>
The result is the same. In the final jar file
- maven descriptors are added
- standard MANIFEST.MF is used
Attachments
Issue Links
- is duplicated by
-
MASSEMBLY-174 Regression bug with 2.2-SNPASHOT: archive configuration is not taken into account
- Closed