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