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