OSGi manifest maintenance (#2217)

* manifest cleanup and delete Fragment-Host

* make hapi-fhir-server-empi into an OSGi bundle
This commit is contained in:
Bill Denton 2020-12-18 13:48:44 -08:00 committed by GitHub
parent f228b4a167
commit 84d9854e24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 125 additions and 1 deletions

View File

@ -154,6 +154,9 @@
<extensions>true</extensions>
<configuration>
<instructions>
<_nouses>true</_nouses>
<_removeheaders>Built-By, Include-Resource, Private-Package, Require-Capability</_removeheaders>
<DynamicImport-Package>*</DynamicImport-Package>
<Import-Package>
<!--required when using servers-->
ca.uhn.fhir.rest.api.server;resolution:=optional,

View File

@ -67,9 +67,13 @@
<extensions>true</extensions>
<configuration>
<instructions>
<_nouses>true</_nouses>
<_removeheaders>Built-By, Include-Resource, Private-Package, Require-Capability</_removeheaders>
<!-- No need to disable normal OSGi class loading
<Fragment-Host>
ca.uhn.hapi.fhir.hapi-fhir-base
</Fragment-Host>
-->
</instructions>
</configuration>
</plugin>

View File

@ -12,7 +12,7 @@
</parent>
<artifactId>hapi-fhir-server-mdm</artifactId>
<packaging>jar</packaging>
<packaging>bundle</packaging>
<name>HAPI FHIR - Master Data Management</name>
@ -134,6 +134,17 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<_nouses>true</_nouses>
<_removeheaders>Built-By, Include-Resource, Private-Package, Require-Capability</_removeheaders>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -310,9 +310,13 @@
<extensions>true</extensions>
<configuration>
<instructions>
<_nouses>true</_nouses>
<_removeheaders>Built-By, Include-Resource, Private-Package, Require-Capability</_removeheaders>
<!-- No need to disable normal OSGi class loading
<Fragment-Host>
ca.uhn.hapi.fhir.hapi-fhir-base
</Fragment-Host>
-->
<Import-Package>
javax.servlet*;resolution:=optional,
*

View File

@ -397,9 +397,13 @@
<extensions>true</extensions>
<configuration>
<instructions>
<_nouses>true</_nouses>
<_removeheaders>Built-By, Include-Resource, Private-Package, Require-Capability</_removeheaders>
<!-- No need to disable normal OSGi class loading
<Fragment-Host>
ca.uhn.hapi.fhir.hapi-fhir-base
</Fragment-Host>
-->
<Import-Package>
javax.servlet*;resolution:=optional,
*

View File

@ -34,9 +34,13 @@
<extensions>true</extensions>
<configuration>
<instructions>
<_nouses>true</_nouses>
<_removeheaders>Built-By, Include-Resource, Private-Package, Require-Capability</_removeheaders>
<!-- No need to disable normal OSGi class loading
<Fragment-Host>
ca.uhn.hapi.fhir.hapi-fhir-base
</Fragment-Host>
-->
</instructions>
</configuration>
</plugin>

View File

@ -319,9 +319,13 @@
<extensions>true</extensions>
<configuration>
<instructions>
<_nouses>true</_nouses>
<_removeheaders>Built-By, Include-Resource, Private-Package, Require-Capability</_removeheaders>
<!-- No need to disable normal OSGi class loading
<Fragment-Host>
ca.uhn.hapi.fhir.hapi-fhir-base
</Fragment-Host>
-->
<Import-Package>
javax.servlet*;resolution:=optional,
*

View File

@ -376,9 +376,13 @@
<extensions>true</extensions>
<configuration>
<instructions>
<_nouses>true</_nouses>
<_removeheaders>Built-By, Include-Resource, Private-Package, Require-Capability</_removeheaders>
<!-- No need to disable normal OSGi class loading
<Fragment-Host>
ca.uhn.hapi.fhir.hapi-fhir-base
</Fragment-Host>
-->
</instructions>
</configuration>
</plugin>

View File

@ -344,9 +344,13 @@
<extensions>true</extensions>
<configuration>
<instructions>
<_nouses>true</_nouses>
<_removeheaders>Built-By, Include-Resource, Private-Package, Require-Capability</_removeheaders>
<!-- No need to disable normal OSGi class loading
<Fragment-Host>
ca.uhn.hapi.fhir.hapi-fhir-base
</Fragment-Host>
-->
</instructions>
</configuration>
</plugin>

View File

@ -27,9 +27,20 @@
<extensions>true</extensions>
<configuration>
<instructions>
<_nouses>true</_nouses>
<_removeheaders>Built-By, Include-Resource, Private-Package, Require-Capability</_removeheaders>
<!-- No need to disable normal OSGi class loading
<Fragment-Host>
ca.uhn.hapi.fhir.hapi-fhir-base
</Fragment-Host>
-->
<!-- maven-bundle-plugin does not generate
exports for resource packages -->
<Export-Package>
org.hl7.fhir.dstu2016may.model.profile;version="${project.version}",
org.hl7.fhir.dstu2016may.model.schema;version="${project.version}",
org.hl7.fhir.dstu2016may.model.valueset;version="${project.version}"
</Export-Package>
</instructions>
</configuration>
</plugin>

View File

@ -27,9 +27,20 @@
<extensions>true</extensions>
<configuration>
<instructions>
<_nouses>true</_nouses>
<_removeheaders>Built-By, Include-Resource, Private-Package, Require-Capability</_removeheaders>
<!-- No need to disable normal OSGi class loading
<Fragment-Host>
ca.uhn.hapi.fhir.hapi-fhir-base
</Fragment-Host>
-->
<!-- maven-bundle-plugin does not generate
exports for resource packages -->
<Export-Package>
org.hl7.fhir.instance.model.profile;version="${project.version}",
org.hl7.fhir.instance.model.schema;version="${project.version}",
org.hl7.fhir.instance.model.valueset;version="${project.version}"
</Export-Package>
</instructions>
</configuration>
</plugin>

View File

@ -41,9 +41,21 @@
<extensions>true</extensions>
<configuration>
<instructions>
<_nouses>true</_nouses>
<_removeheaders>Built-By, Include-Resource, Private-Package, Require-Capability</_removeheaders>
<!-- No need to disable normal OSGi class loading
<Fragment-Host>
ca.uhn.hapi.fhir.hapi-fhir-base
</Fragment-Host>
-->
<!-- maven-bundle-plugin does not generate
exports for resource packages -->
<Export-Package>
org.hl7.fhir.dstu3.model.extension;version="${project.version}",
org.hl7.fhir.dstu3.model.profile;version="${project.version}",
org.hl7.fhir.dstu3.model.schema;version="${project.version}",
org.hl7.fhir.dstu3.model.valueset;version="${project.version}"
</Export-Package>
</instructions>
</configuration>
</plugin>

View File

@ -41,9 +41,21 @@
<extensions>true</extensions>
<configuration>
<instructions>
<_nouses>true</_nouses>
<_removeheaders>Built-By, Include-Resource, Private-Package, Require-Capability</_removeheaders>
<!-- No need to disable normal OSGi class loading
<Fragment-Host>
ca.uhn.hapi.fhir.hapi-fhir-base
</Fragment-Host>
-->
<!-- maven-bundle-plugin does not generate
exports for resource packages -->
<Export-Package>
org.hl7.fhir.r4.model.extension;version="${project.version}",
org.hl7.fhir.r4.model.profile;version="${project.version}",
org.hl7.fhir.r4.model.schema;version="${project.version}",
org.hl7.fhir.r4.model.valueset;version="${project.version}"
</Export-Package>
</instructions>
</configuration>
</plugin>

View File

@ -41,9 +41,20 @@
<extensions>true</extensions>
<configuration>
<instructions>
<_nouses>true</_nouses>
<_removeheaders>Built-By, Include-Resource, Private-Package, Require-Capability</_removeheaders>
<!-- No need to disable normal OSGi class loading
<Fragment-Host>
ca.uhn.hapi.fhir.hapi-fhir-base
</Fragment-Host>
-->
<!-- maven-bundle-plugin does not generate
exports for resource packages -->
<Export-Package>
org.hl7.fhir.r5.model.extension;version="${project.version}",
org.hl7.fhir.r5.model.profile;version="${project.version}",
org.hl7.fhir.r5.model.valueset;version="${project.version}"
</Export-Package>
</instructions>
</configuration>
</plugin>

View File

@ -355,9 +355,34 @@
<extensions>true</extensions>
<configuration>
<instructions>
<_nouses>true</_nouses>
<_removeheaders>Built-By, Include-Resource, Private-Package, Require-Capability</_removeheaders>
<!-- No need to disable normal OSGi class loading
<Fragment-Host>
ca.uhn.hapi.fhir.hapi-fhir-base
</Fragment-Host>
-->
<!-- add imports for validation resource packages -->
<Import-Package>
org.hl7.fhir.instance.model.profile;version="${project.version}";resolution:=optional,
org.hl7.fhir.instance.model.schema;version="${project.version}";resolution:=optional,
org.hl7.fhir.instance.model.valueset;version="${project.version}";resolution:=optional,
org.hl7.fhir.dstu2016may.model.profile;version="${project.version}";resolution:=optional,
org.hl7.fhir.dstu2016may.model.schema;version="${project.version}";resolution:=optional,
org.hl7.fhir.dstu2016may.model.valueset;version="${project.version}";resolution:=optional,
org.hl7.fhir.dstu3.model.extension;version="${project.version}";resolution:=optional,
org.hl7.fhir.dstu3.model.profile;version="${project.version}";resolution:=optional,
org.hl7.fhir.dstu3.model.schema;version="${project.version}";resolution:=optional,
org.hl7.fhir.dstu3.model.valueset;version="${project.version}";resolution:=optional,
org.hl7.fhir.r4.model.extension;version="${project.version}";resolution:=optional,
org.hl7.fhir.r4.model.profile;version="${project.version}";resolution:=optional,
org.hl7.fhir.r4.model.schema;version="${project.version}";resolution:=optional,
org.hl7.fhir.r4.model.valueset;version="${project.version}";resolution:=optional,
org.hl7.fhir.r5.model.extension;version="${project.version}";resolution:=optional,
org.hl7.fhir.r5.model.profile;version="${project.version}";resolution:=optional,
org.hl7.fhir.r5.model.valueset;version="${project.version}";resolution:=optional,
*
</Import-Package>
</instructions>
</configuration>
</plugin>