Removed duplicate declaration of maven-jar-plugin
</execution>
</executions>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.6</version>
- <configuration>
- <archive>
- <manifest>
- <addClasspath>true</addClasspath>
- <mainClass>${main.class}</mainClass>
- </manifest>
- </archive>
- </configuration>
- </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</executions>
</plugin>
- <!-- 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. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <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>
<classifier>${envClassifier}</classifier>
</configuration>
