7f80ea4036ed9abd32c187d9e666ede377478b69
[controller.git] / opendaylight / md-sal / sal-cluster-admin / 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.4.0-SNAPSHOT</version>
8   </parent>
9   <artifactId>sal-cluster-admin</artifactId>
10   <packaging>bundle</packaging>
11
12   <dependencies>
13     <!-- Tests -->
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     <dependency>
30       <groupId>org.opendaylight.controller</groupId>
31       <artifactId>sal-akka-raft</artifactId>
32       <type>test-jar</type>
33       <scope>test</scope>
34     </dependency>
35     <dependency>
36       <groupId>org.opendaylight.controller</groupId>
37       <artifactId>sal-distributed-datastore</artifactId>
38       <type>test-jar</type>
39       <version>1.4.0-SNAPSHOT</version>
40       <scope>test</scope>
41     </dependency>
42
43     <!-- Akka -->
44     <dependency>
45       <groupId>com.typesafe.akka</groupId>
46       <artifactId>akka-actor_${scala.version}</artifactId>
47     </dependency>
48     <dependency>
49       <groupId>com.typesafe.akka</groupId>
50       <artifactId>akka-testkit_${scala.version}</artifactId>
51     </dependency>
52
53     <!-- Google -->
54     <dependency>
55       <groupId>com.google.guava</groupId>
56       <artifactId>guava</artifactId>
57     </dependency>
58
59     <!-- Scala -->
60     <dependency>
61       <groupId>org.scala-lang</groupId>
62       <artifactId>scala-library</artifactId>
63     </dependency>
64
65     <!-- OpenDaylight -->
66     <dependency>
67       <groupId>org.opendaylight.controller</groupId>
68       <artifactId>config-api</artifactId>
69     </dependency>
70     <dependency>
71       <groupId>org.opendaylight.controller</groupId>
72       <artifactId>sal-binding-api</artifactId>
73     </dependency>
74     <dependency>
75       <groupId>org.opendaylight.controller</groupId>
76       <artifactId>sal-akka-raft</artifactId>
77     </dependency>
78     <dependency>
79       <groupId>org.opendaylight.controller</groupId>
80       <artifactId>sal-distributed-datastore</artifactId>
81     </dependency>
82     <dependency>
83       <groupId>org.opendaylight.mdsal</groupId>
84       <artifactId>yang-binding</artifactId>
85     </dependency>
86     <dependency>
87       <groupId>org.opendaylight.yangtools</groupId>
88       <artifactId>yang-common</artifactId>
89     </dependency>
90     <dependency>
91       <groupId>org.apache.commons</groupId>
92       <artifactId>commons-lang3</artifactId>
93     </dependency>
94
95   </dependencies>
96
97   <build>
98     <plugins>
99       <plugin>
100         <groupId>org.apache.felix</groupId>
101         <artifactId>maven-bundle-plugin</artifactId>
102         <extensions>true</extensions>
103         <configuration>
104           <instructions>
105             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
106             <Export-Package></Export-Package>
107             <Import-Package>
108                 !*snappy;
109                 !org.jboss.*;
110                 !com.jcraft.*;
111                 !*jetty*;
112                 !sun.security.*;
113                 *;
114             </Import-Package>
115           </instructions>
116         </configuration>
117       </plugin>
118
119       <plugin>
120         <groupId>org.jacoco</groupId>
121         <artifactId>jacoco-maven-plugin</artifactId>
122         <configuration>
123           <includes>
124             <include>org.opendaylight.controller.*</include>
125
126           </includes>
127           <excludes>
128               <exclude>org.opendaylight.controller.config.yang.config.*</exclude>
129           </excludes>
130           <check>false</check>
131         </configuration>
132         <executions>
133           <execution>
134             <id>pre-test</id>
135             <goals>
136               <goal>prepare-agent</goal>
137             </goals>
138           </execution>
139           <execution>
140             <id>post-test</id>
141             <goals>
142               <goal>report</goal>
143             </goals>
144             <phase>test</phase>
145           </execution>
146         </executions>
147       </plugin>
148       <plugin>
149         <groupId>org.opendaylight.yangtools</groupId>
150         <artifactId>yang-maven-plugin</artifactId>
151         <executions>
152           <execution>
153             <id>config</id>
154             <goals>
155               <goal>generate-sources</goal>
156             </goals>
157             <configuration>
158               <codeGenerators>
159                 <generator>
160                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
161                   <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
162                   <additionalConfiguration>
163                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
164                   </additionalConfiguration>
165                 </generator>
166                 <generator>
167                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
168                   <outputBaseDir>${salGeneratorPath}</outputBaseDir>
169                 </generator>
170               </codeGenerators>
171               <inspectDependencies>true</inspectDependencies>
172             </configuration>
173           </execution>
174         </executions>
175       </plugin>
176     </plugins>
177   </build>
178 </project>