* Tweaks to the policy model
[groupbasedpolicy.git] / groupbasedpolicy / 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.project</artifactId>
7     <version>0.1.0-SNAPSHOT</version>
8     <relativePath>../</relativePath>
9   </parent>
10
11   <artifactId>groupbasedpolicy</artifactId>
12   <packaging>bundle</packaging>
13
14   <properties>
15     <sal.version>1.1-SNAPSHOT</sal.version>
16     <yangtools.binding.version>0.6.2-SNAPSHOT</yangtools.binding.version>
17     <yangtools.generator.version>0.6.2-SNAPSHOT</yangtools.generator.version>
18     <yangtools.version>0.6.2-SNAPSHOT</yangtools.version>
19   </properties>
20
21   <dependencies>
22     <dependency>
23       <groupId>ch.qos.logback</groupId>
24       <artifactId>logback-classic</artifactId>
25     </dependency>
26     <dependency>
27       <groupId>ch.qos.logback</groupId>
28       <artifactId>logback-core</artifactId>
29     </dependency>
30     <dependency>
31       <groupId>com.google.guava</groupId>
32       <artifactId>guava</artifactId>
33     </dependency>
34     <dependency>
35       <groupId>org.opendaylight.controller</groupId>
36       <artifactId>config-api</artifactId>
37     </dependency>
38     <dependency>
39       <groupId>org.opendaylight.controller</groupId>
40       <artifactId>sal-binding-api</artifactId>
41     </dependency>
42     <dependency>
43       <groupId>org.opendaylight.controller</groupId>
44       <artifactId>sal-binding-config</artifactId>
45     </dependency>
46     <dependency>
47       <groupId>org.opendaylight.controller</groupId>
48       <artifactId>sal-common-util</artifactId>
49     </dependency>
50     <dependency>
51       <groupId>org.opendaylight.controller.model</groupId>
52       <artifactId>model-inventory</artifactId>
53     </dependency>
54     <dependency>
55       <groupId>org.opendaylight.yangtools</groupId>
56       <artifactId>yang-binding</artifactId>
57     </dependency>
58     <dependency>
59       <groupId>org.opendaylight.yangtools</groupId>
60       <artifactId>yang-common</artifactId>
61     </dependency>
62     <dependency>
63       <groupId>org.osgi</groupId>
64       <artifactId>org.osgi.core</artifactId>
65     </dependency>
66
67     <dependency>
68       <groupId>junit</groupId>
69       <artifactId>junit</artifactId>
70       <scope>test</scope>
71     </dependency>
72     <dependency>
73       <groupId>org.mockito</groupId>
74       <artifactId>mockito-all</artifactId>
75       <scope>test</scope>
76     </dependency>
77   </dependencies>
78
79   <!-- Project reporting -->
80   <reporting>
81     <plugins>
82       <!-- Code coverage analysis -->
83       <plugin>
84         <groupId>org.codehaus.mojo</groupId>
85         <artifactId>cobertura-maven-plugin</artifactId>
86         <version>2.6</version>
87       </plugin>
88     </plugins>
89   </reporting>
90
91   <!-- project build -->
92   <build>
93     <plugins>
94       <plugin>
95         <groupId>org.apache.felix</groupId>
96         <artifactId>maven-bundle-plugin</artifactId>
97       </plugin>
98       <plugin>
99         <groupId>org.apache.felix</groupId>
100         <artifactId>maven-bundle-plugin</artifactId>
101         <extensions>true</extensions>
102         <configuration>
103           <instructions>
104             <Import-Package>*</Import-Package>
105             <Export-Package>org.opendaylight.controller.config.yang.config.endpoint_provider</Export-Package>
106           </instructions>
107           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
108         </configuration>
109       </plugin>
110       <!-- Code coverage analysis -->
111       <plugin>
112         <groupId>org.codehaus.mojo</groupId>
113         <artifactId>cobertura-maven-plugin</artifactId>
114         <version>2.6</version>
115         <configuration>
116           <instrumentation>
117             <excludes>
118               <exclude>org/opendaylight/yang/**/*.class</exclude>
119               <exclude>org/opendaylight/controller/config/yang/**/*.class</exclude>
120             </excludes>
121           </instrumentation>
122         </configuration>
123       </plugin>
124       <plugin>
125         <groupId>org.apache.maven.plugins</groupId>
126         <artifactId>maven-surefire-plugin</artifactId>
127         <configuration>
128           <redirectTestOutputToFile>true</redirectTestOutputToFile>
129           <!-- needed for cobertura -->
130           <argLine>-XX:-UseSplitVerifier</argLine>
131         </configuration>
132       </plugin>
133       <plugin>
134         <groupId>org.codehaus.mojo</groupId>
135         <artifactId>build-helper-maven-plugin</artifactId>
136         <executions>
137           <execution>
138             <goals>
139               <goal>add-source</goal>
140             </goals>
141             <phase>generate-sources</phase>
142             <configuration>
143               <sources>
144                 <source>target/generated-sources/sal</source>
145                 <source>target/generated-sources/config</source>
146                 <source>target/generated-resources/</source>
147               </sources>
148             </configuration>
149           </execution>
150         </executions>
151       </plugin>
152       <plugin>
153         <groupId>org.opendaylight.yangtools</groupId>
154         <artifactId>yang-maven-plugin</artifactId>
155         <dependencies>
156           <dependency>
157             <groupId>org.opendaylight.controller</groupId>
158             <artifactId>yang-jmx-generator-plugin</artifactId>
159             <version>0.2.5-SNAPSHOT</version>
160           </dependency>
161           <dependency>
162             <groupId>org.opendaylight.yangtools</groupId>
163             <artifactId>maven-sal-api-gen-plugin</artifactId>
164             <version>${yangtools.version}</version>
165             <type>jar</type>
166           </dependency>
167         </dependencies>
168         <executions>
169           <execution>
170             <goals>
171               <goal>generate-sources</goal>
172             </goals>
173             <configuration>
174               <codeGenerators>
175                 <generator>
176                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
177                   <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
178                   <additionalConfiguration>
179                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
180                   </additionalConfiguration>
181                 </generator>
182                 <generator>
183                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
184                   <outputBaseDir>${project.build.directory}/generated-sources/sal</outputBaseDir>
185                 </generator>
186                 <generator>
187                   <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
188                   <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
189                 </generator>
190               </codeGenerators>
191               <inspectDependencies>true</inspectDependencies>
192             </configuration>
193           </execution>
194         </executions>
195       </plugin>
196     </plugins>
197   </build>
198 </project>