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-SNAPSHOT</version>
18 <modelVersion>4.0.0</modelVersion>
19 <groupId>org.opendaylight.controller</groupId>
20 <artifactId>config-parent</artifactId>
21 <version>0.3.0-SNAPSHOT</version>
22 <packaging>pom</packaging>
25 <config.version>0.3.0-SNAPSHOT</config.version>
26 <mdsal.version>1.2.0-SNAPSHOT</mdsal.version>
27 <jmxGeneratorPath>src/main/yang-gen-config</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 </dependencyManagement>
53 <groupId>org.opendaylight.controller</groupId>
54 <artifactId>config-api</artifactId>
57 <groupId>org.opendaylight.controller</groupId>
58 <artifactId>sal-binding-config</artifactId>
65 <groupId>org.opendaylight.yangtools</groupId>
66 <artifactId>yang-maven-plugin</artifactId>
69 <groupId>org.opendaylight.controller</groupId>
70 <artifactId>yang-jmx-generator-plugin</artifactId>
71 <version>${config.version}</version>
78 <goal>generate-sources</goal>
83 <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
84 <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
85 <additionalConfiguration>
86 <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
87 </additionalConfiguration>
90 <inspectDependencies>true</inspectDependencies>
96 <artifactId>maven-clean-plugin</artifactId>
100 <directory>${jmxGeneratorPath}</directory>
102 <include>**</include>
115 <exists>${config.file}</exists>
122 <groupId>org.codehaus.mojo</groupId>
123 <artifactId>build-helper-maven-plugin</artifactId>
126 <id>attach-artifacts</id>
128 <goal>attach-artifact</goal>
130 <phase>package</phase>
134 <file>${config.file}</file>
136 <classifier>config</classifier>
147 <groupId>org.codehaus.mojo</groupId>
148 <artifactId>build-helper-maven-plugin</artifactId>