Merge "Added an archetype odl-model-project"
[controller.git] / opendaylight / archetypes / odl-model-project / src / main / resources / archetype-resources / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
3   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
4   <modelVersion>4.0.0</modelVersion>\r
5   <artifactId>${artifactId}</artifactId>\r
6   <groupId>${groupId}</groupId>\r
7   <version>${version}</version>\r
8   <packaging>bundle</packaging>\r
9   <properties>\r
10     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
11     <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>\r
12     <yang.version>0.5.7-SNAPSHOT</yang.version>\r
13     <maven.bundle.version>2.4.0</maven.bundle.version>\r
14   </properties>\r
15 \r
16   <build>\r
17     <plugins>\r
18       <plugin>\r
19         <groupId>org.apache.felix</groupId>\r
20         <artifactId>maven-bundle-plugin</artifactId>\r
21         <version>${maven.bundle.version}</version>\r
22         <extensions>true</extensions>\r
23         <configuration>\r
24           <instructions>\r
25             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>\r
26           </instructions>\r
27           <manifestLocation>${project.basedir}/META-INF</manifestLocation>\r
28         </configuration>\r
29       </plugin>\r
30       <plugin>\r
31         <groupId>org.apache.maven.plugins</groupId>\r
32         <artifactId>maven-compiler-plugin</artifactId>\r
33         <version>2.0</version>\r
34         <inherited>true</inherited>\r
35         <configuration>\r
36           <source>1.7</source>\r
37           <target>1.7</target>\r
38         </configuration>\r
39       </plugin>\r
40       <plugin>\r
41         <groupId>org.apache.maven.plugins</groupId>\r
42         <artifactId>maven-javadoc-plugin</artifactId>\r
43         <version>2.8.1</version>\r
44         <configuration>\r
45           <stylesheet>maven</stylesheet>\r
46         </configuration>\r
47         <executions>\r
48           <execution>\r
49             <goals>\r
50               <goal>aggregate</goal>\r
51             </goals>\r
52             <phase>site</phase>\r
53           </execution>\r
54         </executions>\r
55       </plugin>\r
56       <plugin>\r
57         <groupId>org.opendaylight.yangtools</groupId>\r
58         <artifactId>yang-maven-plugin</artifactId>\r
59         <version>0.5.7-SNAPSHOT</version>\r
60         <executions>\r
61           <execution>\r
62             <goals>\r
63               <goal>generate-sources</goal>\r
64             </goals>\r
65             <configuration>\r
66               <yangFilesRootDir>src/main/yang</yangFilesRootDir>\r
67               <codeGenerators>\r
68                 <generator>\r
69                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>\r
70                   <outputBaseDir>target/generated-sources/sal</outputBaseDir>\r
71                 </generator>\r
72               </codeGenerators>\r
73               <inspectDependencies>false</inspectDependencies>\r
74             </configuration>\r
75           </execution>\r
76         </executions>\r
77 \r
78         <dependencies>\r
79           <dependency>\r
80             <groupId>org.opendaylight.yangtools</groupId>\r
81             <artifactId>maven-sal-api-gen-plugin</artifactId>\r
82             <version>0.5.7-SNAPSHOT</version>\r
83             <type>jar</type>\r
84           </dependency>\r
85         </dependencies>\r
86       </plugin>\r
87       <plugin>\r
88         <groupId>org.codehaus.mojo</groupId>\r
89         <artifactId>build-helper-maven-plugin</artifactId>\r
90         <version>1.7</version>\r
91         <executions>\r
92           <execution>\r
93             <phase>generate-sources</phase>\r
94             <goals>\r
95               <goal>add-source</goal>\r
96             </goals>\r
97             <configuration>\r
98               <sources>\r
99                 <source>target/generated-sources/sal</source>\r
100               </sources>\r
101             </configuration>\r
102           </execution>\r
103         </executions>\r
104       </plugin>\r
105     </plugins>\r
106     <pluginManagement>\r
107       <plugins>\r
108         <!--This plugin's configuration is used to store Eclipse m2e settings \r
109           only. It has no influence on the Maven build itself. -->\r
110         <plugin>\r
111           <groupId>org.eclipse.m2e</groupId>\r
112           <artifactId>lifecycle-mapping</artifactId>\r
113           <version>1.0.0</version>\r
114           <configuration>\r
115             <lifecycleMappingMetadata>\r
116               <pluginExecutions>\r
117                 <pluginExecution>\r
118                   <pluginExecutionFilter>\r
119                     <groupId>org.opendaylight.yangtools</groupId>\r
120                     <artifactId>yang-maven-plugin</artifactId>\r
121                     <versionRange>[0.5,)</versionRange>\r
122                     <goals>\r
123                       <goal>generate-sources</goal>\r
124                     </goals>\r
125                   </pluginExecutionFilter>\r
126                   <action>\r
127                     <ignore></ignore>\r
128                   </action>\r
129                 </pluginExecution>\r
130               </pluginExecutions>\r
131             </lifecycleMappingMetadata>\r
132           </configuration>\r
133         </plugin>\r
134       </plugins>\r
135     </pluginManagement>\r
136   </build>\r
137   <pluginRepositories>\r
138     <pluginRepository>\r
139       <id>central</id>\r
140       <name>central</name>\r
141       <url>${nexusproxy}/repositories/central/</url>\r
142     </pluginRepository>\r
143     <pluginRepository>\r
144       <id>central2</id>\r
145       <name>central2</name>\r
146       <url>${nexusproxy}/repositories/central2/</url>\r
147     </pluginRepository>\r
148     <pluginRepository>\r
149       <id>opendaylight.snapshot</id>\r
150       <name>opendaylight.snapshot</name>\r
151       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>\r
152     </pluginRepository>\r
153   </pluginRepositories>\r
154 \r
155   <repositories>\r
156     <!-- EBR release -->\r
157     <!-- http://repository.springsource.com/maven/bundles/release -->\r
158     <repository>\r
159       <id>ebr-bundles-release</id>\r
160       <name>ebr-bundles-release</name>\r
161       <url>${nexusproxy}/repositories/ebr-bundles-release/</url>\r
162     </repository>\r
163     <!-- EBR external -->\r
164     <!-- http://repository.springsource.com/maven/bundles/external -->\r
165     <repository>\r
166       <id>ebr-bundles-external</id>\r
167       <name>ebr-bundles-external</name>\r
168       <url>${nexusproxy}/repositories/ebr-bundles-external/</url>\r
169     </repository>\r
170     <!-- Maven repo2 mirror -->\r
171     <!-- http://repo2.maven.org/maven2 -->\r
172     <repository>\r
173       <id>central2</id>\r
174       <name>central2</name>\r
175       <url>${nexusproxy}/repositories/central2/</url>\r
176     </repository>\r
177     <!-- Maven repo1 mirror -->\r
178     <!-- http://repo1.maven.org/maven2 -->\r
179     <repository>\r
180       <id>central</id>\r
181       <name>central</name>\r
182       <url>${nexusproxy}/repositories/central/</url>\r
183     </repository>\r
184     <!-- Pax mirror -->\r
185     <!-- https://oss.sonatype.org/content/repositories/ops4j-releases -->\r
186     <repository>\r
187       <id>ops4j-releases</id>\r
188       <name>ops4j-releases</name>\r
189       <url>${nexusproxy}/repositories/ops4j-releases/</url>\r
190     </repository>\r
191     <!-- Third Packages hosted in local maven because not available in other \r
192       places -->\r
193     <repository>\r
194       <id>thirdparty</id>\r
195       <name>thirdparty</name>\r
196       <url>${nexusproxy}/repositories/thirdparty/</url>\r
197     </repository>\r
198     <!-- Jboss mirror -->\r
199     <!-- https://repository.jboss.org/nexus/content/repositories/releases -->\r
200     <repository>\r
201       <id>jboss.releases</id>\r
202       <name>jboss.releases</name>\r
203       <url>${nexusproxy}/repositories/jboss.releases/</url>\r
204     </repository>\r
205     <!-- OpenDayLight Released artifact -->\r
206     <repository>\r
207       <id>opendaylight-release</id>\r
208       <name>opendaylight-release</name>\r
209       <url>${nexusproxy}/repositories/opendaylight.release/</url>\r
210     </repository>\r
211     <!-- OpenDayLight Snapshot artifact -->\r
212     <repository>\r
213       <id>opendaylight-snapshot</id>\r
214       <name>opendaylight-snapshot</name>\r
215       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>\r
216     </repository>\r
217   </repositories>\r
218 \r
219   <distributionManagement>\r
220     <!-- OpenDayLight Released artifact -->\r
221     <repository>\r
222       <id>opendaylight-release</id>\r
223       <url>${nexusproxy}/repositories/opendaylight.release/</url>\r
224     </repository>\r
225     <!-- OpenDayLight Snapshot artifact -->\r
226     <snapshotRepository>\r
227       <id>opendaylight-snapshot</id>\r
228       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>\r
229     </snapshotRepository>\r
230     <!-- Site deployment -->\r
231     <site>\r
232       <id>website</id>\r
233       <url>${sitedeploy}</url>\r
234     </site>\r
235   </distributionManagement>\r
236   <dependencies>\r
237     <dependency>\r
238       <groupId>org.opendaylight.yangtools</groupId>\r
239       <artifactId>yang-binding</artifactId>\r
240       <version>${yang.version}</version>\r
241     </dependency>\r
242     <dependency>\r
243       <groupId>org.opendaylight.yangtools</groupId>\r
244       <artifactId>yang-common</artifactId>\r
245       <version>${yang.version}</version>\r
246     </dependency>\r
247   </dependencies>\r
248 </project>\r