Fixed building of models, moved code into directory structure.
[packetcable.git] / 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/maven-v4_0_0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4   <packaging>pom</packaging>
5   <groupId>org.opendaylight.packetcable</groupId>
6   <artifactId>packetcable-parent</artifactId>
7   <version>1.0.0-SNAPSHOT</version>
8
9   <properties>
10     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
11     <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
12     <yangtools.version>0.6.2-SNAPSHOT</yangtools.version>
13     <bundle.plugin.version>2.3.7</bundle.plugin.version>
14     <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
15     <java.version.source>1.7</java.version.source>
16     <java.version.target>1.7</java.version.target>
17     <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
18     <mdsal.version>1.1-SNAPSHOT</mdsal.version>
19     <equinox.osgi.version>3.8.1.v20120830-144521</equinox.osgi.version>
20     <ietf-inet-types.version>2010.09.24.4-SNAPSHOT</ietf-inet-types.version>
21     <ietf-yang-types.version>2010.09.24.4-SNAPSHOT</ietf-yang-types.version>
22     <spring.version>3.1.3.RELEASE</spring.version>
23     <jackson.version>1.9.10</jackson.version>
24     <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
25     <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
26     <config.version>0.2.5-SNAPSHOT</config.version>
27     <controller.model.version>1.1-SNAPSHOT</controller.model.version>
28   </properties>
29
30   <scm>
31       <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
32       <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
33       <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL</url>
34       <tag>HEAD</tag>
35   </scm>
36
37     <pluginRepositories>
38     <!-- OpenDayLight Repo Mirror -->
39     <pluginRepository>
40       <id>opendaylight-mirror</id>
41       <name>opendaylight-mirror</name>
42       <url>${nexusproxy}/groups/public/</url>
43       <snapshots>
44           <enabled>false</enabled>
45       </snapshots>
46       <releases>
47           <enabled>true</enabled>
48           <updatePolicy>never</updatePolicy>
49       </releases>
50     </pluginRepository>
51     <!-- OpenDayLight Snapshot artifact -->
52     <pluginRepository>
53       <id>opendaylight-snapshot</id>
54       <name>opendaylight-snapshot</name>
55       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
56       <snapshots>
57           <enabled>true</enabled>
58       </snapshots>
59       <releases>
60           <enabled>false</enabled>
61       </releases>
62     </pluginRepository>
63   </pluginRepositories>
64
65   <repositories>
66     <!-- OpenDayLight Repo Mirror -->
67     <repository>
68       <id>opendaylight-mirror</id>
69       <name>opendaylight-mirror</name>
70       <url>${nexusproxy}/groups/public/</url>
71       <snapshots>
72           <enabled>false</enabled>
73       </snapshots>
74       <releases>
75           <enabled>true</enabled>
76           <updatePolicy>never</updatePolicy>
77       </releases>
78     </repository>
79     <!-- OpenDayLight Snapshot artifact -->
80     <repository>
81       <id>opendaylight-snapshot</id>
82       <name>opendaylight-snapshot</name>
83       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
84       <snapshots>
85           <enabled>true</enabled>
86       </snapshots>
87       <releases>
88           <enabled>false</enabled>
89       </releases>
90     </repository>
91   </repositories>
92
93   <distributionManagement>
94     <!-- OpenDayLight Released artifact -->
95     <repository>
96       <id>opendaylight-release</id>
97       <url>${nexusproxy}/repositories/opendaylight.release/</url>
98     </repository>
99     <!-- OpenDayLight Snapshot artifact -->
100     <snapshotRepository>
101       <id>opendaylight-snapshot</id>
102       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
103     </snapshotRepository>
104     <!-- Site deployment -->
105     <site>
106       <id>website</id>
107       <url>${sitedeploy}</url>
108     </site>
109   </distributionManagement>
110
111   <build>
112
113     <pluginManagement>
114       <plugins>
115         <plugin>
116           <groupId>org.apache.maven.plugins</groupId>
117           <artifactId>maven-compiler-plugin</artifactId>
118           <version>${maven.compile.plugin.version}</version>
119           <configuration>
120             <source>${java.version.source}</source>
121             <target>${java.version.target}</target>
122           </configuration>
123         </plugin>
124         <!--  tells eclipse to import these folders into the package explorer as "source" folders
125               which allows eclipse to resolve the classes correctly during an eclipse build -->
126         <plugin>
127           <groupId>org.codehaus.mojo</groupId>
128           <artifactId>build-helper-maven-plugin</artifactId>
129           <version>1.8</version>
130           <executions>
131             <execution>
132               <id>add-source</id>
133               <goals>
134                 <goal>add-source</goal>
135               </goals>
136               <phase>generate-sources</phase>
137               <configuration>
138                 <sources>
139                   <source>src/main/yang</source>
140                   <source>${jmxGeneratorPath}</source>
141                   <source>${salGeneratorPath}</source>
142                 </sources>
143               </configuration>
144             </execution>
145           </executions>
146         </plugin>
147         <!--  cleans up auto generated code  -->
148         <plugin>
149           <artifactId>maven-clean-plugin</artifactId>
150           <configuration>
151             <filesets>
152               <fileset>
153                 <directory>${jmxGeneratorPath}</directory>
154                 <includes>
155                   <include>**</include>
156                 </includes>
157               </fileset>
158               <fileset>
159                 <directory>${salGeneratorPath}</directory>
160                 <includes>
161                   <include>**</include>
162                 </includes>
163               </fileset>
164             </filesets>
165           </configuration>
166         </plugin>
167
168         <!-- Ignore/Execute plugin execution -->
169         <plugin>
170           <groupId>org.eclipse.m2e</groupId>
171           <artifactId>lifecycle-mapping</artifactId>
172           <version>1.0.0</version>
173           <configuration>
174             <lifecycleMappingMetadata>
175               <pluginExecutions>
176                 <pluginExecution>
177                   <pluginExecutionFilter>
178                     <groupId>org.codehaus.mojo</groupId>
179                     <artifactId>properties-maven-plugin</artifactId>
180                     <versionRange>[0.0,)</versionRange>
181                     <goals>
182                       <goal>set-system-properties</goal>
183                     </goals>
184                   </pluginExecutionFilter>
185                   <action>
186                     <ignore/>
187                   </action>
188                 </pluginExecution>
189                 <pluginExecution>
190                   <pluginExecutionFilter>
191                     <groupId>org.codehaus.enunciate</groupId>
192                     <artifactId>maven-enunciate-plugin</artifactId>
193                     <versionRange>[0.0,)</versionRange>
194                     <goals>
195                       <goal>docs</goal>
196                     </goals>
197                   </pluginExecutionFilter>
198                   <action>
199                     <ignore/>
200                   </action>
201                 </pluginExecution>
202                 <pluginExecution>
203                   <pluginExecutionFilter>
204                     <groupId>org.jacoco</groupId>
205                     <artifactId>jacoco-maven-plugin</artifactId>
206                     <versionRange>[0.0,)</versionRange>
207                     <goals>
208                       <goal>prepare-agent</goal>
209                       <goal>pre-test</goal>
210                       <goal>post-test</goal>
211                     </goals>
212                   </pluginExecutionFilter>
213                   <action>
214                     <ignore/>
215                   </action>
216                 </pluginExecution>
217                 <pluginExecution>
218                   <pluginExecutionFilter>
219                     <groupId>org.ops4j.pax.exam</groupId>
220                     <artifactId>maven-paxexam-plugin</artifactId>
221                     <versionRange>[1.2.4,)</versionRange>
222                     <goals>
223                       <goal>generate-depends-file</goal>
224                     </goals>
225                   </pluginExecutionFilter>
226                   <action>
227                     <execute>
228                       <runOnIncremental>false</runOnIncremental>
229                     </execute>
230                   </action>
231                 </pluginExecution>
232                 <pluginExecution>
233                   <pluginExecutionFilter>
234                     <groupId>org.apache.maven.plugins</groupId>
235                     <artifactId>maven-checkstyle-plugin</artifactId>
236                     <versionRange>[2.0,)</versionRange>
237                     <goals>
238                       <goal>check</goal>
239                     </goals>
240                   </pluginExecutionFilter>
241                   <action>
242                     <ignore/>
243                   </action>
244                 </pluginExecution>
245                 <pluginExecution>
246                   <pluginExecutionFilter>
247                     <groupId>org.opendaylight.yangtools</groupId>
248                     <artifactId>yang-maven-plugin</artifactId>
249                     <versionRange>[0.5,)</versionRange>
250                     <goals>
251                       <goal>generate-sources</goal>
252                     </goals>
253                   </pluginExecutionFilter>
254                   <action>
255                     <execute/>
256                   </action>
257                 </pluginExecution>
258                 <pluginExecution>
259                   <pluginExecutionFilter>
260                     <groupId>org.codehaus.groovy.maven</groupId>
261                     <artifactId>gmaven-plugin</artifactId>
262                     <versionRange>1.0</versionRange>
263                     <goals>
264                       <goal>execute</goal>
265                     </goals>
266                   </pluginExecutionFilter>
267                   <action>
268                     <ignore/>
269                   </action>
270                 </pluginExecution>
271                 <pluginExecution>
272                   <pluginExecutionFilter>
273                     <groupId>org.apache.maven.plugins</groupId>
274                     <artifactId>maven-enforcer-plugin</artifactId>
275                     <versionRange>${enforcer.version}</versionRange>
276                     <goals>
277                       <goal>enforce</goal>
278                     </goals>
279                   </pluginExecutionFilter>
280                   <action>
281                     <ignore/>
282                   </action>
283                 </pluginExecution>
284               </pluginExecutions>
285             </lifecycleMappingMetadata>
286           </configuration>
287         </plugin>
288       </plugins>
289     </pluginManagement>
290     <plugins>
291       <plugin>
292         <groupId>org.codehaus.mojo</groupId>
293         <artifactId>build-helper-maven-plugin</artifactId>
294       </plugin>
295     </plugins>
296   </build>
297   <modules>
298     <module>packetcable-model</module>
299     <module>protocol_plugins.packetcable</module>
300   </modules>
301 </project>