Skip to content

Commit a8238e4

Browse files
committed
OSGi support
1 parent e8039c5 commit a8238e4

5 files changed

Lines changed: 61 additions & 2 deletions

File tree

compiler/pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
<artifactId>mustache.java</artifactId>
55
<groupId>com.github.spullara.mustache.java</groupId>
66
<version>0.8.5-SNAPSHOT</version>
7+
<relativePath>../pom.xml</relativePath>
78
</parent>
89
<modelVersion>4.0.0</modelVersion>
910
<artifactId>compiler</artifactId>
11+
<packaging>bundle</packaging>
1012

1113
<name>compiler</name>
1214
<description>Implementation of mustache.js for Java</description>
@@ -159,6 +161,16 @@
159161
</execution>
160162
</executions>
161163
</plugin>
164+
<plugin>
165+
<groupId>org.apache.felix</groupId>
166+
<artifactId>maven-bundle-plugin</artifactId>
167+
<configuration>
168+
<instructions>
169+
<!--<Export-Package>*</Export-Package>
170+
<Import-Package>*</Import-Package>-->
171+
</instructions>
172+
</configuration>
173+
</plugin>
162174
</plugins>
163175
</build>
164176
</project>

example/pom.xml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
<groupId>com.github.spullara.mustache.java</groupId>
66
<artifactId>example</artifactId>
77
<version>0.7.1-SNAPSHOT</version>
8+
<packaging>bundle</packaging>
89

910
<dependencies>
1011
<dependency>
1112
<groupId>com.github.spullara.mustache.java</groupId>
1213
<artifactId>compiler</artifactId>
13-
<version>0.8.4-SNAPSHOT</version>
14+
<version>0.8.5-SNAPSHOT</version>
1415
</dependency>
1516
</dependencies>
1617

@@ -25,6 +26,18 @@
2526
<encoding>UTF-8</encoding>
2627
</configuration>
2728
</plugin>
29+
<plugin>
30+
<groupId>org.apache.felix</groupId>
31+
<artifactId>maven-bundle-plugin</artifactId>
32+
<version>2.3.7</version>
33+
<extensions>true</extensions>
34+
<configuration>
35+
<instructions>
36+
<!--<Export-Package>*</Export-Package>
37+
<Import-Package>*</Import-Package>-->
38+
</instructions>
39+
</configuration>
40+
</plugin>
2841
</plugins>
2942
</build>
3043
</project>

handlebar/pom.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
<groupId>com.github.spullara.mustache.java</groupId>
44
<artifactId>mustache.java</artifactId>
55
<version>0.8.5-SNAPSHOT</version>
6+
<relativePath>../pom.xml</relativePath>
67
</parent>
78
<modelVersion>4.0.0</modelVersion>
89

910
<groupId>com.github.spullara.mustache.java</groupId>
1011
<artifactId>handlebar</artifactId>
11-
<packaging>jar</packaging>
12+
<packaging>bundle</packaging>
1213

1314
<name>handlebar</name>
1415
<url>http://maven.apache.org</url>
@@ -53,6 +54,16 @@
5354

5455
<build>
5556
<plugins>
57+
<plugin>
58+
<groupId>org.apache.felix</groupId>
59+
<artifactId>maven-bundle-plugin</artifactId>
60+
<configuration>
61+
<instructions>
62+
<!--<Export-Package>*</Export-Package>
63+
<Import-Package>*</Import-Package>-->
64+
</instructions>
65+
</configuration>
66+
</plugin>
5667
<plugin>
5768
<artifactId>maven-assembly-plugin</artifactId>
5869

indy/pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
<artifactId>mustache.java</artifactId>
55
<groupId>com.github.spullara.mustache.java</groupId>
66
<version>0.8.5-SNAPSHOT</version>
7+
<relativePath>../pom.xml</relativePath>
78
</parent>
89
<modelVersion>4.0.0</modelVersion>
910
<groupId>com.github.spullara.mustache.java</groupId>
1011
<artifactId>indy</artifactId>
1112
<version>0.8.5-SNAPSHOT</version>
13+
<packaging>bundle</packaging>
1214

1315
<name>indy</name>
1416
<description>Invokedynamic implementation of ObjectHandler</description>
@@ -67,6 +69,16 @@
6769
<encoding>UTF-8</encoding>
6870
</configuration>
6971
</plugin>
72+
<plugin>
73+
<groupId>org.apache.felix</groupId>
74+
<artifactId>maven-bundle-plugin</artifactId>
75+
<configuration>
76+
<instructions>
77+
<!--<Export-Package>*</Export-Package>
78+
<Import-Package>*</Import-Package>-->
79+
</instructions>
80+
</configuration>
81+
</plugin>
7082
</plugins>
7183
</build>
7284

pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,21 @@
5858
</distributionManagement>
5959

6060
<build>
61+
<pluginManagement>
62+
<plugins>
63+
<plugin>
64+
<groupId>org.apache.felix</groupId>
65+
<artifactId>maven-bundle-plugin</artifactId>
66+
<version>2.3.7</version>
67+
<extensions>true</extensions>
68+
</plugin>
69+
</plugins>
70+
</pluginManagement>
6171
<plugins>
6272
<plugin>
6373
<groupId>org.apache.maven.plugins</groupId>
6474
<artifactId>maven-compiler-plugin</artifactId>
75+
<version>2.5.1</version>
6576
<configuration>
6677
<source>1.6</source>
6778
<target>1.6</target>

0 commit comments

Comments
 (0)