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>
79 <groupId>org.opendaylight.yangtools</groupId>
80 <artifactId>yang-maven-plugin</artifactId>
81 <version>2.0.5</version>
84 <groupId>org.opendaylight.controller</groupId>
85 <artifactId>yang-jmx-generator-plugin</artifactId>
86 <version>${config.version}</version>
93 <goal>generate-sources</goal>
98 <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
99 <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
100 <additionalConfiguration>
101 <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
102 </additionalConfiguration>
105 <inspectDependencies>true</inspectDependencies>
111 <artifactId>maven-clean-plugin</artifactId>
115 <directory>${jmxGeneratorPath}</directory>
117 <include>**</include>
121 <directory>${salGeneratorPath}</directory>
123 <include>**</include>
130 <groupId>org.codehaus.mojo</groupId>
131 <artifactId>build-helper-maven-plugin</artifactId>
134 <id>add-yang-sources</id>
135 <phase>generate-sources</phase>
137 <goal>add-source</goal>
141 <source>${jmxGeneratorPath}</source>
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>${jmxGeneratorPath}</excludeRoot>
164 <excludeRoot>${salGeneratorPath}</excludeRoot>
175 <id>attach-config-without-filtering</id>
178 <exists>${config.file}</exists>
185 <groupId>org.codehaus.mojo</groupId>
186 <artifactId>build-helper-maven-plugin</artifactId>
189 <id>attach-artifacts</id>
191 <goal>attach-artifact</goal>
193 <phase>package</phase>
197 <file>${config.file}</file>
199 <classifier>config</classifier>
210 <groupId>org.codehaus.mojo</groupId>
211 <artifactId>build-helper-maven-plugin</artifactId>