826d6dc5b9c4c8ce18aa5fe0ff02aa8814e53c69
[controller.git] / opendaylight / adsal / clustering / services_implementation / 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>commons.opendaylight</artifactId>
7     <version>1.5.0-Lithium</version>
8     <relativePath>../../../commons/opendaylight</relativePath>
9   </parent>
10
11   <artifactId>clustering.services-implementation</artifactId>
12   <version>0.5.0-Lithium</version>
13   <packaging>bundle</packaging>
14   <properties>
15     <!-- Sonar properties using jacoco to retrieve integration test results -->
16     <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
17     <sonar.jacoco.Reportpath>target/jacoco.exec</sonar.jacoco.Reportpath>
18     <sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
19   </properties>
20   <dependencies>
21     <dependency>
22       <groupId>equinoxSDK381</groupId>
23       <artifactId>org.apache.felix.gogo.runtime</artifactId>
24     </dependency>
25     <dependency>
26       <groupId>junit</groupId>
27       <artifactId>junit</artifactId>
28     </dependency>
29     <dependency>
30       <groupId>org.infinispan</groupId>
31       <artifactId>infinispan-core</artifactId>
32       <version>6.0.2.Final</version>
33     </dependency>
34     <dependency>
35       <groupId>org.jboss.jbossts.jta</groupId>
36       <artifactId>narayana-jta</artifactId>
37       <version>4.17.7.Final</version>
38     </dependency>
39     <dependency>
40       <groupId>org.opendaylight.controller</groupId>
41       <artifactId>clustering.services</artifactId>
42     </dependency>
43     <dependency>
44       <groupId>org.opendaylight.controller</groupId>
45       <artifactId>commons.logback_settings</artifactId>
46     </dependency>
47     <dependency>
48       <groupId>org.opendaylight.controller</groupId>
49       <artifactId>sal</artifactId>
50     </dependency>
51   </dependencies>
52   <build>
53     <pluginManagement>
54       <plugins>
55         <plugin>
56           <groupId>org.jacoco</groupId>
57           <artifactId>jacoco-maven-plugin</artifactId>
58           <version>${jacoco.version}</version>
59         </plugin>
60       </plugins>
61     </pluginManagement>
62     <plugins>
63       <plugin>
64         <groupId>org.apache.felix</groupId>
65         <artifactId>maven-bundle-plugin</artifactId>
66         <extensions>true</extensions>
67         <configuration>
68           <instructions>
69             <Import-Package>org.slf4j,
70               !org.apache.logging.log4j.*,
71               !bsh*,
72               !net.jcip.*,
73               !javax.swing,
74               !org.hornetq.*,
75               !org.jboss.*,
76               javax.transaction,
77               sun.reflect;resolution:=optional,
78               org.opendaylight.controller.clustering.services,
79               org.opendaylight.controller.sal.core,*</Import-Package>
80             <Bundle-Activator>org.opendaylight.controller.clustering.services_implementation.internal.Activator</Bundle-Activator>
81             <!-- Add in the DynamicImport-Package ONLY the packages that -->
82             <!-- contains types that MUST be unmarshalled by the -->
83             <!-- infinispan. They need to be wired at runtime even during -->
84             <!-- the bundle is already RESOLVED, but at the same time if -->
85             <!-- those are missing the bundle will still come up, this is -->
86             <!-- why those dependencies ends in the DynamicImport-Package -->
87             <!-- rather in the Import-Package -->
88             <DynamicImport-Package>*</DynamicImport-Package>
89             <Embed-Dependency>infinispan-core,infinispan-commons,jgroups,jboss-marshalling-river,jboss-marshalling,jboss-logging,staxmapper,narayana-jta;type=!pom;inline=false</Embed-Dependency>
90             <Embed-Transitive>true</Embed-Transitive>
91           </instructions>
92           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
93         </configuration>
94       </plugin>
95       <plugin>
96         <groupId>org.apache.maven.plugins</groupId>
97         <artifactId>maven-enforcer-plugin</artifactId>
98         <version>${enforcer.version}</version>
99         <executions>
100           <execution>
101             <id>enforce-banned-dependencies</id>
102             <goals>
103               <goal>enforce</goal>
104             </goals>
105             <configuration>
106               <rules>
107                 <bannedDependencies>
108                   <excludes>
109                     <exclude>org.infinispan:infinispan-core:*</exclude>
110                   </excludes>
111                   <includes>
112                     <include>org.infinispan:infinispan-core:[6.0.2.Final]</include>
113                   </includes>
114                 </bannedDependencies>
115               </rules>
116               <fail>true</fail>
117             </configuration>
118           </execution>
119         </executions>
120       </plugin>
121       <plugin>
122         <groupId>org.jacoco</groupId>
123         <artifactId>jacoco-maven-plugin</artifactId>
124         <configuration>
125           <includes>
126             <include>org.opendaylight.controller.*</include>
127           </includes>
128         </configuration>
129         <executions>
130           <execution>
131             <id>pre-test</id>
132             <goals>
133               <goal>prepare-agent</goal>
134             </goals>
135           </execution>
136           <execution>
137             <id>post-test</id>
138             <goals>
139               <goal>report</goal>
140             </goals>
141             <phase>test</phase>
142           </execution>
143         </executions>
144       </plugin>
145     </plugins>
146   </build>
147   <scm>
148     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
149     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
150     <tag>HEAD</tag>
151     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
152   </scm>
153 </project>