Added manifestFile tag.
<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- For publishing to sonatype / central maven repo -->
<mainClass>${main.class}</mainClass>
</manifest>
</archive>
- <!-- The following configuration is required because bnd-maven-plugin
- generates the manifest to target/classes/META-INF/MANIFEST.MF but the normal
- maven-jar-plugin does not use it. If the jar-plugin is patched to pick up
- the manifest from this location, then the following config is not needed. -->
- <useDefaultManifestFile>true</useDefaultManifestFile>
+ <!-- Use the manifest file generated by the bnd-maven-plugin -->
+ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
<classifier>${envClassifier}</classifier>
</configuration>
</plugin>
