Bumping versions by 0.0.1 for next dev cycle
[mdsal.git] / binding2 / mdsal-model-binding2-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2016 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.3-SNAPSHOT</version>
16         <relativePath/>
17     </parent>
18
19     <modelVersion>4.0.0</modelVersion>
20     <groupId>org.opendaylight.mdsal</groupId>
21     <artifactId>mdsal-model-binding2-parent</artifactId>
22     <version>0.9.3-SNAPSHOT</version>
23     <packaging>pom</packaging>
24
25     <properties>
26         <yangtools.version>1.0.3-SNAPSHOT</yangtools.version>
27         <mdsal.version>2.1.3-SNAPSHOT</mdsal.version>
28         <mdsalmodel.version>0.9.3-SNAPSHOT</mdsalmodel.version>
29         <salGeneratorPath>target/generated-sources/mdsal-binding2</salGeneratorPath>
30     </properties>
31
32     <build>
33         <!-- https://bugs.opendaylight.org/show_bug.cgi?id=6252 -->
34         <resources>
35             <resource>
36                 <directory>src/main/resources</directory>
37             </resource>
38             <resource>
39                 <directory>target/generated-sources/spi</directory>
40             </resource>
41             <resource>
42                 <directory>target/generated-sources/yang</directory>
43             </resource>
44         </resources>
45     </build>
46
47     <dependencyManagement>
48         <dependencies>
49             <dependency>
50                 <groupId>org.opendaylight.yangtools</groupId>
51                 <artifactId>yangtools-artifacts</artifactId>
52                 <version>${yangtools.version}</version>
53                 <type>pom</type>
54                 <scope>import</scope>
55             </dependency>
56             <dependency>
57                 <groupId>org.opendaylight.mdsal</groupId>
58                 <artifactId>mdsal-artifacts</artifactId>
59                 <version>${mdsal.version}</version>
60                 <type>pom</type>
61                 <scope>import</scope>
62             </dependency>
63             <dependency>
64               <groupId>org.opendaylight.mdsal.model</groupId>
65               <artifactId>mdsal-model-artifacts</artifactId>
66               <version>${mdsalmodel.version}</version>
67               <type>pom</type>
68               <scope>import</scope>
69             </dependency>
70         </dependencies>
71     </dependencyManagement>
72
73     <profiles>
74         <profile>
75             <id>binding2-generator</id>
76             <activation>
77                 <file>
78                     <exists>src/main/yang</exists>
79                 </file>
80             </activation>
81             <dependencies>
82                 <dependency>
83                     <groupId>org.opendaylight.mdsal</groupId>
84                     <artifactId>mdsal-binding2-spec</artifactId>
85                 </dependency>
86             </dependencies>
87             <build>
88                 <pluginManagement>
89                     <plugins>
90                         <plugin>
91                             <groupId>org.opendaylight.yangtools</groupId>
92                             <artifactId>yang-maven-plugin</artifactId>
93                             <version>${yangtools.version}</version>
94                             <dependencies>
95                                 <dependency>
96                                     <groupId>org.opendaylight.mdsal</groupId>
97                                     <artifactId>mdsal-binding2-maven-api-gen-plugin</artifactId>
98                                     <version>0.9.3-SNAPSHOT</version>
99                                     <type>jar</type>
100                                 </dependency>
101                             </dependencies>
102                             <executions>
103                                 <execution>
104                                     <id>binding2</id>
105                                     <goals>
106                                         <goal>generate-sources</goal>
107                                     </goals>
108                                     <configuration>
109                                         <codeGenerators>
110                                             <generator>
111                                                 <codeGeneratorClass>org.opendaylight.mdsal.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
112                                                 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
113                                             </generator>
114                                         </codeGenerators>
115                                         <inspectDependencies>true</inspectDependencies>
116                                     </configuration>
117                                 </execution>
118                             </executions>
119                         </plugin>
120                         <plugin>
121                             <artifactId>maven-clean-plugin</artifactId>
122                             <configuration>
123                                 <filesets>
124                                     <fileset>
125                                         <directory>${salGeneratorPath}</directory>
126                                         <includes>
127                                             <include>**</include>
128                                         </includes>
129                                     </fileset>
130                                 </filesets>
131                             </configuration>
132                         </plugin>
133                         <plugin>
134                             <groupId>org.codehaus.mojo</groupId>
135                             <artifactId>build-helper-maven-plugin</artifactId>
136                             <executions>
137                                 <execution>
138                                     <id>add-yang-sources</id>
139                                     <phase>generate-sources</phase>
140                                     <goals>
141                                         <goal>add-source</goal>
142                                     </goals>
143                                     <configuration>
144                                         <sources>
145                                             <source>${salGeneratorPath}</source>
146                                         </sources>
147                                     </configuration>
148                                 </execution>
149                             </executions>
150                         </plugin>
151                     </plugins>
152                 </pluginManagement>
153                 <plugins>
154                     <plugin>
155                         <groupId>org.opendaylight.yangtools</groupId>
156                         <artifactId>yang-maven-plugin</artifactId>
157                     </plugin>
158                     <plugin>
159                         <groupId>org.codehaus.mojo</groupId>
160                         <artifactId>build-helper-maven-plugin</artifactId>
161                     </plugin>
162                 </plugins>
163             </build>
164         </profile>
165     </profiles>
166
167   <!--
168       Maven Site Configuration
169
170       The following configuration is necessary for maven-site-plugin to
171       correctly identify the correct deployment path for OpenDaylight Maven
172       sites.
173   -->
174   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
175
176   <distributionManagement>
177     <site>
178       <id>opendaylight-site</id>
179       <url>${nexus.site.url}/${project.artifactId}/</url>
180     </site>
181   </distributionManagement>
182
183 </project>