Bump upstreams to Magnesium SR2
[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>1.0.0-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           <configuration>
73             <filesets>
74               <fileset>
75                 <directory>${project.basedir}/src/main/resources/</directory>
76                 <includes>
77                   <include>dlux/</include>
78                   <include>index/</include>
79                 </includes>
80                 <excludes></excludes>
81                 <followSymlinks>false</followSymlinks>
82               </fileset>
83             </filesets>
84           </configuration>
85       </plugin>
86       <!--Copy resources from the dlux-web/build dir-->
87       <plugin>
88         <artifactId>maven-resources-plugin</artifactId>
89         <executions>
90           <execution>
91             <id>copy-src-resources</id>
92             <phase>validate</phase>
93             <goals>
94               <goal>copy-resources</goal>
95             </goals>
96             <configuration>
97               <outputDirectory>${project.basedir}/target/generated-resources/dlux</outputDirectory>
98               <resources>
99                 <resource>
100                   <directory>${project.basedir}/../../dlux-web/build/</directory>
101                   <includes>
102                     <include>src/main.js</include>
103                     <include>src/app/app.controller.js</include>
104                     <include>src/app/app.module.js</include>
105                     <include>src/app/routingConfig.js</include>
106                     <include>src/common/config/env.module.js</include>
107                     <include>vendor/**</include>
108                     <include>assets/**</include>
109                   </includes>
110                   <excludes>
111                     <exclude>assets/yang2xml/</exclude>
112                   </excludes>
113                   <filtering>false</filtering>
114                 </resource>
115               </resources>
116             </configuration>
117           </execution>
118           <execution>
119             <id>copy-index</id>
120             <phase>validate</phase>
121             <goals>
122               <goal>copy-resources</goal>
123             </goals>
124             <configuration>
125               <outputDirectory>${project.basedir}/target/generated-resources/index</outputDirectory>
126               <resources>
127                 <resource>
128                   <directory>${project.basedir}/../../dlux-web/build/</directory>
129                     <includes>
130                       <include>index.html</include>
131                     </includes>
132                   <filtering>false</filtering>
133                 </resource>
134               </resources>
135             </configuration>
136           </execution>
137         </executions>
138       </plugin>
139     <!-- <plugin>
140         <groupId>org.apache.maven.plugins</groupId>
141         <artifactId>maven-dependency-plugin</artifactId>
142         <version>2.6</version>
143         <executions>
144           <execution>
145             <id>unpack-loader-resources</id>
146             <goals>
147               <goal>unpack-dependencies</goal>
148             </goals>
149             <phase>generate-resources</phase>
150             <configuration>
151               <outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
152               <groupId>org.opendaylight.dlux</groupId>
153               <includeArtifactIds>dlux.loader.resources</includeArtifactIds>
154               <excludes>META-INF\/**</excludes>
155               <excludeTransitive>true</excludeTransitive>
156               <ignorePermissions>false</ignorePermissions>
157             </configuration>
158           </execution>
159         </executions>
160       </plugin> -->
161       <plugin>
162         <groupId>org.apache.maven.plugins</groupId>
163         <artifactId>maven-checkstyle-plugin</artifactId>
164         <configuration>
165           <!-- Exclusion doesn't seem to work for the yang.xml files within the resources folders -->
166           <excludes>**/*</excludes>
167         </configuration>
168       </plugin>
169       <plugin>
170         <groupId>org.apache.felix</groupId>
171         <artifactId>maven-bundle-plugin</artifactId>
172         <extensions>true</extensions>
173         <configuration>
174           <instructions>
175             <Import-Package>org.osgi.framework,
176                             org.opendaylight.dlux.loader,
177                             org.osgi.service.http,
178                             javax.servlet,
179                             javax.servlet.http,*
180                             </Import-Package>
181             <Export-Package>org.opendaylight.dlux.loader.implementation</Export-Package>
182           </instructions>
183         </configuration>
184       </plugin>
185       <!-- Disable offline link detection which breaks the build here -->
186       <plugin>
187         <artifactId>maven-javadoc-plugin</artifactId>
188         <configuration>
189           <detectOfflineLinks>false</detectOfflineLinks>
190         </configuration>
191       </plugin>
192     </plugins>
193   </build>
194   <scm>
195     <connection>scm:git:ssh://git.opendaylight.org:29418/dlux.git</connection>
196     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/dlux.git</developerConnection>
197     <tag>HEAD</tag>
198     <url>https://wiki.opendaylight.org/view/OpenDaylight_dlux:Main</url>
199   </scm>
200 </project>