Merge "Fixed tag for <nexus.repository.snapshot>"
[controller.git] / opendaylight / archetypes / odl-model-project / src / main / resources / archetype-resources / 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"
3   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4   <modelVersion>4.0.0</modelVersion>
5   <artifactId>${artifactId}</artifactId>
6   <groupId>${groupId}</groupId>
7   <version>${version}</version>
8   <packaging>bundle</packaging>
9   <properties>
10     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
11     <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
12     <nexus.repository.release>opendaylight.release</nexus.repository.release>
13     <nexus.repository.snapshot>opendaylight.release</nexus.repository.snapshot>
14     <yang.version>0.7.0-SNAPSHOT</yang.version>
15     <yang.codegen.version>0.7.0-SNAPSHOT</yang.codegen.version>
16     <bundle.plugin.version>2.3.7</bundle.plugin.version>
17   </properties>
18   <scm>
19     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
20     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
21     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
22   </scm>
23
24   <build>
25     <plugins>
26       <plugin>
27         <groupId>org.apache.felix</groupId>
28         <artifactId>maven-bundle-plugin</artifactId>
29         <version>${bundle.plugin.version}</version>
30         <extensions>true</extensions>
31         <configuration>
32           <instructions>
33             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
34           </instructions>
35           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
36         </configuration>
37       </plugin>
38       <plugin>
39         <groupId>org.apache.maven.plugins</groupId>
40         <artifactId>maven-compiler-plugin</artifactId>
41         <version>2.5.1</version>
42         <inherited>true</inherited>
43         <configuration>
44           <source>1.7</source>
45           <target>1.7</target>
46         </configuration>
47       </plugin>
48       <plugin>
49         <groupId>org.apache.maven.plugins</groupId>
50         <artifactId>maven-javadoc-plugin</artifactId>
51         <version>2.8.1</version>
52         <configuration>
53           <stylesheet>maven</stylesheet>
54         </configuration>
55         <executions>
56           <execution>
57             <goals>
58               <goal>aggregate</goal>
59             </goals>
60             <phase>site</phase>
61           </execution>
62         </executions>
63       </plugin>
64       <plugin>
65         <groupId>org.opendaylight.yangtools</groupId>
66         <artifactId>yang-maven-plugin</artifactId>
67         <version>${yang.version}</version>
68         <executions>
69           <execution>
70             <goals>
71               <goal>generate-sources</goal>
72             </goals>
73             <configuration>
74               <yangFilesRootDir>src/main/yang</yangFilesRootDir>
75               <codeGenerators>
76                 <generator>
77                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
78                   <outputBaseDir>target/generated-sources/sal</outputBaseDir>
79                 </generator>
80               </codeGenerators>
81               <inspectDependencies>false</inspectDependencies>
82             </configuration>
83           </execution>
84         </executions>
85
86         <dependencies>
87           <dependency>
88             <groupId>org.opendaylight.yangtools</groupId>
89             <artifactId>maven-sal-api-gen-plugin</artifactId>
90             <version>${yang.codegen.version}</version>
91             <type>jar</type>
92           </dependency>
93         </dependencies>
94       </plugin>
95       <plugin>
96         <groupId>org.codehaus.mojo</groupId>
97         <artifactId>build-helper-maven-plugin</artifactId>
98         <version>1.7</version>
99         <executions>
100           <execution>
101             <phase>generate-sources</phase>
102             <goals>
103               <goal>add-source</goal>
104             </goals>
105             <configuration>
106               <sources>
107                 <source>target/generated-sources/sal</source>
108               </sources>
109             </configuration>
110           </execution>
111         </executions>
112       </plugin>
113     </plugins>
114     <pluginManagement>
115       <plugins>
116         <!--This plugin's configuration is used to store Eclipse m2e settings
117           only. It has no influence on the Maven build itself. -->
118         <plugin>
119           <groupId>org.eclipse.m2e</groupId>
120           <artifactId>lifecycle-mapping</artifactId>
121           <version>1.0.0</version>
122           <configuration>
123             <lifecycleMappingMetadata>
124               <pluginExecutions>
125                 <pluginExecution>
126                   <pluginExecutionFilter>
127                     <groupId>org.opendaylight.yangtools</groupId>
128                     <artifactId>yang-maven-plugin</artifactId>
129                     <versionRange>[0.5,)</versionRange>
130                     <goals>
131                       <goal>generate-sources</goal>
132                     </goals>
133                   </pluginExecutionFilter>
134                   <action>
135                     <ignore></ignore>
136                   </action>
137                 </pluginExecution>
138               </pluginExecutions>
139             </lifecycleMappingMetadata>
140           </configuration>
141         </plugin>
142       </plugins>
143     </pluginManagement>
144   </build>
145   <pluginRepositories>
146     <!-- OpenDayLight Repo Mirror -->
147     <pluginRepository>
148       <id>opendaylight-mirror</id>
149       <name>opendaylight-mirror</name>
150       <url>${nexusproxy}/groups/public/</url>
151       <snapshots>
152           <enabled>false</enabled>
153       </snapshots>
154       <releases>
155           <enabled>true</enabled>
156           <updatePolicy>never</updatePolicy>
157       </releases>
158     </pluginRepository>
159     <!-- OpenDayLight Snapshot artifact -->
160     <pluginRepository>
161       <id>opendaylight-snapshot</id>
162       <name>opendaylight-snapshot</name>
163       <url>${nexusproxy}/repositories/${nexus.repository.snapshot}/</url>
164       <snapshots>
165           <enabled>true</enabled>
166       </snapshots>
167       <releases>
168           <enabled>false</enabled>
169       </releases>
170     </pluginRepository>
171   </pluginRepositories>
172
173   <repositories>
174     <!-- OpenDayLight Repo Mirror -->
175     <repository>
176       <id>opendaylight-mirror</id>
177       <name>opendaylight-mirror</name>
178       <url>${nexusproxy}/groups/public/</url>
179       <snapshots>
180           <enabled>false</enabled>
181       </snapshots>
182       <releases>
183           <enabled>true</enabled>
184           <updatePolicy>never</updatePolicy>
185       </releases>
186     </repository>
187     <!-- OpenDayLight Snapshot artifact -->
188     <repository>
189       <id>opendaylight-snapshot</id>
190       <name>opendaylight-snapshot</name>
191       <url>${nexusproxy}/repositories/${nexus.repository.snapshot}/</url>
192       <snapshots>
193           <enabled>true</enabled>
194       </snapshots>
195       <releases>
196           <enabled>false</enabled>
197       </releases>
198     </repository>
199   </repositories>
200
201   <distributionManagement>
202     <!-- OpenDayLight Released artifact -->
203     <repository>
204       <id>opendaylight-release</id>
205       <url>${nexusproxy}/repositories/${nexus.repository.release}/</url>
206     </repository>
207     <!-- OpenDayLight Snapshot artifact -->
208     <snapshotRepository>
209       <id>opendaylight-snapshot</id>
210       <url>${nexusproxy}/repositories/${nexus.repository.snapshot}/</url>
211     </snapshotRepository>
212     <!-- Site deployment -->
213     <site>
214       <id>website</id>
215       <url>${sitedeploy}</url>
216     </site>
217   </distributionManagement>
218   <dependencies>
219     <dependency>
220       <groupId>org.opendaylight.yangtools</groupId>
221       <artifactId>yang-binding</artifactId>
222       <version>${yang.codegen.version}</version>
223     </dependency>
224   </dependencies>
225 </project>