diff options
Diffstat (limited to 'sonar-ws-client')
-rw-r--r-- | sonar-ws-client/pom.xml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/sonar-ws-client/pom.xml b/sonar-ws-client/pom.xml index ec7b3dca56d..435db7abccf 100644 --- a/sonar-ws-client/pom.xml +++ b/sonar-ws-client/pom.xml @@ -79,4 +79,44 @@ <scope>test</scope> </dependency> </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <version>2.3.7</version> + <extensions>true</extensions> + <configuration> + <instructions> + <Import-Package>!*</Import-Package> + <Require-Bundle>org.apache.httpcomponents.httpclient;bundle-version="4.2.2";optional="true", + org.apache.httpcomponents.httpcore;bundle-version="4.2.2";optional="true", + com.googlecode.json-simple + </Require-Bundle> + <Export-Package>!.,org.sonar.wsclient, + org.sonar.wsclient.connectors, + org.sonar.wsclient.services</Export-Package> + </instructions> + </configuration> + <executions> + <execution> + <id>bundle-manifest</id> + <phase>process-classes</phase> + <goals> + <goal>manifest</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> + </archive> + </configuration> + </plugin> + </plugins> + </build> </project> |