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