Fix remaining CS errors in sal-akka-raft and enable enforcement
[controller.git] / opendaylight / md-sal / sal-akka-raft / 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-akka-raft</artifactId>
10   <packaging>bundle</packaging>
11
12   <dependencies>
13     <dependency>
14       <groupId>org.opendaylight.controller</groupId>
15       <artifactId>sal-clustering-commons</artifactId>
16     </dependency>
17     <dependency>
18       <groupId>com.google.guava</groupId>
19       <artifactId>guava</artifactId>
20     </dependency>
21
22     <dependency>
23       <groupId>com.typesafe.akka</groupId>
24       <artifactId>akka-actor_${scala.version}</artifactId>
25     </dependency>
26
27     <dependency>
28       <groupId>com.typesafe.akka</groupId>
29       <artifactId>akka-cluster_${scala.version}</artifactId>
30     </dependency>
31
32     <dependency>
33       <groupId>com.typesafe.akka</groupId>
34       <artifactId>akka-persistence_${scala.version}</artifactId>
35     </dependency>
36
37     <dependency>
38       <groupId>com.typesafe.akka</groupId>
39       <artifactId>akka-remote_${scala.version}</artifactId>
40     </dependency>
41
42     <dependency>
43       <groupId>com.typesafe.akka</groupId>
44       <artifactId>akka-testkit_${scala.version}</artifactId>
45       <scope>test</scope>
46     </dependency>
47
48     <dependency>
49       <groupId>org.osgi</groupId>
50       <artifactId>org.osgi.core</artifactId>
51     </dependency>
52
53     <dependency>
54       <groupId>org.scala-lang</groupId>
55       <artifactId>scala-library</artifactId>
56     </dependency>
57
58     <dependency>
59       <groupId>commons-io</groupId>
60       <artifactId>commons-io</artifactId>
61     </dependency>
62
63     <dependency>
64       <groupId>org.apache.commons</groupId>
65       <artifactId>commons-lang3</artifactId>
66     </dependency>
67
68     <dependency>
69       <groupId>com.typesafe.akka</groupId>
70       <artifactId>akka-slf4j_${scala.version}</artifactId>
71     </dependency>
72
73
74       <!-- Test Dependencies -->
75     <dependency>
76       <groupId>junit</groupId>
77       <artifactId>junit</artifactId>
78       <scope>test</scope>
79     </dependency>
80     <dependency>
81       <groupId>org.mockito</groupId>
82       <artifactId>mockito-all</artifactId>
83       <scope>test</scope>
84     </dependency>
85
86     <dependency>
87       <groupId>org.slf4j</groupId>
88       <artifactId>slf4j-simple</artifactId>
89       <scope>test</scope>
90     </dependency>
91
92   </dependencies>
93
94   <build>
95     <plugins>
96
97       <plugin>
98         <groupId>org.apache.felix</groupId>
99         <artifactId>maven-bundle-plugin</artifactId>
100         <extensions>true</extensions>
101         <configuration>
102           <instructions>
103             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
104             <Export-package>org.opendaylight.cluster.raft</Export-package>
105             <Import-Package>*</Import-Package>
106             <DynamicImport-Package>*</DynamicImport-Package>
107           </instructions>
108         </configuration>
109       </plugin>
110
111       <plugin>
112         <groupId>org.apache.maven.plugins</groupId>
113         <artifactId>maven-jar-plugin</artifactId>
114         <executions>
115           <execution>
116             <goals>
117               <goal>test-jar</goal>
118             </goals>
119           </execution>
120         </executions>
121       </plugin>
122
123       <plugin>
124         <groupId>org.jacoco</groupId>
125         <artifactId>jacoco-maven-plugin</artifactId>
126         <configuration>
127           <includes>
128             <include>org/opendaylight/controller/cluster/**/*</include>
129           </includes>
130           <excludes>
131               <exclude>org/opendaylight/controller/cluster/raft/protobuff/**/*</exclude>
132               <exclude>org/opendaylight/controller/cluster/example/**/*</exclude>
133           </excludes>
134           <check>false</check>
135         </configuration>
136         <executions>
137           <execution>
138             <id>pre-test</id>
139             <goals>
140               <goal>prepare-agent</goal>
141             </goals>
142           </execution>
143           <execution>
144             <id>post-test</id>
145             <goals>
146               <goal>report</goal>
147             </goals>
148             <phase>test</phase>
149           </execution>
150         </executions>
151       </plugin>
152
153      <plugin>
154         <groupId>org.apache.maven.plugins</groupId>
155         <artifactId>maven-checkstyle-plugin</artifactId>
156         <configuration>
157           <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
158         </configuration>
159       </plugin>
160
161     </plugins>
162   </build>
163   <scm>
164     <connection>scm:git:http://git.opendaylight.org/gerrit/controller.git</connection>
165     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
166     <tag>HEAD</tag>
167     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Architecture:Clustering</url>
168   </scm>
169 </project>