Skip to content

Commit

Permalink
add missing parts to pom,
Browse files Browse the repository at this point in the history
add osgi headers to source bundle

Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed Apr 4, 2021
1 parent 5a03dff commit 709c255
Showing 1 changed file with 134 additions and 1 deletion.
135 changes: 134 additions & 1 deletion plugins/org.eclipse.persistence.asm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.asm</artifactId>
<version>9.1-SNAPSHOT</version>
<version>9.1.0-SNAPSHOT</version>

<name>EclipseLink ASM</name>
<description>Comprehensive and universal persistence framework for Java.</description>
Expand Down Expand Up @@ -81,6 +81,7 @@
</mailingLists>

<properties>
<legal.doc.source>${project.basedir}/../..</legal.doc.source>
<!-- 2.6.x has Java SE 7 as min supported JDK -->
<base.java.level>7</base.java.level>
<upper.java.level>9</upper.java.level>
Expand Down Expand Up @@ -160,6 +161,16 @@
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M3</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.4</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.2.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
Expand Down Expand Up @@ -209,6 +220,71 @@
</pluginManagement>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[11,)</version>
</requireJavaVersion>
<requireMavenVersion>
<version>[3.6.0,)</version>
</requireMavenVersion>
</rules>
<DependencyConvergence />
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<configuration>
<getRevisionOnlyOnce>true</getRevisionOnlyOnce>
<revisionOnScmFailure>false</revisionOnScmFailure>
<shortRevisionLength>7</shortRevisionLength>
</configuration>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-legal-resource</id>
<phase>generate-resources</phase>
<goals>
<goal>add-resource</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>${legal.doc.source}</directory>
<includes>
<include>NOTICE.md</include>
<include>LICENSE.md</include>
</includes>
<targetPath>META-INF</targetPath>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!--Unpack origin ASM sources-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -329,6 +405,63 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.glassfish.hk2</groupId>
<artifactId>osgiversion-maven-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>compute-full-osgi-version</id>
<goals>
<goal>compute-osgi-version</goal>
</goals>
<configuration>
<versionPropertyName>project.fullosgi.version</versionPropertyName>
</configuration>
</execution>
<execution>
<id>compute-osgi-version</id>
<goals>
<goal>compute-osgi-version</goal>
</goals>
<configuration>
<dropVersionComponent>qualifier</dropVersionComponent>
<versionPropertyName>project.osgi.version</versionPropertyName>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
<manifest>
<addDefaultEntries>false</addDefaultEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addDefaultEntries>false</addDefaultEntries>
</manifest>
<manifestEntries>
<Implementation-Build-Id>${project.version} - ${buildNumber}</Implementation-Build-Id>
<Bundle-ManifestVersion>2</Bundle-ManifestVersion>
<Bundle-Name>EclipseLink ASM Source</Bundle-Name>
<Bundle-SymbolicName>${project.artifactId}.source</Bundle-SymbolicName>
<Bundle-Version>${project.fullosgi.version}</Bundle-Version>
<Eclipse-SourceBundle>${project.artifactId};version="${project.osgi.version}"</Eclipse-SourceBundle>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 709c255

Please sign in to comment.