Commit 08638fd1 authored by Lukas Jungmann's avatar Lukas Jungmann Committed by Dmitry Kornilov
Browse files

Fixes #79: bundle symbolic name should match artifactId (#82)

Signed-off-by: default avatarLukas Jungmann <lukas.jungmann@oracle.com>
parent b1e8395d
Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
......
......@@ -106,14 +106,6 @@
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
<manifestEntries>
<Extension-Name>javax.xml.bind</Extension-Name>
<Implementation-Build-Id>${scmBranch}-${buildNumber}, ${timestamp}</Implementation-Build-Id>
<Multi-Release>true</Multi-Release>
</manifestEntries>
<manifest>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
......@@ -142,8 +134,8 @@
<Bundle-Version>${project.version}</Bundle-Version> <!-- 2.2.99.bnull -->
<Extension-Name>${extension.name}</Extension-Name>
<Implementation-Version>${spec.version}.${impl.version}</Implementation-Version>
<Specification-Version>${project.version}</Specification-Version>
<Export-Package>${extension.name}.*; version=${spec.version}</Export-Package>
<Specification-Version>${spec.version}</Specification-Version>
<Export-Package>${api.package}.*; version=${spec.version}</Export-Package>
<Import-Package>
javax.activation;version=!,
javax.xml.bind;version="[${spec.version},3)",
......@@ -166,9 +158,11 @@
org.xml.sax.ext,
org.xml.sax.helpers
</Import-Package>
<Bundle-SymbolicName>jakarta.xml.bind-api</Bundle-SymbolicName>
<Bundle-SymbolicName>${extension.name}-api</Bundle-SymbolicName>
<DynamicImport-Package>org.glassfish.hk2.osgiresourcelocator</DynamicImport-Package>
<Specification-Vendor>${vendor.name}</Specification-Vendor>
<Implementation-Build-Id>${scmBranch}-${buildNumber}, ${timestamp}</Implementation-Build-Id>
<Multi-Release>true</Multi-Release>
</instructions>
</configuration>
</plugin>
......@@ -203,7 +197,7 @@
<author>true</author>
<version>true</version>
<doctitle><![CDATA[<br>
JAXB ${project.version} Runtime Library</h2>
JAXB ${project.version} API Library</h2>
${project.name} specification, ${release.spec.date}<br>
Comments to: <i><a href='mailto:${release.spec.feedback}'>${release.spec.feedback}</a></i><br>
More information at: <i><a target='_top'
......@@ -257,7 +251,6 @@ href='https://projects.eclipse.org/projects/ee4j.jaxb'>https://projects.eclipse.
</execution>
<execution>
<id>module-info-compile</id>
<phase>test-compile</phase><!--Avoid JavaSE9 capability added by bundle-plugin-->
<goals>
<goal>compile</goal>
</goals>
......@@ -312,13 +305,6 @@ href='https://projects.eclipse.org/projects/ee4j.jaxb'>https://projects.eclipse.
<resource>
<directory>${java9.build.outputDirectory}</directory>
</resource>
<!-- Copy module-info.class to java >= 9 classes directory. Source file will be deleted later with ant. -->
<resource>
<directory>${project.build.outputDirectory}</directory>
<includes>
<include>module-info.class</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
......@@ -434,19 +420,6 @@ href='https://projects.eclipse.org/projects/ee4j.jaxb'>https://projects.eclipse.
<goal>run</goal>
</goals>
</execution>
<!-- Delete module-info.class from java < 9 classes directory. -->
<execution>
<id>update-target-classes</id>
<phase>prepare-package</phase>
<configuration>
<target>
<delete file="${project.build.outputDirectory}/module-info.class"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
......
......@@ -74,8 +74,9 @@
<findbugs.threshold>Low</findbugs.threshold>
<mrjar.sourceDirectory>${project.basedir}/src/main/mr-jar</mrjar.sourceDirectory>
<mrjar.build.outputDirectory>${project.build.directory}/classes-mrjar</mrjar.build.outputDirectory>
<extension.name>javax.xml.bind</extension.name>
<spec.version>2.3</spec.version>
<api.package>javax.xml.bind</api.package>
<extension.name>jakarta.xml.bind</extension.name>
<spec.version>2.4</spec.version>
<impl.version>0</impl.version>
<activation.version>1.2.1</activation.version>
<config.dir>${project.basedir}/etc/config</config.dir>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment