Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
ikylin committed Jun 4, 2012
1 parent c181770 commit 4f0dd7e
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 11 deletions.
2 changes: 1 addition & 1 deletion samples.annotations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>iPOJO.Annotations</groupId>
<artifactId>samples.annotations</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.1</version>
<packaging>pom</packaging>

<name>samples.annotations</name>
Expand Down
24 changes: 18 additions & 6 deletions samples.annotations/service.consumer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>samples.hello</artifactId>
<artifactId>samples.annotations</artifactId>
<groupId>iPOJO.Annotations</groupId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.1</version>
</parent>
<groupId>iPOJO.Annotations</groupId>
<artifactId>service.consumer</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.1</version>
<packaging>bundle</packaging>
<name>service.consumer</name>
<url>http://maven.apache.org</url>
Expand All @@ -21,7 +21,7 @@
<dependency>
<groupId>iPOJO.Annotations</groupId>
<artifactId>service.provider</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.1</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
Expand All @@ -47,13 +47,25 @@
<Bundle-SymbolicName>
${pom.artifactId}
</Bundle-SymbolicName>
<Export-Package>
<Private-Package>
ipojo.example.hello.client.*
</Export-Package>
</Private-Package>
<Import-Package>ipojo.example.hello.*</Import-Package>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-ipojo-plugin</artifactId>
<version>1.8.4</version>
<executions>
<execution>
<goals>
<goal>ipojo-bundle</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<ipojo>
<instance component="ipojo.example.hello.client.HelloClient" />
<instance component="AnnotedHelloClient" />
</ipojo>
19 changes: 16 additions & 3 deletions samples.annotations/service.provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>samples.hello</artifactId>
<artifactId>samples.annotations</artifactId>
<groupId>iPOJO.Annotations</groupId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.1</version>
</parent>
<groupId>iPOJO.Annotations</groupId>
<artifactId>service.provider</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.1</version>
<packaging>bundle</packaging>
<name>service.provider</name>
<url>http://maven.apache.org</url>
Expand Down Expand Up @@ -49,9 +49,22 @@
!ipojo.example.hello.impl,
ipojo.example.hello.*
</Export-Package>
<Private-Package>ipojo.example.hello.impl</Private-Package>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-ipojo-plugin</artifactId>
<version>1.8.4</version>
<executions>
<execution>
<goals>
<goal>ipojo-bundle</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 4f0dd7e

Please sign in to comment.