Skip to content

Commit

Permalink
Add OSGi manifest headers
Browse files Browse the repository at this point in the history
  • Loading branch information
CMoH authored and kcris committed Jan 7, 2016
1 parent 61cc952 commit f92e2b7
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 2 deletions.
16 changes: 16 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,20 @@
<module>wsman-cli</module>
</modules>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>3.0.1</version>
</plugin>
</plugins>
</pluginManagement>
</build>

</project>
41 changes: 39 additions & 2 deletions wsman-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
</executions>
</plugin>

<!-- additional jaxb/xjc processing is required to generate proxies for non-normative elements in our wsdl
<!-- additional jaxb/xjc processing is required to generate proxies for non-normative elements in our wsdl
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
Expand Down Expand Up @@ -132,7 +132,44 @@
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
<configuration>
<supportedProjectTypes>
<supportedProjectType>jar</supportedProjectType>
</supportedProjectTypes>
<instructions>
<Export-Package>
com.microsoft.schemas.wbem.wsman.*,
org.dmtf.schemas.wbem.*,
org.w3.*,
org.xmlsoap.schemas.ws.*,
</Export-Package>
</instructions>
</configuration>
</plugin>

</plugins>
</build>
</build>

</project>
36 changes: 36 additions & 0 deletions wsman-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,40 @@
</exclusions>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
<configuration>
<supportedProjectTypes>
<supportedProjectType>jar</supportedProjectType>
</supportedProjectTypes>
<instructions>
<Export-Package>org.apifocal.wsman.cli</Export-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>

</project>

0 comments on commit f92e2b7

Please sign in to comment.