1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
4 Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
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
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">
13 <groupId>org.opendaylight.odlparent</groupId>
14 <artifactId>bundle-parent</artifactId>
15 <version>2.0.0</version>
19 <modelVersion>4.0.0</modelVersion>
20 <groupId>org.opendaylight.mdsal</groupId>
21 <artifactId>binding-parent</artifactId>
22 <version>0.11.0-SNAPSHOT</version>
23 <packaging>pom</packaging>
26 <yangtools.version>1.2.0-SNAPSHOT</yangtools.version>
27 <mdsal.version>2.3.0-SNAPSHOT</mdsal.version>
28 <mdsalmodel.version>0.11.0-SNAPSHOT</mdsalmodel.version>
29 <salGeneratorPath>${project.build.directory}/generated-sources/mdsal-binding</salGeneratorPath>
33 <!-- https://bugs.opendaylight.org/show_bug.cgi?id=6252 -->
36 <directory>src/main/resources</directory>
39 <directory>${project.build.directory}/generated-sources/spi</directory>
42 <directory>${project.build.directory}/generated-sources/yang</directory>
47 <dependencyManagement>
50 <groupId>org.opendaylight.yangtools</groupId>
51 <artifactId>yangtools-artifacts</artifactId>
52 <version>${yangtools.version}</version>
57 <groupId>org.opendaylight.mdsal</groupId>
58 <artifactId>mdsal-artifacts</artifactId>
59 <version>${mdsal.version}</version>
64 <groupId>org.opendaylight.mdsal.model</groupId>
65 <artifactId>mdsal-model-artifacts</artifactId>
66 <version>${mdsalmodel.version}</version>
71 </dependencyManagement>
77 <exists>src/main/yang</exists>
82 <groupId>org.opendaylight.mdsal</groupId>
83 <artifactId>yang-binding</artifactId>
90 <groupId>org.opendaylight.yangtools</groupId>
91 <artifactId>yang-maven-plugin</artifactId>
92 <version>${yangtools.version}</version>
95 <groupId>org.opendaylight.mdsal</groupId>
96 <artifactId>maven-sal-api-gen-plugin</artifactId>
97 <version>0.11.0-SNAPSHOT</version>
105 <goal>generate-sources</goal>
110 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
111 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
112 <resourceBaseDir>${project.build.directory}/generated-sources/spi</resourceBaseDir>
115 <inspectDependencies>true</inspectDependencies>
121 <artifactId>maven-clean-plugin</artifactId>
125 <directory>${salGeneratorPath}</directory>
127 <include>**</include>
134 <groupId>org.codehaus.mojo</groupId>
135 <artifactId>build-helper-maven-plugin</artifactId>
138 <id>add-yang-sources</id>
139 <phase>generate-sources</phase>
141 <goal>add-source</goal>
145 <source>${salGeneratorPath}</source>
152 <!-- This has to match the definition in odlparent and exists only
153 because for some reason PMD does not understand wildcards. -->
155 <groupId>org.apache.maven.plugins</groupId>
156 <artifactId>maven-pmd-plugin</artifactId>
160 <phase>process-sources</phase>
162 <goal>cpd-check</goal>
166 <excludeRoot>${salGeneratorPath}</excludeRoot>
176 <groupId>org.opendaylight.yangtools</groupId>
177 <artifactId>yang-maven-plugin</artifactId>
180 <groupId>org.codehaus.mojo</groupId>
181 <artifactId>build-helper-maven-plugin</artifactId>
189 Maven Site Configuration
191 The following configuration is necessary for maven-site-plugin to
192 correctly identify the correct deployment path for OpenDaylight Maven
195 <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
197 <distributionManagement>
199 <id>opendaylight-site</id>
200 <url>${nexus.site.url}/${project.artifactId}/</url>
202 </distributionManagement>