Bumping versions by 0.0.1 for next dev cycle
[mdsal.git] / binding / binding-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <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">
11
12     <parent>
13         <groupId>org.opendaylight.odlparent</groupId>
14         <artifactId>bundle-parent</artifactId>
15         <version>1.7.2-SNAPSHOT</version>
16         <relativePath/>
17     </parent>
18
19     <modelVersion>4.0.0</modelVersion>
20     <groupId>org.opendaylight.mdsal</groupId>
21     <artifactId>binding-parent</artifactId>
22     <version>0.9.2-SNAPSHOT</version>
23     <packaging>pom</packaging>
24
25     <properties>
26         <yangtools.version>1.0.2-SNAPSHOT</yangtools.version>
27         <mdsal.version>2.1.2-SNAPSHOT</mdsal.version>
28         <mdsalmodel.version>0.9.2-SNAPSHOT</mdsalmodel.version>
29         <salGeneratorPath>target/generated-sources/mdsal-binding</salGeneratorPath>
30     </properties>
31
32     <dependencyManagement>
33         <dependencies>
34             <dependency>
35                 <groupId>org.opendaylight.yangtools</groupId>
36                 <artifactId>yangtools-artifacts</artifactId>
37                 <version>${yangtools.version}</version>
38                 <type>pom</type>
39                 <scope>import</scope>
40             </dependency>
41             <dependency>
42                 <groupId>org.opendaylight.mdsal</groupId>
43                 <artifactId>mdsal-artifacts</artifactId>
44                 <version>${mdsal.version}</version>
45                 <type>pom</type>
46                 <scope>import</scope>
47             </dependency>
48             <dependency>
49               <groupId>org.opendaylight.mdsal.model</groupId>
50               <artifactId>mdsal-model-artifacts</artifactId>
51               <version>${mdsalmodel.version}</version>
52               <type>pom</type>
53               <scope>import</scope>
54             </dependency>
55         </dependencies>
56     </dependencyManagement>
57
58     <profiles>
59         <profile>
60             <activation>
61                 <file>
62                     <exists>src/main/yang</exists>
63                 </file>
64             </activation>
65             <dependencies>
66                 <dependency>
67                     <groupId>org.opendaylight.mdsal</groupId>
68                     <artifactId>yang-binding</artifactId>
69                 </dependency>
70             </dependencies>
71             <build>
72                 <pluginManagement>
73                     <plugins>
74                         <plugin>
75                             <groupId>org.opendaylight.yangtools</groupId>
76                             <artifactId>yang-maven-plugin</artifactId>
77                             <version>${yangtools.version}</version>
78                             <dependencies>
79                                 <dependency>
80                                     <groupId>org.opendaylight.mdsal</groupId>
81                                     <artifactId>maven-sal-api-gen-plugin</artifactId>
82                                     <version>0.9.2-SNAPSHOT</version>
83                                     <type>jar</type>
84                                 </dependency>
85                             </dependencies>
86                             <executions>
87                                 <execution>
88                                     <id>binding</id>
89                                     <goals>
90                                         <goal>generate-sources</goal>
91                                     </goals>
92                                     <configuration>
93                                         <codeGenerators>
94                                             <generator>
95                                                 <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
96                                                 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
97                                             </generator>
98                                         </codeGenerators>
99                                         <inspectDependencies>true</inspectDependencies>
100                                     </configuration>
101                                 </execution>
102                             </executions>
103                         </plugin>
104                         <plugin>
105                             <artifactId>maven-clean-plugin</artifactId>
106                             <configuration>
107                                 <filesets>
108                                     <fileset>
109                                         <directory>${salGeneratorPath}</directory>
110                                         <includes>
111                                             <include>**</include>
112                                         </includes>
113                                     </fileset>
114                                 </filesets>
115                             </configuration>
116                         </plugin>
117                         <plugin>
118                             <groupId>org.codehaus.mojo</groupId>
119                             <artifactId>build-helper-maven-plugin</artifactId>
120                             <executions>
121                                 <execution>
122                                     <id>add-yang-sources</id>
123                                     <phase>generate-sources</phase>
124                                     <goals>
125                                         <goal>add-source</goal>
126                                     </goals>
127                                     <configuration>
128                                         <sources>
129                                             <source>src/main/yang</source>
130                                             <source>${salGeneratorPath}</source>
131                                         </sources>
132                                     </configuration>
133                                 </execution>
134                             </executions>
135                         </plugin>
136
137                         <!-- This has to match the definition in odlparent and exists only
138                              because for some reason PMD does not understand wildcards. -->
139                         <plugin>
140                             <groupId>org.apache.maven.plugins</groupId>
141                             <artifactId>maven-pmd-plugin</artifactId>
142                             <executions>
143                                 <execution>
144                                     <id>cpd</id>
145                                     <phase>process-sources</phase>
146                                     <goals>
147                                         <goal>cpd-check</goal>
148                                     </goals>
149                                     <configuration>
150                                         <excludeRoots>
151                                             <excludeRoot>${salGeneratorPath}</excludeRoot>
152                                         </excludeRoots>
153                                     </configuration>
154                                 </execution>
155                             </executions>
156                         </plugin>
157                     </plugins>
158                 </pluginManagement>
159                 <plugins>
160                     <plugin>
161                         <groupId>org.opendaylight.yangtools</groupId>
162                         <artifactId>yang-maven-plugin</artifactId>
163                     </plugin>
164                     <plugin>
165                         <groupId>org.codehaus.mojo</groupId>
166                         <artifactId>build-helper-maven-plugin</artifactId>
167                     </plugin>
168                 </plugins>
169             </build>
170         </profile>
171     </profiles>
172
173   <!--
174       Maven Site Configuration
175
176       The following configuration is necessary for maven-site-plugin to
177       correctly identify the correct deployment path for OpenDaylight Maven
178       sites.
179   -->
180   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
181
182   <distributionManagement>
183     <site>
184       <id>opendaylight-site</id>
185       <url>${nexus.site.url}/${project.artifactId}/</url>
186     </site>
187   </distributionManagement>
188
189 </project>