Adding a maven archetype to kick start DLUX application creation.
[dlux.git] / archetype / src / main / resources / archetype-resources / __rootArtifactId__-bundle / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
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/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4     <parent>
5         <artifactId>${rootArtifactId}</artifactId>
6         <groupId>${groupId}</groupId>
7         <version>${version}</version>
8     </parent>
9     <artifactId>${rootArtifactId}-bundle</artifactId>
10     <packaging>bundle</packaging>
11     <dependencies>
12         <dependency>
13             <groupId>org.osgi</groupId>
14             <artifactId>org.osgi.core</artifactId>
15             <version>${osgi.core.version}</version>
16         </dependency>
17         <dependency>
18             <groupId>org.osgi</groupId>
19             <artifactId>org.osgi.compendium</artifactId>
20             <version>${osgi.core.version}</version>
21         </dependency>
22         <dependency>
23             <groupId>org.apache.felix</groupId>
24             <artifactId>org.osgi.compendium</artifactId>
25             <version>${apache.felix.compendium}</version>
26         </dependency>
27         <dependency>
28             <groupId>org.opendaylight.dlux</groupId>
29             <artifactId>loader</artifactId>
30             <version>${dlux.loader.version}</version>
31         </dependency>
32         <dependency>
33             <groupId>${groupId}</groupId>
34             <artifactId>${rootArtifactId}-module</artifactId>
35             <version>${version}</version>
36         </dependency>
37     </dependencies>
38     <build>
39         <resources>
40             <resource>
41                 <directory>target/generated-resources</directory>
42             </resource>
43             <resource>
44                 <directory>src/main/resources</directory>
45             </resource>
46         </resources>
47         <plugins>
48             <plugin>
49                 <groupId>org.apache.maven.plugins</groupId>
50                 <artifactId>maven-dependency-plugin</artifactId>
51                 <version>2.6</version>
52                 <executions>
53                     <!--loader Resources-->
54                     <execution>
55                         <id>unpack-loader-resources</id>
56                         <goals>
57                             <goal>unpack-dependencies</goal>
58                         </goals>
59                         <phase>generate-resources</phase>
60                         <configuration>
61                             <outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
62                             <groupId>${groupId}</groupId>
63                             <includeArtifactIds>${rootArtifactId}-module</includeArtifactIds>
64                             <excludes>META-INF\/**</excludes>
65                             <excludeTransitive>true</excludeTransitive>
66                             <ignorePermissions>false</ignorePermissions>
67                         </configuration>
68                     </execution>
69                 </executions>
70             </plugin>
71             <plugin>
72                 <groupId>org.apache.felix</groupId>
73                 <artifactId>maven-bundle-plugin</artifactId>
74                 <extensions>true</extensions>
75                 <configuration>
76                     <instructions>
77                         <Import-Package>org.osgi.service.http,
78                             org.osgi.framework;version="1.0.0",
79                             org.opendaylight.dlux.loader
80                         </Import-Package>
81                         <Export-Package></Export-Package>
82                     </instructions>
83                 </configuration>
84             </plugin>
85         </plugins>
86     </build>
87 </project>