Skip to content

Commit

Permalink
Use maven-bundle-plugin to create valid OSGi bundles.
Browse files Browse the repository at this point in the history
Change-Id: I4d13739da2e2437572f2b79037c48f28497cca59
  • Loading branch information
kenwenzel committed Dec 8, 2015
1 parent a54e88b commit 65aec3d
Show file tree
Hide file tree
Showing 20 changed files with 123 additions and 160 deletions.
2 changes: 1 addition & 1 deletion llrp4j-core/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<classpathentry exported="true" kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
Expand Down
10 changes: 0 additions & 10 deletions llrp4j-core/.project
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
Expand Down
12 changes: 0 additions & 12 deletions llrp4j-core/META-INF/MANIFEST.MF

This file was deleted.

21 changes: 19 additions & 2 deletions llrp4j-core/pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand All @@ -8,7 +9,7 @@
</parent>

<artifactId>llrp4j-core</artifactId>
<packaging>jar</packaging>
<packaging>bundle</packaging>

<name>llrp4j-core</name>
<description>The LLRP4J core module that is independent of actual message and parameter definitions.</description>
Expand All @@ -28,6 +29,22 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Export-Package>net.enilink.llrp4j,
net.enilink.llrp4j.annotations,
net.enilink.llrp4j.bitbuffer,
net.enilink.llrp4j.types,
net.enilink.llrp4j.xml,
org.llrp.ltk.schema.core</Export-Package>
<Import-Package>org.slf4j;version="1.7.2"</Import-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>
2 changes: 1 addition & 1 deletion llrp4j-generator/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<classpathentry exported="true" kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
Expand Down
10 changes: 0 additions & 10 deletions llrp4j-generator/.project
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
Expand Down
24 changes: 22 additions & 2 deletions llrp4j-generator/pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand All @@ -8,7 +9,7 @@
</parent>

<artifactId>llrp4j-generator</artifactId>
<packaging>jar</packaging>
<packaging>bundle</packaging>

<name>llrp4j-generator</name>
<description>Generator for LLRP message and parameter classes from XML definitions.</description>
Expand All @@ -32,4 +33,23 @@
<version>2.7.11</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Export-Package>net.enilink.llrp4j.generator</Export-Package>
<Import-Package>net.enilink.llrp4j,
net.enilink.llrp4j.annotations,
net.enilink.llrp4j.types,
org.slf4j;version="1.7.2"</Import-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>
2 changes: 1 addition & 1 deletion llrp4j-impinj-module/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<classpathentry exported="true" kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
Expand Down
10 changes: 0 additions & 10 deletions llrp4j-impinj-module/.project
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
Expand Down
17 changes: 0 additions & 17 deletions llrp4j-impinj-module/META-INF/MANIFEST.MF

This file was deleted.

30 changes: 27 additions & 3 deletions llrp4j-impinj-module/pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand All @@ -8,7 +9,7 @@
</parent>

<artifactId>llrp4j-impinj-module</artifactId>
<packaging>jar</packaging>
<packaging>bundle</packaging>

<name>llrp4j-impinj-module</name>
<description>A LLRP4J module with custom messages, parameters and types for Impinj readers.</description>
Expand All @@ -21,7 +22,7 @@
</properties>

<dependencies>
<dependency>
<dependency>
<groupId>net.enilink.llrp4j</groupId>
<artifactId>llrp4j-llrp-module</artifactId>
<version>1.0.4-SNAPSHOT</version>
Expand Down Expand Up @@ -76,4 +77,27 @@
</build>
</profile>
</profiles>

<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Export-Package>org.llrp.impinj.*</Export-Package>
<Import-Package>net.enilink.llrp4j,
net.enilink.llrp4j.annotations,
net.enilink.llrp4j.types,
org.llrp.enumerations,
org.llrp.interfaces,
org.llrp.ltk.schema.core,
org.llrp.messages,
org.llrp.parameters</Import-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>
2 changes: 1 addition & 1 deletion llrp4j-llrp-module/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<classpathentry exported="true" kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
Expand Down
10 changes: 0 additions & 10 deletions llrp4j-llrp-module/.project
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
Expand Down
15 changes: 0 additions & 15 deletions llrp4j-llrp-module/META-INF/MANIFEST.MF

This file was deleted.

57 changes: 19 additions & 38 deletions llrp4j-llrp-module/pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand All @@ -9,7 +10,7 @@

<artifactId>llrp4j-llrp-module</artifactId>
<description>A LLRP4J module with messages, parameters and types for the LLRP specification version 1.1.</description>
<packaging>jar</packaging>
<packaging>bundle</packaging>

<name>llrp4j-llrp-module</name>
<url>http://github.com/enilink/llrp4j</url>
Expand Down Expand Up @@ -72,41 +73,21 @@
</profile>
</profiles>
<build>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings
only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
exec-maven-plugin
</artifactId>
<versionRange>
[1.4.0,)
</versionRange>
<goals>
<goal>java</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Export-Package>org.llrp.*</Export-Package>
<Import-Package>net.enilink.llrp4j,
net.enilink.llrp4j.annotations,
net.enilink.llrp4j.types,
org.llrp.ltk.schema.core</Import-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>
2 changes: 1 addition & 1 deletion llrp4j-net/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<classpathentry exported="true" kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
Expand Down
10 changes: 0 additions & 10 deletions llrp4j-net/.project
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
Expand Down
14 changes: 0 additions & 14 deletions llrp4j-net/META-INF/MANIFEST.MF

This file was deleted.

Loading

0 comments on commit 65aec3d

Please sign in to comment.