Merge "Increased coverage of InheritanceUtilsTest."
[groupbasedpolicy.git] / renderers / ofoverlay / 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.groupbasedpolicy</groupId>
6     <artifactId>groupbasedpolicy-renderers</artifactId>
7     <version>0.2.0-SNAPSHOT</version>
8     <relativePath>../</relativePath>
9   </parent>
10
11   <artifactId>ofoverlay-renderer</artifactId>
12   <packaging>bundle</packaging>
13
14   <properties>
15   </properties>
16
17   <dependencies>
18     <dependency>
19       <groupId>org.opendaylight.openflowplugin</groupId>
20       <artifactId>openflowplugin-extension-nicira</artifactId>
21       <version>${openflowplugin-nicira.version}</version>
22     </dependency>
23   </dependencies>
24
25   <!-- project build -->
26   <build>
27     <plugins>
28       <plugin>
29         <artifactId>maven-resources-plugin</artifactId>
30         <version>2.7</version>
31         <executions>
32           <execution>
33             <id>copy-resources</id>
34             <!-- here the phase you need -->
35             <phase>validate</phase>
36             <goals>
37               <goal>copy-resources</goal>
38             </goals>
39             <configuration>
40               <outputDirectory>src/test/java/org/opendaylight/groupbasedpolicy/resolver</outputDirectory>
41               <resources>
42                 <resource>
43                   <directory>../../groupbasedpolicy/src/test/java/org/opendaylight/groupbasedpolicy/resolver</directory>
44                   <filtering>true</filtering>
45                 </resource>
46               </resources>
47             </configuration>
48           </execution>
49         </executions>
50       </plugin>
51       <plugin>
52         <groupId>org.apache.felix</groupId>
53         <artifactId>maven-bundle-plugin</artifactId>
54         <extensions>true</extensions>
55         <configuration>
56           <instructions>
57             <Import-Package>
58              org.apache.http.*;version="4.3.2",
59              *;resolution:=optional
60             </Import-Package>
61             <Embed-Dependency>httpclient,httpcore,commons-lang,commons-exec;type=!pom;inline=false</Embed-Dependency>
62             <Export-Package>
63             </Export-Package>
64           </instructions>
65           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
66         </configuration>
67       </plugin>
68       <plugin>
69         <groupId>org.codehaus.mojo</groupId>
70         <artifactId>build-helper-maven-plugin</artifactId>
71         <executions>
72           <execution>
73             <goals>
74               <goal>add-source</goal>
75             </goals>
76             <phase>generate-sources</phase>
77             <configuration>
78               <sources>
79                 <source>target/generated-sources/sal</source>
80                 <source>target/generated-sources/config</source>
81                 <source>target/generated-resources/</source>
82               </sources>
83             </configuration>
84           </execution>
85         </executions>
86       </plugin>
87       <plugin>
88         <groupId>org.opendaylight.yangtools</groupId>
89         <artifactId>yang-maven-plugin</artifactId>
90         <dependencies>
91           <dependency>
92             <groupId>org.opendaylight.controller</groupId>
93             <artifactId>yang-jmx-generator-plugin</artifactId>
94             <version>0.3.0-SNAPSHOT</version>
95           </dependency>
96           <dependency>
97             <groupId>org.opendaylight.yangtools</groupId>
98             <artifactId>maven-sal-api-gen-plugin</artifactId>
99             <version>${yangtools.version}</version>
100             <type>jar</type>
101           </dependency>
102         </dependencies>
103         <executions>
104           <execution>
105             <goals>
106               <goal>generate-sources</goal>
107             </goals>
108             <configuration>
109               <codeGenerators>
110                 <generator>
111                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
112                   <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
113                   <additionalConfiguration>
114                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
115                   </additionalConfiguration>
116                 </generator>
117                 <generator>
118                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
119                   <outputBaseDir>${project.build.directory}/generated-sources/sal</outputBaseDir>
120                 </generator>
121                 <generator>
122                   <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
123                   <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
124                 </generator>
125               </codeGenerators>
126               <inspectDependencies>true</inspectDependencies>
127             </configuration>
128           </execution>
129         </executions>
130       </plugin>
131       <plugin>
132         <groupId>org.apache.maven.plugins</groupId>
133         <artifactId>maven-surefire-plugin</artifactId>
134         <configuration>
135           <redirectTestOutputToFile>true</redirectTestOutputToFile>
136         </configuration>
137       </plugin>
138       <plugin>
139         <groupId>org.jacoco</groupId>
140         <artifactId>jacoco-maven-plugin</artifactId>
141         <executions>
142           <execution>
143             <id>pre-unit-test</id>
144             <goals>
145               <goal>prepare-agent</goal>
146             </goals>
147           </execution>
148           <execution>
149             <id>post-unit-test</id>
150             <phase>test</phase>
151             <goals>
152               <goal>report</goal>
153             </goals>
154             <configuration>
155               <dataFile>${sonar.jacoco.reportPath}</dataFile>
156               <includes>
157                 <include>org/opendaylight/groupbasedpolicy/**/*.class</include>
158               </includes>
159             </configuration>
160           </execution>
161         </executions>
162       </plugin>
163     </plugins>
164   </build>
165 </project>
166