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