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.mdsal</groupId>
14 <artifactId>dom-parent</artifactId>
15 <version>0.13.0-SNAPSHOT</version>
16 <relativePath>../../dom/dom-parent</relativePath>
19 <modelVersion>4.0.0</modelVersion>
20 <artifactId>binding-parent</artifactId>
21 <packaging>pom</packaging>
24 <salGeneratorPath>${project.build.directory}/generated-sources/mdsal-binding</salGeneratorPath>
28 <!-- https://bugs.opendaylight.org/show_bug.cgi?id=6252 -->
31 <directory>src/main/resources</directory>
34 <directory>${project.build.directory}/generated-sources/spi</directory>
37 <directory>${project.build.directory}/generated-sources/yang</directory>
46 <exists>src/main/yang</exists>
51 <groupId>org.opendaylight.mdsal</groupId>
52 <artifactId>yang-binding</artifactId>
59 <groupId>org.opendaylight.yangtools</groupId>
60 <artifactId>yang-maven-plugin</artifactId>
61 <version>2.0.10</version>
64 <groupId>org.opendaylight.mdsal</groupId>
65 <artifactId>maven-sal-api-gen-plugin</artifactId>
66 <version>0.13.0-SNAPSHOT</version>
74 <goal>generate-sources</goal>
79 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
80 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
81 <resourceBaseDir>${project.build.directory}/generated-sources/spi</resourceBaseDir>
84 <inspectDependencies>true</inspectDependencies>
90 <artifactId>maven-clean-plugin</artifactId>
94 <directory>${salGeneratorPath}</directory>
103 <groupId>org.codehaus.mojo</groupId>
104 <artifactId>build-helper-maven-plugin</artifactId>
107 <id>add-yang-sources</id>
108 <phase>generate-sources</phase>
110 <goal>add-source</goal>
114 <source>${salGeneratorPath}</source>
121 <!-- This has to match the definition in odlparent and exists only
122 because for some reason PMD does not understand wildcards. -->
124 <groupId>org.apache.maven.plugins</groupId>
125 <artifactId>maven-pmd-plugin</artifactId>
129 <phase>process-sources</phase>
131 <goal>cpd-check</goal>
135 <excludeRoot>${salGeneratorPath}</excludeRoot>
145 <groupId>org.opendaylight.yangtools</groupId>
146 <artifactId>yang-maven-plugin</artifactId>
149 <groupId>org.codehaus.mojo</groupId>
150 <artifactId>build-helper-maven-plugin</artifactId>