Merge "Cleaned formatting (per ODL standards) and whitespace."
[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               org.opendaylight.groupbasedpolicy.renderer.ofoverlay.sf
74             </Export-Package>
75           </instructions>
76           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
77         </configuration>
78       </plugin>
79       <plugin>
80         <groupId>org.codehaus.mojo</groupId>
81         <artifactId>build-helper-maven-plugin</artifactId>
82         <executions>
83           <execution>
84             <goals>
85               <goal>add-source</goal>
86             </goals>
87             <phase>generate-sources</phase>
88             <configuration>
89               <sources>
90                 <source>target/generated-sources/sal</source>
91                 <source>target/generated-sources/config</source>
92                 <source>target/generated-resources/</source>
93               </sources>
94             </configuration>
95           </execution>
96         </executions>
97       </plugin>
98       <plugin>
99         <groupId>org.opendaylight.yangtools</groupId>
100         <artifactId>yang-maven-plugin</artifactId>
101         <dependencies>
102           <dependency>
103             <groupId>org.opendaylight.controller</groupId>
104             <artifactId>yang-jmx-generator-plugin</artifactId>
105             <version>0.3.0-SNAPSHOT</version>
106           </dependency>
107           <dependency>
108             <groupId>org.opendaylight.yangtools</groupId>
109             <artifactId>maven-sal-api-gen-plugin</artifactId>
110             <version>${yangtools.version}</version>
111             <type>jar</type>
112           </dependency>
113         </dependencies>
114         <executions>
115           <execution>
116             <goals>
117               <goal>generate-sources</goal>
118             </goals>
119             <configuration>
120               <codeGenerators>
121                 <generator>
122                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
123                   <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
124                   <additionalConfiguration>
125                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
126                   </additionalConfiguration>
127                 </generator>
128                 <generator>
129                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
130                   <outputBaseDir>${project.build.directory}/generated-sources/sal</outputBaseDir>
131                 </generator>
132                 <generator>
133                   <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
134                   <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
135                 </generator>
136               </codeGenerators>
137               <inspectDependencies>true</inspectDependencies>
138             </configuration>
139           </execution>
140         </executions>
141       </plugin>
142       <plugin>
143         <groupId>org.apache.maven.plugins</groupId>
144         <artifactId>maven-surefire-plugin</artifactId>
145         <configuration>
146           <redirectTestOutputToFile>true</redirectTestOutputToFile>
147         </configuration>
148       </plugin>
149       <plugin>
150         <groupId>org.jacoco</groupId>
151         <artifactId>jacoco-maven-plugin</artifactId>
152         <executions>
153           <execution>
154             <id>pre-unit-test</id>
155             <goals>
156               <goal>prepare-agent</goal>
157             </goals>
158           </execution>
159           <execution>
160             <id>post-unit-test</id>
161             <phase>test</phase>
162             <goals>
163               <goal>report</goal>
164             </goals>
165             <configuration>
166               <dataFile>${sonar.jacoco.reportPath}</dataFile>
167               <includes>
168                 <include>org/opendaylight/groupbasedpolicy/**/*.class</include>
169               </includes>
170             </configuration>
171           </execution>
172         </executions>
173       </plugin>
174     </plugins>
175   </build>
176 </project>
177