Added a loader for DLUX modules (rebased)
[dlux.git] / loader / impl / 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     <groupId>org.opendaylight.dlux</groupId>
6     <artifactId>dlux-parent</artifactId>
7     <version>0.1.0-SNAPSHOT</version>
8     <relativePath>../../</relativePath>
9   </parent>
10   <artifactId>loader.implementation</artifactId>
11   <version>1.0.0-SNAPSHOT</version>
12   <packaging>bundle</packaging>
13   <dependencies>
14     <dependency>
15       <groupId>org.opendaylight.dlux</groupId>
16       <artifactId>loader</artifactId>
17       <version>1.0.0-SNAPSHOT</version>
18     </dependency>
19     <dependency>
20       <groupId>org.osgi</groupId>
21       <artifactId>org.osgi.core</artifactId>
22       <version>4.3.0</version>
23     </dependency>
24     <dependency>
25       <groupId>org.osgi</groupId>
26       <artifactId>org.osgi.compendium</artifactId>
27       <version>4.3.0</version>
28     </dependency>
29     <dependency>
30         <groupId>org.slf4j</groupId>
31         <artifactId>slf4j-api</artifactId>
32     </dependency>
33     <dependency>
34       <groupId>javax.servlet</groupId>
35       <artifactId>javax.servlet-api</artifactId>
36       <version>3.0.1</version>
37     </dependency>
38     <dependency>
39       <groupId>org.opendaylight.dlux</groupId>
40       <artifactId>dlux.loader.resources</artifactId>
41       <version>${loader.resources.version}</version>
42     </dependency>
43   </dependencies>
44  <build>
45     <resources>
46       <resource>
47         <directory>target/generated-resources</directory>
48       </resource>   
49     </resources>
50     <plugins>
51       <!--Clean extracted resources-->
52       <plugin>
53           <artifactId>maven-clean-plugin</artifactId>
54           <version>2.5</version>
55           <configuration>
56             <filesets>
57               <fileset>
58                 <directory>${project.basedir}/src/main/resources/</directory>
59                 <includes>
60                               <include>dlux/</include>
61                               <include>index/</include>
62                             </includes>
63                 <excludes></excludes>
64                 <followSymlinks>false</followSymlinks>
65               </fileset>
66             </filesets>
67           </configuration>
68       </plugin>
69       <!--Copy resources from the dlux-web/build dir-->
70       <!--<plugin>
71         <artifactId>maven-resources-plugin</artifactId>
72         <version>2.6</version>
73         <executions>
74           <execution>
75             <id>copy-src-resources</id>
76             <phase>validate</phase>
77             <goals>
78               <goal>copy-resources</goal>
79             </goals>
80             <configuration>
81               <outputDirectory>${project.basedir}/src/main/resources/dlux</outputDirectory>
82               <resources>
83                 <resource>
84                   <directory>${project.basedir}/../../dlux-web/build/</directory>
85                     <includes>
86                       <include>src/main.js</include>
87                       <include>src/app/app.controller.js</include>
88                       <include>src/app/app.module.js</include>
89                       <include>src/app/app.routingConfig.js</include>
90                       <include>vendor/**</include>
91                       <include>assets/**</include>
92                     </includes>
93                     <excludes>
94                       <exclude>assets/yang2xml/</exclude>
95                     </excludes>
96                   <filtering>false</filtering>
97                 </resource>
98               </resources>
99             </configuration>
100           </execution>
101           <execution>
102             <id>copy-index</id>
103             <phase>validate</phase>
104             <goals>
105               <goal>copy-resources</goal>
106             </goals>
107             <configuration>
108               <outputDirectory>${project.basedir}/src/main/resources/index</outputDirectory>
109               <resources>
110                 <resource>
111                   <directory>${project.basedir}/../../dlux-web/build/</directory>
112                     <includes>
113                       <include>index.html</include>
114                     </includes>
115                   <filtering>false</filtering>
116                 </resource>
117               </resources>
118             </configuration>
119           </execution>
120         </executions>
121       </plugin>-->
122      <plugin>
123         <groupId>org.apache.maven.plugins</groupId>
124         <artifactId>maven-dependency-plugin</artifactId>
125         <version>2.6</version>
126         <executions>
127      <!--loader Resources-->
128           <execution>
129             <id>unpack-loader-resources</id>
130             <goals>
131               <goal>unpack-dependencies</goal>
132             </goals>
133             <phase>generate-resources</phase>
134             <configuration>
135               <outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
136               <groupId>org.opendaylight.dlux</groupId>
137               <includeArtifactIds>dlux.loader.resources</includeArtifactIds>
138               <excludes>META-INF\/**</excludes>
139               <excludeTransitive>true</excludeTransitive>
140               <ignorePermissions>false</ignorePermissions>
141             </configuration>
142           </execution>
143         </executions>
144       </plugin>
145     <plugin>
146
147       <groupId>org.apache.maven.plugins</groupId>
148       <artifactId>maven-checkstyle-plugin</artifactId>
149         <configuration>
150           <!-- Exclusion doesn't seem to work for the yang.xml files within the resources folders -->
151           <excludes>**/*</excludes>
152         </configuration>
153      </plugin>
154       <plugin>
155         <groupId>org.apache.felix</groupId>
156         <artifactId>maven-bundle-plugin</artifactId>
157         <extensions>true</extensions>
158         <configuration>
159           <instructions>
160             <Import-Package>org.osgi.framework,
161                             org.opendaylight.dlux.loader,
162                             org.opendaylight.dlux.loader.implementation,
163                             org.osgi.service.http,
164                             javax.servlet,
165                             javax.servlet.http,*
166                             </Import-Package>
167             <Export-Package>org.opendaylight.dlux.loader.implementation</Export-Package>
168           </instructions>
169         </configuration>
170       </plugin>
171     </plugins>
172   </build>
173   <scm>
174     <connection>scm:git:ssh://git.opendaylight.org:29418/dlux.git</connection>
175     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/dlux.git</developerConnection>
176     <tag>HEAD</tag>
177     <url>https://wiki.opendaylight.org/view/OpenDaylight_dlux:Main</url>
178   </scm>
179 </project>