Clean up parent pom.
[lgpl/argeo-commons.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index e69a220dfbbc40e91612ba2a096db510ce587de5..09e6d40f98de185da089e667045eed2187dac196 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -110,6 +110,9 @@ limitations under the License.
                                <excludes>
                                        <exclude>.*</exclude>
                                        <exclude>.*/**</exclude>
+                                       <!-- MANIFEST is set explicitly in the jar plugin configuration. We 
+                                               don't copy it in order to avoid side-effects with BND -->
+                                       <exclude>META-INF/MANIFEST.MF</exclude>
                                        <exclude>src/**</exclude>
                                        <exclude>ext/**</exclude>
                                        <exclude>target/**</exclude>
@@ -140,12 +143,9 @@ limitations under the License.
                                        <artifactId>maven-compiler-plugin</artifactId>
                                        <version>3.8.1</version>
                                        <configuration>
-                                               <!-- <source>1.8</source> -->
                                                <source>11</source>
                                                <target>1.8</target>
                                                <compilerId>eclipse</compilerId>
-                                               <!-- Required for compliance level, see http://jira.codehaus.org/browse/PLXCOMP-231 -->
-                                               <!-- <optimize>true</optimize> -->
                                                <!-- Hack to work around issues with generated annotations : -->
                                                <generatedSourcesDirectory>target/classes</generatedSourcesDirectory>
                                                <generatedTestSourcesDirectory>target/test-classes</generatedTestSourcesDirectory>
@@ -166,16 +166,6 @@ limitations under the License.
                                <plugin>
                                        <artifactId>maven-clean-plugin</artifactId>
                                        <version>2.6.1</version>
-                                       <!-- <configuration> -->
-                                       <!-- <filesets> -->
-                                       <!-- <fileset> -->
-                                       <!-- <directory>META-INF</directory> -->
-                                       <!-- <includes> -->
-                                       <!-- <include>MANIFEST.MF</include> -->
-                                       <!-- </includes> -->
-                                       <!-- </fileset> -->
-                                       <!-- </filesets> -->
-                                       <!-- </configuration> -->
                                </plugin>
                                <plugin>
                                        <artifactId>maven-surefire-plugin</artifactId>
@@ -247,6 +237,10 @@ limitations under the License.
                                        <extensions>true</extensions>
                                        <configuration>
                                                <manifestLocation>META-INF</manifestLocation>
+                                               <niceManifest>true</niceManifest>
+                                               <noWarningProjectTypes>
+                                                       <noWarningProjectType>pom</noWarningProjectType>
+                                               </noWarningProjectTypes>
                                                <instructions>
                                                        <_include>bnd.bnd</_include>
                                                        <Bundle-Version>${project.version}-r${maven.build.timestamp}</Bundle-Version>
@@ -256,21 +250,8 @@ limitations under the License.
                                                        <Automatic-Module-Name>${project.artifactId}</Automatic-Module-Name>
                                                        <SLC-Category>${project.groupId}</SLC-Category>
                                                        <SLC-Build-Timestamp>${maven.build.timestamp}</SLC-Build-Timestamp>
-                                                       <!-- Git metadata -->
-                                                       <!-- <SLC-Git-Commit-Id>${git.commit.id}</SLC-Git-Commit-Id> -->
-                                                       <!-- <SLC-Git-Commit-Describe>${git.commit.id.describe}</SLC-Git-Commit-Describe> -->
-                                                       <!-- <SLC-Git-Commit-Count>${git.closest.tag.commit.count}</SLC-Git-Commit-Count> -->
                                                </instructions>
                                        </configuration>
-                                       <executions>
-                                               <execution>
-                                                       <id>bundle-manifest</id>
-                                                       <phase>process-classes</phase>
-                                                       <goals>
-                                                               <goal>manifest</goal>
-                                                       </goals>
-                                               </execution>
-                                       </executions>
                                </plugin>
                                <!-- Codehaus -->
                                <plugin>
@@ -302,32 +283,6 @@ limitations under the License.
                        </plugins>
                </pluginManagement>
                <plugins>
-                       <!-- <plugin> -->
-                       <!-- <artifactId>maven-clean-plugin</artifactId> -->
-                       <!-- <configuration> -->
-                       <!-- <filesets> -->
-                       <!-- <fileset> -->
-                       <!-- <directory>META-INF</directory> -->
-                       <!-- <includes> -->
-                       <!-- <include>MANIFEST.MF</include> -->
-                       <!-- </includes> -->
-                       <!-- </fileset> -->
-                       <!-- </filesets> -->
-                       <!-- </configuration> -->
-                       <!-- </plugin> -->
-                       <!-- <plugin> -->
-                       <!-- <groupId>pl.project13.maven</groupId> -->
-                       <!-- <artifactId>git-commit-id-plugin</artifactId> -->
-                       <!-- <executions> -->
-                       <!-- <execution> -->
-                       <!-- <id>get-the-git-infos</id> -->
-                       <!-- <goals> -->
-                       <!-- <goal>revision</goal> -->
-                       <!-- </goals> -->
-                       <!-- <phase>initialize</phase> -->
-                       <!-- </execution> -->
-                       <!-- </executions> -->
-                       <!-- </plugin> -->
                        <plugin>
                                <artifactId>maven-resources-plugin</artifactId>
                                <configuration>
@@ -354,6 +309,21 @@ limitations under the License.
                                        </execution>
                                </executions>
                        </plugin>
+                       <!-- MANIFEST generation by BND -->
+                       <plugin>
+                               <groupId>org.apache.felix</groupId>
+                               <artifactId>maven-bundle-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>bundle-manifest</id>
+                                               <phase>process-classes</phase>
+                                               <goals>
+                                                       <goal>manifest</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <!-- Releases -->
                        <plugin>
                                <artifactId>maven-release-plugin</artifactId>
                                <configuration>
@@ -361,10 +331,6 @@ limitations under the License.
                                        <releaseProfiles>rpmbuild</releaseProfiles>
                                </configuration>
                        </plugin>
-                       <plugin>
-                               <groupId>org.apache.felix</groupId>
-                               <artifactId>maven-bundle-plugin</artifactId>
-                       </plugin>
                </plugins>
        </build>
        <dependencies>