aclservice end-to-end test, with a bunch of cool new patterns
[netvirt.git] / vpnservice / aclservice / impl / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: --><!--
3 Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
4
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11   <modelVersion>4.0.0</modelVersion>
12
13   <parent>
14     <groupId>org.opendaylight.netvirt</groupId>
15     <artifactId>config-parent</artifactId>
16     <version>0.4.0-SNAPSHOT</version>
17     <relativePath>../../commons/config-parent</relativePath>
18   </parent>
19
20   <groupId>org.opendaylight.netvirt</groupId>
21   <artifactId>aclservice-impl</artifactId>
22   <version>0.4.0-SNAPSHOT</version>
23   <packaging>bundle</packaging>
24
25   <dependencies>
26     <dependency>
27       <groupId>${project.groupId}</groupId>
28       <artifactId>aclservice-api</artifactId>
29       <version>${project.version}</version>
30     </dependency>
31     <dependency>
32       <groupId>org.opendaylight.controller</groupId>
33       <artifactId>sal-binding-api</artifactId>
34     </dependency>
35     <dependency>
36       <groupId>org.opendaylight.controller</groupId>
37       <artifactId>sal-binding-broker-impl</artifactId>
38     </dependency>
39     <dependency>
40       <groupId>org.opendaylight.neutron</groupId>
41       <artifactId>model</artifactId>
42       <version>${neutron.version}</version>
43     </dependency>
44     <dependency>
45       <groupId>org.opendaylight.genius</groupId>
46       <artifactId>mdsalutil-api</artifactId>
47       <version>${genius.version}</version>
48     </dependency>
49     <dependency>
50       <groupId>org.opendaylight.genius</groupId>
51       <artifactId>interfacemanager-api</artifactId>
52       <version>${genius.version}</version>
53     </dependency>
54     <dependency>
55       <groupId>org.opendaylight.ovsdb</groupId>
56       <artifactId>southbound-api</artifactId>
57       <version>${vpns.ovsdb.version}</version>
58     </dependency>
59     <dependency>
60       <groupId>${project.groupId}</groupId>
61       <artifactId>neutronvpn-api</artifactId>
62       <version>${vpnservices.version}</version>
63     </dependency>
64     <dependency>
65       <groupId>org.opendaylight.ovsdb</groupId>
66       <artifactId>utils.config</artifactId>
67       <version>${vpns.ovsdb.version}</version>
68     </dependency>
69     <dependency>
70       <groupId>org.opendaylight.netvirt</groupId>
71       <artifactId>elanmanager-api</artifactId>
72       <version>${vpnservices.version}</version>
73     </dependency>
74     <dependency>
75       <!-- TODO Remove when https://git.opendaylight.org/gerrit/#/c/44502/ is merged -->
76       <groupId>javax.inject</groupId>
77       <artifactId>javax.inject</artifactId>
78       <version>1</version>
79       <!-- <scope>provided is wrong here, and causes "Missing Constraint: Import-Package: javax.inject",
80            because javax.inject.Inject & Co. are @Retention(RUNTIME).  As bnd generates a MANIFEST.MF with import-package,
81            you must have <bundle>wrap:mvn:javax.inject/javax.inject/{{VERSION}} in respective features.xml -->
82     </dependency>
83
84     <!-- Dependencies used only by code under src/test (<scope>test) -->
85     <dependency>
86       <groupId>${project.groupId}</groupId>
87       <artifactId>aclservice-api</artifactId>
88       <version>${project.version}</version>
89       <type>test-jar</type>
90       <scope>test</scope>
91     </dependency>
92     <dependency>
93       <groupId>org.opendaylight.genius</groupId>
94       <artifactId>mdsalutil-api</artifactId>
95       <version>${genius.version}</version>
96       <type>test-jar</type>
97       <scope>test</scope>
98     </dependency>
99     <dependency>
100       <groupId>org.opendaylight.yangtools</groupId>
101       <artifactId>testutils</artifactId>
102       <scope>test</scope>
103     </dependency>
104     <dependency>
105       <groupId>com.google.truth</groupId>
106       <artifactId>truth</artifactId>
107       <scope>test</scope>
108     </dependency>
109     <dependency>
110       <groupId>org.eclipse.xtend</groupId>
111       <artifactId>org.eclipse.xtend.lib</artifactId>
112       <scope>test</scope>
113     </dependency>
114 <!--
115     <dependency>
116       <groupId>org.hamcrest</groupId>
117       <artifactId>hamcrest-library</artifactId>
118       <scope>test</scope>
119     </dependency>
120  -->
121     <dependency>
122       <groupId>org.opendaylight.controller</groupId>
123       <artifactId>sal-binding-broker-impl</artifactId>
124       <type>test-jar</type>
125       <scope>test</scope>
126     </dependency>
127     <dependency>
128       <groupId>org.slf4j</groupId>
129       <artifactId>slf4j-simple</artifactId>
130       <scope>test</scope>
131     </dependency>
132     <dependency>
133       <groupId>com.google.inject</groupId>
134       <artifactId>guice</artifactId>
135       <!-- TODO Remove <version> once TBD https://git.opendaylight.org/gerrit/#/c/?/ has been merged -->
136       <!-- Must use 4.0 instead of 4.1.0 due incomp. with to mycila-guice-jsr250 3.6.ga, see https://github.com/mycila/guice/issues/11 (below)  -->
137       <version>4.0</version>
138       <scope>test</scope>
139     </dependency>
140     <dependency>
141       <groupId>com.mycila.guice.extensions</groupId>
142       <artifactId>mycila-guice-jsr250</artifactId>
143       <version>3.6.ga</version>
144       <scope>test</scope>
145       <exclusions>
146         <exclusion>
147           <groupId>org.sonatype.sisu</groupId>
148           <artifactId>sisu-guice</artifactId>
149         </exclusion>
150       </exclusions>
151     </dependency>
152   </dependencies>
153
154   <build>
155     <plugins>
156       <plugin>
157         <groupId>org.eclipse.xtend</groupId>
158         <artifactId>xtend-maven-plugin</artifactId>
159       </plugin>
160       <plugin>
161         <groupId>org.apache.maven.plugins</groupId>
162         <artifactId>maven-checkstyle-plugin</artifactId>
163         <configuration>
164           <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
165         </configuration>
166       </plugin>
167       <plugin>
168         <groupId>org.apache.felix</groupId>
169         <artifactId>maven-bundle-plugin</artifactId>
170         <extensions>true</extensions>
171         <configuration>
172           <instructions>
173             <Embed-Dependency>utils.config;type=!pom;inline=false</Embed-Dependency>
174             <Embed-Transitive>true</Embed-Transitive>
175           </instructions>
176         </configuration>
177       </plugin>
178       <plugin>
179         <groupId>org.codehaus.mojo</groupId>
180         <artifactId>build-helper-maven-plugin</artifactId>
181         <executions>
182           <execution>
183             <id>attach-artifacts</id>
184             <goals>
185               <goal>attach-artifact</goal>
186             </goals>
187             <phase>package</phase>
188             <configuration>
189               <artifacts>
190                 <artifact>
191                   <file>${project.build.directory}/classes/initial/netvirt-aclservice-config.xml</file>
192                   <type>xml</type>
193                   <classifier>config</classifier>
194                 </artifact>
195               </artifacts>
196             </configuration>
197           </execution>
198         </executions>
199       </plugin>
200       <plugin>
201         <!-- TODO If overall proposed direction of this Gerrit is +1 by everyone,
202              then move both the blueprint-maven-plugin and the maven-antrun-plugin to odl-parent and remove from here -->
203         <groupId>org.apache.aries.blueprint</groupId>
204         <artifactId>blueprint-maven-plugin</artifactId>
205         <version>1.4.0</version>
206         <configuration>
207           <scanPaths>
208             <scanPath>org.opendaylight</scanPath>
209           </scanPaths>
210         </configuration>
211         <dependencies>
212           <dependency>
213             <!-- https://stackoverflow.com/questions/38825386/blueprint-maven-plugin-runtimeexception -->
214             <groupId>org.apache.xbean</groupId>
215             <artifactId>xbean-finder-shaded</artifactId>
216             <version>4.5</version>
217           </dependency>
218         </dependencies>
219         <executions>
220           <execution>
221             <goals>
222               <goal>blueprint-generate</goal>
223             </goals>
224           </execution>
225         </executions>
226       </plugin>
227       <!-- Remove then when upgrading blueprint-maven-plugin to 1.5.0,
228            and use <configuration><generatedDir>org/opendaylight/blueprint/
229            see https://issues.apache.org/jira/browse/ARIES-1597 -->
230       <plugin>
231         <artifactId>maven-antrun-plugin</artifactId>
232         <executions>
233           <execution>
234             <phase>process-classes</phase>
235             <goals>
236               <goal>run</goal>
237             </goals>
238             <configuration>
239               <tasks>
240                 <echo>Moving autowire.xml to org/opendaylight/blueprint</echo>
241                 <move file="${basedir}/target/generated-resources/OSGI-INF/blueprint/autowire.xml"
242                       todir="${basedir}/target/generated-resources/org/opendaylight/blueprint" />
243               </tasks>
244             </configuration>
245           </execution>
246         </executions>
247       </plugin>
248     </plugins>
249   </build>
250
251   <!--
252       Maven Site Configuration
253
254       The following configuration is necessary for maven-site-plugin to
255       correctly identify the correct deployment path for OpenDaylight Maven
256       sites.
257   -->
258   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
259
260   <distributionManagement>
261     <site>
262       <id>opendaylight-site</id>
263       <url>${nexus.site.url}/${project.artifactId}/</url>
264     </site>
265   </distributionManagement>
266 </project>