Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1
-
None
-
None
Description
The assembly plugin (at least when using the predefined descriptor jar-with-dependencies; I did not check others) adds the Extension-Name and Specification-Title attributes to the generated jar. See also MJAR-38 which describes the same problem for the jar plugin.
Here is the configuration I used:
...
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>
example.Main
</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
...