Remove errant checkin of Unit Tests.
[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           <!--
28                We use the maven-resources-plugin to copy
29                a class from the groupbasepolicy bundle that
30                we need in order to run some unit tests in
31                the renderer (classes in the test directory
32                aren't packaged in bundles, and instead of
33                keeping separate copies, we just copy the
34                file(s) needed in order to run the test).
35           -->
36               
37     <plugins>
38       <plugin>
39         <artifactId>maven-resources-plugin</artifactId>
40         <version>2.7</version>
41         <executions>
42           <execution>
43             <id>copy-resources</id>
44             <!-- here the phase you need -->
45             <phase>validate</phase>
46             <goals>
47               <goal>copy-resources</goal>
48             </goals>
49             <configuration>
50               <outputDirectory>src/test/java/org/opendaylight/groupbasedpolicy/resolver</outputDirectory>
51               <resources>
52                 <resource>
53                   <directory>../../groupbasedpolicy/src/test/java/org/opendaylight/groupbasedpolicy/resolver</directory>
54                   <filtering>true</filtering>
55                 </resource>
56               </resources>
57             </configuration>
58           </execution>
59         </executions>
60       </plugin>
61       <plugin>
62         <groupId>org.apache.felix</groupId>
63         <artifactId>maven-bundle-plugin</artifactId>
64         <extensions>true</extensions>
65         <configuration>
66           <instructions>
67             <Import-Package>
68              org.apache.http.*;version="4.3.2",
69              *;resolution:=optional
70             </Import-Package>
71             <Embed-Dependency>httpclient,httpcore,commons-lang,commons-exec;type=!pom;inline=false</Embed-Dependency>
72             <Export-Package>
73             </Export-Package>
74           </instructions>
75           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
76         </configuration>
77       </plugin>
78       <plugin>
79         <groupId>org.codehaus.mojo</groupId>
80         <artifactId>build-helper-maven-plugin</artifactId>
81         <executions>
82           <execution>
83             <goals>
84               <goal>add-source</goal>
85             </goals>
86             <phase>generate-sources</phase>
87             <configuration>
88               <sources>
89                 <source>target/generated-sources/sal</source>
90                 <source>target/generated-sources/config</source>
91                 <source>target/generated-resources/</source>
92               </sources>
93             </configuration>
94           </execution>
95         </executions>
96       </plugin>
97       <plugin>
98         <groupId>org.opendaylight.yangtools</groupId>
99         <artifactId>yang-maven-plugin</artifactId>
100         <dependencies>
101           <dependency>
102             <groupId>org.opendaylight.controller</groupId>
103             <artifactId>yang-jmx-generator-plugin</artifactId>
104             <version>0.3.0-SNAPSHOT</version>
105           </dependency>
106           <dependency>
107             <groupId>org.opendaylight.yangtools</groupId>
108             <artifactId>maven-sal-api-gen-plugin</artifactId>
109             <version>${yangtools.version}</version>
110             <type>jar</type>
111           </dependency>
112         </dependencies>
113         <executions>
114           <execution>
115             <goals>
116               <goal>generate-sources</goal>
117             </goals>
118             <configuration>
119               <codeGenerators>
120                 <generator>
121                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
122                   <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
123                   <additionalConfiguration>
124                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
125                   </additionalConfiguration>
126                 </generator>
127                 <generator>
128                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
129                   <outputBaseDir>${project.build.directory}/generated-sources/sal</outputBaseDir>
130                 </generator>
131                 <generator>
132                   <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
133                   <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
134                 </generator>
135               </codeGenerators>
136               <inspectDependencies>true</inspectDependencies>
137             </configuration>
138           </execution>
139         </executions>
140       </plugin>
141       <plugin>
142         <groupId>org.apache.maven.plugins</groupId>
143         <artifactId>maven-surefire-plugin</artifactId>
144         <configuration>
145           <redirectTestOutputToFile>true</redirectTestOutputToFile>
146         </configuration>
147       </plugin>
148       <plugin>
149         <groupId>org.jacoco</groupId>
150         <artifactId>jacoco-maven-plugin</artifactId>
151         <executions>
152           <execution>
153             <id>pre-unit-test</id>
154             <goals>
155               <goal>prepare-agent</goal>
156             </goals>
157           </execution>
158           <execution>
159             <id>post-unit-test</id>
160             <phase>test</phase>
161             <goals>
162               <goal>report</goal>
163             </goals>
164             <configuration>
165               <dataFile>${sonar.jacoco.reportPath}</dataFile>
166               <includes>
167                 <include>org/opendaylight/groupbasedpolicy/**/*.class</include>
168               </includes>
169             </configuration>
170           </execution>
171         </executions>
172       </plugin>
173     </plugins>
174   </build>
175 </project>
176