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"
10 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12 <groupId>org.opendaylight.mdsal</groupId>
13 <artifactId>binding-parent</artifactId>
14 <version>0.9.0-SNAPSHOT</version>
18 <modelVersion>4.0.0</modelVersion>
19 <groupId>org.opendaylight.controller</groupId>
20 <artifactId>config-parent</artifactId>
21 <version>0.5.0-SNAPSHOT</version>
22 <packaging>pom</packaging>
25 <config.version>0.5.0-SNAPSHOT</config.version>
26 <mdsal.version>1.4.0-SNAPSHOT</mdsal.version>
27 <yangtools.version>1.0.0-SNAPSHOT</yangtools.version>
28 <jmxGeneratorPath>target/generated-sources/config-binding</jmxGeneratorPath>
29 <config.file>src/main/config/default-config.xml</config.file>
32 <dependencyManagement>
34 <!-- project specific dependencies -->
36 <groupId>org.opendaylight.controller</groupId>
37 <artifactId>config-artifacts</artifactId>
38 <version>${config.version}</version>
43 <groupId>org.opendaylight.controller</groupId>
44 <artifactId>mdsal-artifacts</artifactId>
45 <version>${mdsal.version}</version>
50 <groupId>org.opendaylight.yangtools</groupId>
51 <artifactId>yangtools-artifacts</artifactId>
52 <version>${yangtools.version}</version>
57 <groupId>org.opendaylight.mdsal</groupId>
58 <artifactId>mdsal-artifacts</artifactId>
59 <version>2.1.0-SNAPSHOT</version>
64 </dependencyManagement>
68 <groupId>org.opendaylight.yangtools</groupId>
69 <artifactId>yang-common</artifactId>
72 <groupId>org.opendaylight.controller</groupId>
73 <artifactId>config-api</artifactId>
76 <groupId>org.opendaylight.controller</groupId>
77 <artifactId>sal-binding-config</artifactId>
84 <groupId>org.opendaylight.yangtools</groupId>
85 <artifactId>yang-maven-plugin</artifactId>
86 <version>${yangtools.version}</version>
89 <groupId>org.opendaylight.controller</groupId>
90 <artifactId>yang-jmx-generator-plugin</artifactId>
91 <version>${config.version}</version>
98 <goal>generate-sources</goal>
103 <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
104 <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
105 <additionalConfiguration>
106 <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
107 </additionalConfiguration>
110 <inspectDependencies>true</inspectDependencies>
116 <artifactId>maven-clean-plugin</artifactId>
120 <directory>${jmxGeneratorPath}</directory>
122 <include>**</include>
126 <directory>${salGeneratorPath}</directory>
128 <include>**</include>
135 <groupId>org.codehaus.mojo</groupId>
136 <artifactId>build-helper-maven-plugin</artifactId>
139 <id>add-yang-sources</id>
140 <phase>generate-sources</phase>
142 <goal>add-source</goal>
146 <source>${jmxGeneratorPath}</source>
147 <source>${salGeneratorPath}</source>
160 <exists>${config.file}</exists>
167 <groupId>org.codehaus.mojo</groupId>
168 <artifactId>build-helper-maven-plugin</artifactId>
171 <id>attach-artifacts</id>
173 <goal>attach-artifact</goal>
175 <phase>package</phase>
179 <file>${config.file}</file>
181 <classifier>config</classifier>
192 <groupId>org.codehaus.mojo</groupId>
193 <artifactId>build-helper-maven-plugin</artifactId>