Skip to content

Commit

Permalink
Modules converted to OSGi bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
azzazzel committed Mar 15, 2015
1 parent 0f8a0ce commit 1354458
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 5 deletions.
24 changes: 23 additions & 1 deletion dukes-domain-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,26 @@
</parent>
<artifactId>dukes-domain-model</artifactId>
<name>Duke's domain model</name>
</project>
<packaging>bundle</packaging>

<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.5.3</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Export-Package>com.forest.model*</Export-Package>
<Import-Package>*</Import-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>


</project>
24 changes: 22 additions & 2 deletions usecases/usecases-catalog/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,33 @@
<version>7.0.6-SNAPSHOT</version>
</parent>
<artifactId>usecases-catalog</artifactId>

<name>Catalog Management Usecases</name>
<packaging>bundle</packaging>

<dependencies>
<dependency>
<groupId>org.glassfish.javaeetutorial</groupId>
<artifactId>dukes-domain-model</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<name>Catalog Management Usecases</name>

<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.5.3</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Export-Package>com.forest.usecase.catalog*</Export-Package>
<Import-Package>*</Import-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>
24 changes: 22 additions & 2 deletions usecases/usecases-ecommerce/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,34 @@
<artifactId>usecases</artifactId>
<version>7.0.6-SNAPSHOT</version>
</parent>

<artifactId>usecases-ecommerce</artifactId>

<name>E-commerce (shopping) Usecases</name>
<packaging>bundle</packaging>

<dependencies>
<dependency>
<groupId>org.glassfish.javaeetutorial</groupId>
<artifactId>dukes-domain-model</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.5.3</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Export-Package>com.forest.usecase.ecommerce*</Export-Package>
<Import-Package>*</Import-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>
21 changes: 21 additions & 0 deletions usecases/usecases-identity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,32 @@
</parent>
<artifactId>usecases-identity</artifactId>
<name>User Identity Usecases</name>
<packaging>bundle</packaging>

<dependencies>
<dependency>
<groupId>org.glassfish.javaeetutorial</groupId>
<artifactId>dukes-domain-model</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.5.3</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Export-Package>com.forest.usecase.identity*</Export-Package>
<Import-Package>*</Import-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 1354458

Please sign in to comment.