Bump versions to 4.0.12-SNAPSHOT
[mdsal.git] / binding / binding-parent / pom.xml
index 7a4add3465daa673fdce0ace9c217028c0029471..48056bd327af712324710c702162a908d74df625 100644 (file)
 <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">
 
     <parent>
-        <groupId>org.opendaylight.odlparent</groupId>
-        <artifactId>bundle-parent</artifactId>
-        <version>1.7.0-SNAPSHOT</version>
-        <relativePath/>
+        <groupId>org.opendaylight.mdsal</groupId>
+        <artifactId>dom-parent</artifactId>
+        <version>4.0.12-SNAPSHOT</version>
+        <relativePath>../../dom/dom-parent</relativePath>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
-    <groupId>org.opendaylight.mdsal</groupId>
     <artifactId>binding-parent</artifactId>
-    <version>0.9.0-SNAPSHOT</version>
     <packaging>pom</packaging>
 
     <properties>
-        <yangtools.version>0.9.0-SNAPSHOT</yangtools.version>
-        <mdsal.version>2.1.0-SNAPSHOT</mdsal.version>
-        <mdsalmodel.version>0.9.0-SNAPSHOT</mdsalmodel.version>
-        <salGeneratorPath>target/generated-classes/mdsal-binding</salGeneratorPath>
+        <salGeneratorPath>${project.build.directory}/generated-sources/mdsal-binding</salGeneratorPath>
     </properties>
 
-    <dependencyManagement>
-        <dependencies>
-            <dependency>
-                <groupId>org.opendaylight.yangtools</groupId>
-                <artifactId>yangtools-artifacts</artifactId>
-                <version>${yangtools.version}</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-            <dependency>
-                <groupId>org.opendaylight.mdsal</groupId>
-                <artifactId>mdsal-artifacts</artifactId>
-                <version>${mdsal.version}</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-            <dependency>
-              <groupId>org.opendaylight.mdsal.model</groupId>
-              <artifactId>mdsal-model-artifacts</artifactId>
-              <version>${mdsalmodel.version}</version>
-              <type>pom</type>
-              <scope>import</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
+    <build>
+        <!-- https://bugs.opendaylight.org/show_bug.cgi?id=6252 -->
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+            </resource>
+            <resource>
+                <directory>${project.build.directory}/generated-sources/spi</directory>
+            </resource>
+            <resource>
+                <directory>${project.build.directory}/generated-sources/yang</directory>
+            </resource>
+        </resources>
+    </build>
 
     <profiles>
         <profile>
                         <plugin>
                             <groupId>org.opendaylight.yangtools</groupId>
                             <artifactId>yang-maven-plugin</artifactId>
-                            <version>${yangtools.version}</version>
+                            <version>3.0.9</version>
                             <dependencies>
                                 <dependency>
                                     <groupId>org.opendaylight.mdsal</groupId>
                                     <artifactId>maven-sal-api-gen-plugin</artifactId>
-                                    <version>0.9.0-SNAPSHOT</version>
+                                    <version>2.0.12-SNAPSHOT</version>
                                     <type>jar</type>
                                 </dependency>
                             </dependencies>
@@ -92,8 +76,9 @@
                                     <configuration>
                                         <codeGenerators>
                                             <generator>
-                                                <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
+                                                <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
                                                 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
+                                                <resourceBaseDir>${project.build.directory}/generated-sources/spi</resourceBaseDir>
                                             </generator>
                                         </codeGenerators>
                                         <inspectDependencies>true</inspectDependencies>
                                 </execution>
                             </executions>
                         </plugin>
+
+                        <!-- This has to match the definition in odlparent and exists only
+                             because for some reason PMD does not understand wildcards. -->
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-pmd-plugin</artifactId>
+                            <executions>
+                                <execution>
+                                    <id>cpd</id>
+                                    <phase>process-sources</phase>
+                                    <goals>
+                                        <goal>cpd-check</goal>
+                                    </goals>
+                                    <configuration>
+                                        <excludeRoots>
+                                            <excludeRoot>${salGeneratorPath}</excludeRoot>
+                                        </excludeRoots>
+                                    </configuration>
+                                </execution>
+                            </executions>
+                        </plugin>
                     </plugins>
                 </pluginManagement>
                 <plugins>