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