Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
HPPCRT-48: Real fix for Templates inclusion, the new Bundle packaging…
Browse files Browse the repository at this point in the history
… was the cause
  • Loading branch information
vsonnier committed Jan 30, 2016
1 parent c00b604 commit db07ae3
Showing 1 changed file with 25 additions and 33 deletions.
58 changes: 25 additions & 33 deletions hppcrt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,7 @@
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${version.maven-compiler-plugin}</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerArgs>
<arg>-Xlint</arg>
</compilerArgs>
</configuration>
</plugin>




<!-- Generate sources for objects/primitives from template. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -153,8 +139,7 @@
<executions>
<execution>
<id>retrolambda-classes</id>
<phase>none</phase>
<!-- DISABLED, was process-classes -->
<phase>process-classes</phase>
<goals>
<goal>process-main</goal>
</goals>
Expand All @@ -165,6 +150,23 @@
<defaultMethods>false</defaultMethods>
</configuration>
</plugin>

<!-- Add Manifest OSGIs info to the future Jar -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${version.maven-bundle-plugin}</version>
<executions>
<!-- HPPCRT-48: Prepare OSGI data to be included by the regular maven-jar-plugin, DO NOT use the bundle goal ! -->
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- Project in general is Java 8 level while the final lib is still JDK 1.5 on api side. -->
<plugin>
Expand All @@ -188,21 +190,7 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<executions>
<execution>
<id>jar-bundle</id>
<phase>package</phase>
<goals>
<goal>bundle</goal>
</goals>
</execution>
</executions>
</plugin>


<!-- Apparently, filtering KType*/VType* classes in Jar in global config d'ont work, do it here -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -216,6 +204,10 @@
<goal>jar</goal>
</goals>
<configuration>
<!-- HPPCRT-48: Must "manually" add OSGI manifest to jar data, because bundle packaging apparently cannot filter classes ! -->
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
<excludes>
<exclude>**/KType*</exclude>
<exclude>**/*KType*</exclude>
Expand All @@ -227,7 +219,7 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
Expand Down

0 comments on commit db07ae3

Please sign in to comment.