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>3.1.0</version>
19 <modelVersion>4.0.0</modelVersion>
20 <groupId>org.opendaylight.mdsal</groupId>
21 <artifactId>binding-parent</artifactId>
22 <version>0.13.0-SNAPSHOT</version>
23 <packaging>pom</packaging>
26 <salGeneratorPath>${project.build.directory}/generated-sources/mdsal-binding</salGeneratorPath>
30 <!-- https://bugs.opendaylight.org/show_bug.cgi?id=6252 -->
33 <directory>src/main/resources</directory>
36 <directory>${project.build.directory}/generated-sources/spi</directory>
39 <directory>${project.build.directory}/generated-sources/yang</directory>
44 <dependencyManagement>
47 <groupId>org.opendaylight.yangtools</groupId>
48 <artifactId>yangtools-artifacts</artifactId>
49 <version>2.0.3</version>
54 <groupId>org.opendaylight.mdsal</groupId>
55 <artifactId>mdsal-artifacts</artifactId>
56 <version>2.5.0-SNAPSHOT</version>
61 <groupId>org.opendaylight.mdsal.model</groupId>
62 <artifactId>mdsal-model-artifacts</artifactId>
63 <version>0.13.0-SNAPSHOT</version>
68 </dependencyManagement>
74 <exists>src/main/yang</exists>
79 <groupId>org.opendaylight.mdsal</groupId>
80 <artifactId>yang-binding</artifactId>
87 <groupId>org.opendaylight.yangtools</groupId>
88 <artifactId>yang-maven-plugin</artifactId>
89 <version>2.0.3</version>
92 <groupId>org.opendaylight.mdsal</groupId>
93 <artifactId>maven-sal-api-gen-plugin</artifactId>
94 <version>0.13.0-SNAPSHOT</version>
102 <goal>generate-sources</goal>
107 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
108 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
109 <resourceBaseDir>${project.build.directory}/generated-sources/spi</resourceBaseDir>
112 <inspectDependencies>true</inspectDependencies>
118 <artifactId>maven-clean-plugin</artifactId>
122 <directory>${salGeneratorPath}</directory>
124 <include>**</include>
131 <groupId>org.codehaus.mojo</groupId>
132 <artifactId>build-helper-maven-plugin</artifactId>
135 <id>add-yang-sources</id>
136 <phase>generate-sources</phase>
138 <goal>add-source</goal>
142 <source>${salGeneratorPath}</source>
149 <!-- This has to match the definition in odlparent and exists only
150 because for some reason PMD does not understand wildcards. -->
152 <groupId>org.apache.maven.plugins</groupId>
153 <artifactId>maven-pmd-plugin</artifactId>
157 <phase>process-sources</phase>
159 <goal>cpd-check</goal>
163 <excludeRoot>${salGeneratorPath}</excludeRoot>
173 <groupId>org.opendaylight.yangtools</groupId>
174 <artifactId>yang-maven-plugin</artifactId>
177 <groupId>org.codehaus.mojo</groupId>
178 <artifactId>build-helper-maven-plugin</artifactId>