Advertisement
Guest User

Untitled

a guest
Oct 16th, 2014
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.79 KB | None | 0 0
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3.     <modelVersion>4.0.0</modelVersion>
  4.     <groupId>apache-commons-validator-osgi</groupId>
  5.     <artifactId>apache-commons-validator-osgi</artifactId>
  6.     <version>1.4.0</version>
  7.  
  8.     <packaging>bundle</packaging>
  9.  
  10.     <name>${project.groupId} - ${project.artifactId}</name>
  11.  
  12.     <description>
  13.     Demonstrates how to easily deploy the classes contained in a pre-packaged vanilla jar file into an OSGi
  14.     container, when the jar does not contain the necessary OSGi manifest headers.
  15.     </description>
  16.  
  17.     <build>
  18.         <pluginManagement>
  19.             <plugins>
  20.                 <plugin>
  21.                     <groupId>org.apache.felix</groupId>
  22.                     <artifactId>maven-bundle-plugin</artifactId>
  23.                     <version>2.3.5</version>
  24.                     <extensions>true</extensions>
  25.                 </plugin>
  26.             </plugins>
  27.         </pluginManagement>
  28.         <plugins>
  29.             <plugin>
  30.                 <groupId>org.apache.felix</groupId>
  31.                 <artifactId>maven-bundle-plugin</artifactId>
  32.                 <configuration>
  33.                     <instructions>
  34.                         <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
  35.                         <Embed-Directory>OSGI-INF/lib</Embed-Directory>
  36.                         <Embed-Transitive>true</Embed-Transitive>
  37.                         <_exportcontents>
  38.                             org.apache.commons.validator.*;version=${commons-validator.version}
  39.                         </_exportcontents>
  40.                     </instructions>
  41.                 </configuration>
  42.             </plugin>
  43.         </plugins>
  44.     </build>
  45.  
  46.     <properties>
  47.         <commons-validator.version>1.4.0</commons-validator.version>
  48.     </properties>
  49.  
  50.     <dependencies>
  51.         <dependency>
  52.             <groupId>commons-validator</groupId>
  53.             <artifactId>commons-validator</artifactId>
  54.             <version>${commons-validator.version}</version>
  55.         </dependency>
  56.     </dependencies>
  57.  
  58. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement