aschuma

MVN + OSGi :: pom.xml Example II

Feb 27th, 2016
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.46 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3.   <parent>
  4.     <groupId>..</groupId>
  5.     <artifactId>..</artifactId>
  6.     <version>..</version>
  7.     <relativePath />
  8.   </parent>
  9.   <modelVersion>4.0.0</modelVersion>
  10.   <groupId>com.example.jira.plugins</groupId>
  11.   <artifactId>rs-technicaluser-api</artifactId>
  12.   <version>1.0-SNAPSHOT</version>
  13.   <name>.. API</name>
  14.   <packaging>bundle</packaging>
  15. <!--
  16.  <dependencies>
  17.    <dependency>
  18.      <groupId>com.google.code.gson</groupId>
  19.      <artifactId>gson</artifactId>
  20.      <version>${gson.version}</version>
  21.      <scope>provided</scope>
  22.    </dependency>
  23.  </dependencies>
  24. -->
  25.   <build>
  26.   <plugins>
  27.     <plugin>
  28.       <groupId>org.apache.felix</groupId>
  29.       <artifactId>maven-bundle-plugin</artifactId>
  30.       <version>3.0.0</version>
  31.       <extensions>true</extensions>
  32.       <configuration>
  33.         <instructions>
  34.           <Export-Package>com.example.jira.plugins.rs.technicaluser.api;version="${project.version}</Export-Package>
  35.           <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
  36.           <Bundle-Description>${project.description}</Bundle-Description>
  37.         </instructions>
  38.       </configuration>
  39.     </plugin>
  40.   </plugins>
  41.   </build>
  42.   <scm>
  43.     <connection>...</connection>
  44.   </scm>
  45. </project>
Advertisement
Add Comment
Please, Sign In to add comment