Add sal-akka-raft test-jar dependency to sal-distributed-store pom
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / 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.controller</groupId>
6     <artifactId>sal-parent</artifactId>
7     <version>1.2.0-SNAPSHOT</version>
8   </parent>
9   <artifactId>sal-distributed-datastore</artifactId>
10   <packaging>bundle</packaging>
11
12   <dependencies>
13     <!-- Java -->
14     <dependency>
15       <groupId>junit</groupId>
16       <artifactId>junit</artifactId>
17       <scope>test</scope>
18     </dependency>
19     <dependency>
20       <groupId>org.mockito</groupId>
21       <artifactId>mockito-all</artifactId>
22       <scope>test</scope>
23     </dependency>
24     <dependency>
25       <groupId>org.slf4j</groupId>
26       <artifactId>slf4j-simple</artifactId>
27       <scope>test</scope>
28     </dependency>
29
30     <dependency>
31       <groupId>org.osgi</groupId>
32       <artifactId>org.osgi.core</artifactId>
33     </dependency>
34
35     <!-- Akka -->
36     <dependency>
37       <groupId>com.typesafe.akka</groupId>
38       <artifactId>akka-actor_${scala.version}</artifactId>
39     </dependency>
40     <dependency>
41       <groupId>com.typesafe.akka</groupId>
42       <artifactId>akka-cluster_${scala.version}</artifactId>
43     </dependency>
44     <dependency>
45       <groupId>com.typesafe.akka</groupId>
46       <artifactId>akka-osgi_${scala.version}</artifactId>
47     </dependency>
48     <dependency>
49       <groupId>com.typesafe.akka</groupId>
50       <artifactId>akka-persistence-experimental_${scala.version}</artifactId>
51     </dependency>
52     <dependency>
53       <groupId>com.typesafe.akka</groupId>
54       <artifactId>akka-remote_${scala.version}</artifactId>
55     </dependency>
56     <dependency>
57       <groupId>com.typesafe.akka</groupId>
58       <artifactId>akka-slf4j_${scala.version}</artifactId>
59     </dependency>
60     <dependency>
61       <groupId>com.typesafe.akka</groupId>
62       <artifactId>akka-testkit_${scala.version}</artifactId>
63     </dependency>
64
65     <!-- Codahale -->
66     <dependency>
67       <groupId>com.codahale.metrics</groupId>
68       <artifactId>metrics-core</artifactId>
69     </dependency>
70     <dependency>
71       <groupId>com.codahale.metrics</groupId>
72       <artifactId>metrics-graphite</artifactId>
73     </dependency>
74
75     <!-- Google -->
76     <dependency>
77       <groupId>com.google.guava</groupId>
78       <artifactId>guava</artifactId>
79     </dependency>
80
81     <!-- Scala -->
82     <dependency>
83       <groupId>org.scala-lang</groupId>
84       <artifactId>scala-library</artifactId>
85     </dependency>
86
87     <!-- OpenDaylight -->
88     <dependency>
89       <groupId>org.opendaylight.controller</groupId>
90       <artifactId>config-api</artifactId>
91     </dependency>
92     <dependency>
93       <groupId>org.opendaylight.controller</groupId>
94       <artifactId>sal-akka-raft</artifactId>
95       <version>1.2.0-SNAPSHOT</version>
96     </dependency>
97     <dependency>
98       <groupId>org.opendaylight.controller</groupId>
99       <artifactId>sal-akka-raft</artifactId>
100       <version>1.2.0-SNAPSHOT</version>
101       <type>test-jar</type>
102       <scope>test</scope>
103     </dependency>
104     <dependency>
105       <groupId>org.opendaylight.controller</groupId>
106       <artifactId>sal-binding-api</artifactId>
107     </dependency>
108     <dependency>
109       <groupId>org.opendaylight.controller</groupId>
110       <artifactId>sal-binding-config</artifactId>
111     </dependency>
112     <dependency>
113       <groupId>org.opendaylight.controller</groupId>
114       <artifactId>sal-clustering-commons</artifactId>
115     </dependency>
116     <dependency>
117       <groupId>org.opendaylight.controller</groupId>
118       <artifactId>sal-common-api</artifactId>
119     </dependency>
120     <dependency>
121       <groupId>org.opendaylight.controller</groupId>
122       <artifactId>sal-common-util</artifactId>
123     </dependency>
124     <dependency>
125       <groupId>org.opendaylight.controller</groupId>
126       <artifactId>sal-broker-impl</artifactId>
127     </dependency>
128
129     <dependency>
130       <groupId>org.opendaylight.controller</groupId>
131       <artifactId>sal-core-spi</artifactId>
132     </dependency>
133     <dependency>
134       <groupId>org.opendaylight.controller</groupId>
135       <artifactId>sal-inmemory-datastore</artifactId>
136     </dependency>
137
138     <dependency>
139       <groupId>org.opendaylight.yangtools</groupId>
140       <artifactId>concepts</artifactId>
141     </dependency>
142     <dependency>
143       <groupId>org.opendaylight.yangtools</groupId>
144       <artifactId>yang-binding</artifactId>
145     </dependency>
146     <dependency>
147       <groupId>org.opendaylight.yangtools</groupId>
148       <artifactId>yang-common</artifactId>
149     </dependency>
150     <dependency>
151       <groupId>org.opendaylight.yangtools</groupId>
152       <artifactId>yang-data-api</artifactId>
153     </dependency>
154     <dependency>
155       <groupId>org.opendaylight.yangtools</groupId>
156       <artifactId>yang-data-impl</artifactId>
157     </dependency>
158     <dependency>
159       <groupId>org.apache.commons</groupId>
160       <artifactId>commons-lang3</artifactId>
161     </dependency>
162
163   </dependencies>
164
165   <build>
166     <plugins>
167       <plugin>
168         <groupId>org.apache.felix</groupId>
169         <artifactId>maven-bundle-plugin</artifactId>
170         <extensions>true</extensions>
171         <configuration>
172           <instructions>
173             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
174             <Export-package></Export-package>
175             <Private-Package></Private-Package>
176             <Import-Package>!*snappy;!org.jboss.*;!com.jcraft.*;!*jetty*;!sun.security.*;*</Import-Package>
177             <!--
178             <Embed-Dependency>
179                 sal-clustering-commons;
180                 sal-akka-raft;
181                 *metrics*;
182                 !sal*;
183                 !*config-api*;
184                 !*testkit*;
185                 akka*;
186                 *leveldb*;
187                 *config*;
188                 *hawt*;
189                 *protobuf*;
190                 *netty*;
191                 *uncommons*;
192                 *scala*;
193             </Embed-Dependency>
194             <Embed-Transitive>true</Embed-Transitive>
195             -->
196           </instructions>
197         </configuration>
198       </plugin>
199
200       <plugin>
201         <groupId>org.apache.maven.plugins</groupId>
202         <artifactId>maven-jar-plugin</artifactId>
203         <executions>
204           <execution>
205             <goals>
206               <goal>test-jar</goal>
207             </goals>
208           </execution>
209         </executions>
210       </plugin>
211       <plugin>
212         <groupId>org.jacoco</groupId>
213         <artifactId>jacoco-maven-plugin</artifactId>
214         <configuration>
215           <includes>
216             <include>org.opendaylight.controller.*</include>
217
218           </includes>
219           <excludes>
220               <exclude>org.opendaylight.controller.config.yang.config.*</exclude>
221           </excludes>
222           <check>false</check>
223         </configuration>
224         <executions>
225           <execution>
226             <id>pre-test</id>
227             <goals>
228               <goal>prepare-agent</goal>
229             </goals>
230           </execution>
231           <execution>
232             <id>post-test</id>
233             <goals>
234               <goal>report</goal>
235             </goals>
236             <phase>test</phase>
237           </execution>
238         </executions>
239       </plugin>
240       <plugin>
241         <groupId>org.opendaylight.yangtools</groupId>
242         <artifactId>yang-maven-plugin</artifactId>
243         <executions>
244           <execution>
245             <id>config</id>
246             <goals>
247               <goal>generate-sources</goal>
248             </goals>
249             <configuration>
250               <codeGenerators>
251                 <generator>
252                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
253                   <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
254                   <additionalConfiguration>
255                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
256                   </additionalConfiguration>
257                 </generator>
258                 <generator>
259                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
260                   <outputBaseDir>${salGeneratorPath}</outputBaseDir>
261                 </generator>
262               </codeGenerators>
263               <inspectDependencies>true</inspectDependencies>
264             </configuration>
265           </execution>
266         </executions>
267       </plugin>
268     </plugins>
269   </build>
270   <scm>
271     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
272     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
273     <tag>HEAD</tag>
274     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Architecture:Clustering</url>
275   </scm>
276 </project>