Release mdsal
[mdsal.git] / binding / binding-parent / pom.xml
index 068431a9e6d3d468a69b461e625092049f88e7ba..7cf8f5360d71c9c78563a9919ffd2ec63adc2b8a 100644 (file)
@@ -12,7 +12,7 @@
     <parent>
         <groupId>org.opendaylight.mdsal</groupId>
         <artifactId>dom-parent</artifactId>
-        <version>6.0.0-SNAPSHOT</version>
+        <version>9.0.3</version>
         <relativePath>../../dom/dom-parent</relativePath>
     </parent>
 
     <artifactId>binding-parent</artifactId>
     <packaging>pom</packaging>
 
-    <properties>
-        <salGeneratorPath>${project.build.directory}/generated-sources/mdsal-binding</salGeneratorPath>
-    </properties>
-
     <build>
         <!-- https://bugs.opendaylight.org/show_bug.cgi?id=6252 -->
         <resources>
                         <plugin>
                             <groupId>org.opendaylight.yangtools</groupId>
                             <artifactId>yang-maven-plugin</artifactId>
-                            <version>5.0.0-SNAPSHOT</version>
+                            <version>8.0.5</version>
                             <dependencies>
                                 <dependency>
                                     <groupId>org.opendaylight.mdsal</groupId>
-                                    <artifactId>maven-sal-api-gen-plugin</artifactId>
-                                    <version>6.0.0-SNAPSHOT</version>
-                                    <type>jar</type>
+                                    <artifactId>mdsal-binding-java-api-generator</artifactId>
+                                    <version>9.0.3</version>
                                 </dependency>
                             </dependencies>
                             <executions>
                                         <goal>generate-sources</goal>
                                     </goals>
                                     <configuration>
-                                        <codeGenerators>
-                                            <generator>
-                                                <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>
                                     </configuration>
                                 </execution>
                             </executions>
                         </plugin>
-                        <plugin>
-                            <artifactId>maven-clean-plugin</artifactId>
-                            <configuration>
-                                <filesets>
-                                    <fileset>
-                                        <directory>${salGeneratorPath}</directory>
-                                        <includes>
-                                            <include>**</include>
-                                        </includes>
-                                    </fileset>
-                                </filesets>
-                            </configuration>
-                        </plugin>
-                        <plugin>
-                            <groupId>org.codehaus.mojo</groupId>
-                            <artifactId>build-helper-maven-plugin</artifactId>
-                            <executions>
-                                <execution>
-                                    <id>add-yang-sources</id>
-                                    <phase>generate-sources</phase>
-                                    <goals>
-                                        <goal>add-source</goal>
-                                    </goals>
-                                    <configuration>
-                                        <sources>
-                                            <source>${salGeneratorPath}</source>
-                                        </sources>
-                                    </configuration>
-                                </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>