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>1.7.1-SNAPSHOT</version>
19 <modelVersion>4.0.0</modelVersion>
20 <groupId>org.opendaylight.mdsal</groupId>
21 <artifactId>binding-parent</artifactId>
22 <version>0.9.1-SNAPSHOT</version>
23 <packaging>pom</packaging>
26 <yangtools.version>1.0.1-SNAPSHOT</yangtools.version>
27 <mdsal.version>2.1.1-SNAPSHOT</mdsal.version>
28 <mdsalmodel.version>0.9.1-SNAPSHOT</mdsalmodel.version>
29 <salGeneratorPath>target/generated-sources/mdsal-binding</salGeneratorPath>
32 <dependencyManagement>
35 <groupId>org.opendaylight.yangtools</groupId>
36 <artifactId>yangtools-artifacts</artifactId>
37 <version>${yangtools.version}</version>
42 <groupId>org.opendaylight.mdsal</groupId>
43 <artifactId>mdsal-artifacts</artifactId>
44 <version>${mdsal.version}</version>
49 <groupId>org.opendaylight.mdsal.model</groupId>
50 <artifactId>mdsal-model-artifacts</artifactId>
51 <version>${mdsalmodel.version}</version>
56 </dependencyManagement>
62 <exists>src/main/yang</exists>
67 <groupId>org.opendaylight.mdsal</groupId>
68 <artifactId>yang-binding</artifactId>
75 <groupId>org.opendaylight.yangtools</groupId>
76 <artifactId>yang-maven-plugin</artifactId>
77 <version>${yangtools.version}</version>
80 <groupId>org.opendaylight.mdsal</groupId>
81 <artifactId>maven-sal-api-gen-plugin</artifactId>
82 <version>0.9.1-SNAPSHOT</version>
90 <goal>generate-sources</goal>
95 <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
96 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
99 <inspectDependencies>true</inspectDependencies>
105 <artifactId>maven-clean-plugin</artifactId>
109 <directory>${salGeneratorPath}</directory>
111 <include>**</include>
118 <groupId>org.codehaus.mojo</groupId>
119 <artifactId>build-helper-maven-plugin</artifactId>
122 <id>add-yang-sources</id>
123 <phase>generate-sources</phase>
125 <goal>add-source</goal>
129 <source>src/main/yang</source>
130 <source>${salGeneratorPath}</source>
137 <!-- This has to match the definition in odlparent and exists only
138 because for some reason PMD does not understand wildcards. -->
140 <groupId>org.apache.maven.plugins</groupId>
141 <artifactId>maven-pmd-plugin</artifactId>
145 <phase>process-sources</phase>
147 <goal>cpd-check</goal>
151 <excludeRoot>${salGeneratorPath}</excludeRoot>
161 <groupId>org.opendaylight.yangtools</groupId>
162 <artifactId>yang-maven-plugin</artifactId>
165 <groupId>org.codehaus.mojo</groupId>
166 <artifactId>build-helper-maven-plugin</artifactId>
174 Maven Site Configuration
176 The following configuration is necessary for maven-site-plugin to
177 correctly identify the correct deployment path for OpenDaylight Maven
180 <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
182 <distributionManagement>
184 <id>opendaylight-site</id>
185 <url>${nexus.site.url}/${project.artifactId}/</url>
187 </distributionManagement>