1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
9 <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 <groupId>org.opendaylight.mdsal</groupId>
12 <artifactId>binding-parent</artifactId>
13 <version>0.13.0-SNAPSHOT</version>
17 <modelVersion>4.0.0</modelVersion>
18 <groupId>org.opendaylight.controller</groupId>
19 <artifactId>config-parent</artifactId>
20 <version>0.9.0-SNAPSHOT</version>
21 <packaging>pom</packaging>
24 <config.version>0.9.0-SNAPSHOT</config.version>
25 <mdsal.version>1.8.0-SNAPSHOT</mdsal.version>
26 <yangtools.version>2.0.5</yangtools.version>
27 <jmxGeneratorPath>${project.build.directory}/generated-sources/config-binding</jmxGeneratorPath>
28 <config.file>src/main/config/default-config.xml</config.file>
31 <dependencyManagement>
33 <!-- project specific dependencies -->
35 <groupId>org.opendaylight.controller</groupId>
36 <artifactId>config-artifacts</artifactId>
37 <version>${config.version}</version>
42 <groupId>org.opendaylight.controller</groupId>
43 <artifactId>mdsal-artifacts</artifactId>
44 <version>${mdsal.version}</version>
49 <groupId>org.opendaylight.yangtools</groupId>
50 <artifactId>yangtools-artifacts</artifactId>
51 <version>2.0.5</version>
56 <groupId>org.opendaylight.mdsal</groupId>
57 <artifactId>mdsal-artifacts</artifactId>
58 <version>2.5.0-SNAPSHOT</version>
63 </dependencyManagement>
67 <groupId>org.opendaylight.yangtools</groupId>
68 <artifactId>yang-common</artifactId>
71 <groupId>org.opendaylight.controller</groupId>
72 <artifactId>config-api</artifactId>
75 <groupId>org.opendaylight.controller</groupId>
76 <artifactId>sal-binding-config</artifactId>
83 <groupId>org.opendaylight.yangtools</groupId>
84 <artifactId>yang-maven-plugin</artifactId>
85 <version>2.0.5</version>
88 <groupId>org.opendaylight.controller</groupId>
89 <artifactId>yang-jmx-generator-plugin</artifactId>
90 <version>${config.version}</version>
97 <goal>generate-sources</goal>
102 <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
103 <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
104 <additionalConfiguration>
105 <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
106 </additionalConfiguration>
109 <inspectDependencies>true</inspectDependencies>
115 <artifactId>maven-clean-plugin</artifactId>
119 <directory>${jmxGeneratorPath}</directory>
121 <include>**</include>
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>${jmxGeneratorPath}</source>
146 <source>${salGeneratorPath}</source>
153 <!-- This has to match the definition in odlparent and exists only
154 because for some reason PMD does not understand wildcards. -->
156 <groupId>org.apache.maven.plugins</groupId>
157 <artifactId>maven-pmd-plugin</artifactId>
161 <phase>process-sources</phase>
163 <goal>cpd-check</goal>
167 <excludeRoot>${jmxGeneratorPath}</excludeRoot>
168 <excludeRoot>${salGeneratorPath}</excludeRoot>
179 <id>attach-config-without-filtering</id>
182 <exists>${config.file}</exists>
189 <groupId>org.codehaus.mojo</groupId>
190 <artifactId>build-helper-maven-plugin</artifactId>
193 <id>attach-artifacts</id>
195 <goal>attach-artifact</goal>
197 <phase>package</phase>
201 <file>${config.file}</file>
203 <classifier>config</classifier>
214 <groupId>org.codehaus.mojo</groupId>
215 <artifactId>build-helper-maven-plugin</artifactId>