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