]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
SONARPLUGINS-2574 Enhance MANIFEST.MF to be OSGI friendly
authorJulien HENRY <julien.henry@sonarsource.com>
Thu, 4 Apr 2013 14:42:09 +0000 (16:42 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Thu, 4 Apr 2013 14:42:09 +0000 (16:42 +0200)
sonar-runner-api/pom.xml

index 9a7208f1c4f45584abad5660a62d1468dd8d0bed..db87b657d9f4e352e83fd4f4267249fbd91ec943 100644 (file)
           </execution>
         </executions>
       </plugin>
+      <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>
+            <Export-Package>!.,org.sonar.runner.api</Export-Package>
+            <Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
+          </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>