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.yangtools</groupId>
13 <artifactId>binding-parent</artifactId>
14 <version>0.7.0-Lithium</version>
18 <modelVersion>4.0.0</modelVersion>
19 <groupId>org.opendaylight.controller</groupId>
20 <artifactId>config-parent</artifactId>
21 <version>0.3.0-Lithium</version>
22 <packaging>pom</packaging>
25 <config.version>0.3.0-Lithium</config.version>
26 <mdsal.version>1.2.0-Lithium</mdsal.version>
27 <yangtools.version>0.7.0-Lithium</yangtools.version>
28 <jmxGeneratorPath>src/main/yang-gen-config</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 </dependencyManagement>
61 <groupId>org.opendaylight.yangtools</groupId>
62 <artifactId>yang-common</artifactId>
65 <groupId>org.opendaylight.controller</groupId>
66 <artifactId>config-api</artifactId>
69 <groupId>org.opendaylight.controller</groupId>
70 <artifactId>sal-binding-config</artifactId>
77 <groupId>org.opendaylight.yangtools</groupId>
78 <artifactId>yang-maven-plugin</artifactId>
81 <groupId>org.opendaylight.controller</groupId>
82 <artifactId>yang-jmx-generator-plugin</artifactId>
83 <version>${config.version}</version>
90 <goal>generate-sources</goal>
95 <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
96 <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
97 <additionalConfiguration>
98 <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
99 </additionalConfiguration>
102 <inspectDependencies>true</inspectDependencies>
108 <artifactId>maven-clean-plugin</artifactId>
112 <directory>${jmxGeneratorPath}</directory>
114 <include>**</include>
118 <directory>${salGeneratorPath}</directory>
120 <include>**</include>
127 <groupId>org.codehaus.mojo</groupId>
128 <artifactId>build-helper-maven-plugin</artifactId>
131 <id>add-yang-sources</id>
132 <phase>generate-sources</phase>
134 <goal>add-source</goal>
138 <source>${jmxGeneratorPath}</source>
139 <source>${salGeneratorPath}</source>
152 <exists>${config.file}</exists>
159 <groupId>org.codehaus.mojo</groupId>
160 <artifactId>build-helper-maven-plugin</artifactId>
163 <id>attach-artifacts</id>
165 <goal>attach-artifact</goal>
167 <phase>package</phase>
171 <file>${config.file}</file>
173 <classifier>config</classifier>
184 <groupId>org.codehaus.mojo</groupId>
185 <artifactId>build-helper-maven-plugin</artifactId>