Fixed error in loader blueprint
[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       <resource>
50         <directory>src/main/resources</directory>
51       </resource>
52     </resources>
53     <plugins>
54       <!--Clean extracted resources-->
55       <plugin>
56           <artifactId>maven-clean-plugin</artifactId>
57           <version>2.5</version>
58           <configuration>
59             <filesets>
60               <fileset>
61                 <directory>${project.basedir}/src/main/resources/</directory>
62                 <includes>
63                               <include>dlux/</include>
64                               <include>index/</include>
65                             </includes>
66                 <excludes></excludes>
67                 <followSymlinks>false</followSymlinks>
68               </fileset>
69             </filesets>
70           </configuration>
71       </plugin>
72       <!--Copy resources from the dlux-web/build dir-->
73       <!--<plugin>
74         <artifactId>maven-resources-plugin</artifactId>
75         <version>2.6</version>
76         <executions>
77           <execution>
78             <id>copy-src-resources</id>
79             <phase>validate</phase>
80             <goals>
81               <goal>copy-resources</goal>
82             </goals>
83             <configuration>
84               <outputDirectory>${project.basedir}/src/main/resources/dlux</outputDirectory>
85               <resources>
86                 <resource>
87                   <directory>${project.basedir}/../../dlux-web/build/</directory>
88                     <includes>
89                       <include>src/main.js</include>
90                       <include>src/app/app.controller.js</include>
91                       <include>src/app/app.module.js</include>
92                       <include>src/app/app.routingConfig.js</include>
93                       <include>vendor/**</include>
94                       <include>assets/**</include>
95                     </includes>
96                     <excludes>
97                       <exclude>assets/yang2xml/</exclude>
98                     </excludes>
99                   <filtering>false</filtering>
100                 </resource>
101               </resources>
102             </configuration>
103           </execution>
104           <execution>
105             <id>copy-index</id>
106             <phase>validate</phase>
107             <goals>
108               <goal>copy-resources</goal>
109             </goals>
110             <configuration>
111               <outputDirectory>${project.basedir}/src/main/resources/index</outputDirectory>
112               <resources>
113                 <resource>
114                   <directory>${project.basedir}/../../dlux-web/build/</directory>
115                     <includes>
116                       <include>index.html</include>
117                     </includes>
118                   <filtering>false</filtering>
119                 </resource>
120               </resources>
121             </configuration>
122           </execution>
123         </executions>
124       </plugin>-->
125      <plugin>
126         <groupId>org.apache.maven.plugins</groupId>
127         <artifactId>maven-dependency-plugin</artifactId>
128         <version>2.6</version>
129         <executions>
130      <!--loader Resources-->
131           <execution>
132             <id>unpack-loader-resources</id>
133             <goals>
134               <goal>unpack-dependencies</goal>
135             </goals>
136             <phase>generate-resources</phase>
137             <configuration>
138               <outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
139               <groupId>org.opendaylight.dlux</groupId>
140               <includeArtifactIds>dlux.loader.resources</includeArtifactIds>
141               <excludes>META-INF\/**</excludes>
142               <excludeTransitive>true</excludeTransitive>
143               <ignorePermissions>false</ignorePermissions>
144             </configuration>
145           </execution>
146         </executions>
147       </plugin>
148     <plugin>
149
150       <groupId>org.apache.maven.plugins</groupId>
151       <artifactId>maven-checkstyle-plugin</artifactId>
152         <configuration>
153           <!-- Exclusion doesn't seem to work for the yang.xml files within the resources folders -->
154           <excludes>**/*</excludes>
155         </configuration>
156      </plugin>
157       <plugin>
158         <groupId>org.apache.felix</groupId>
159         <artifactId>maven-bundle-plugin</artifactId>
160         <version>2.4.0</version>
161         <extensions>true</extensions>
162         <configuration>
163           <instructions>
164             <Import-Package>org.osgi.framework,
165                             org.opendaylight.dlux.loader,
166                             org.opendaylight.dlux.loader.implementation,
167                             org.osgi.service.http,
168                             javax.servlet,
169                             javax.servlet.http,*
170                             </Import-Package>
171             <Export-Package>org.opendaylight.dlux.loader.implementation</Export-Package>
172           </instructions>
173         </configuration>
174       </plugin>
175     </plugins>
176   </build>
177   <scm>
178     <connection>scm:git:ssh://git.opendaylight.org:29418/dlux.git</connection>
179     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/dlux.git</developerConnection>
180     <tag>HEAD</tag>
181     <url>https://wiki.opendaylight.org/view/OpenDaylight_dlux:Main</url>
182   </scm>
183 </project>