Skip to content

Commit

Permalink
converting the packaging to bundle, logstash#22, fixes osgi bundle lo…
Browse files Browse the repository at this point in the history
…ading in fuse version 621107
  • Loading branch information
1448968 committed Oct 21, 2016
1 parent 6fe6dcd commit 3ebf966
Showing 1 changed file with 19 additions and 24 deletions.
43 changes: 19 additions & 24 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.logstash.log4j</groupId>
<artifactId>jsonevent-layout</artifactId>
<packaging>jar</packaging>
<packaging>bundle</packaging>
<version>1.8-SNAPSHOT</version>
<name>jsonevent-layout</name>
<description>Log4j pattern layout that conforms to the logstash json_event format</description>
Expand Down Expand Up @@ -96,6 +96,24 @@
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
<Import-Package>!*</Import-Package>
<Fragment-Host>org.ops4j.pax.logging.pax-logging-service;bundle-version="[1.6,1.9)"</Fragment-Host>
<Embed-Dependency>*;scope=compile|runtime;inline=true</Embed-Dependency>
<Implementation-Version>${project.version}</Implementation-Version>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
Expand All @@ -122,29 +140,6 @@
</dependency>
</dependencies>
<profiles>
<profile>
<id>bundle</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
<Import-Package>!*</Import-Package>
<Fragment-Host>org.ops4j.pax.logging.pax-logging-service;bundle-version="[1.6,1.7)"</Fragment-Host>
<Embed-Dependency>*;scope=compile|runtime;inline=true</Embed-Dependency>
<Implementation-Version>${project.version}</Implementation-Version>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release-sign-artifacts</id>
<activation>
Expand Down

0 comments on commit 3ebf966

Please sign in to comment.