Delete yang-generated files in mvn clean phase
[netconf.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index bba7c8bdb3c196576ac8444a7816c2667eddb82c..ebe2c1fdc3655896d39fef30f3e384fb4f2877a4 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -27,6 +27,7 @@
         <config.netconf.topology.configfile>02-netconf-topology.xml</config.netconf.topology.configfile>
         <config.netconf.mdsal.configfile>08-mdsal-netconf.xml</config.netconf.mdsal.configfile>
         <config.restconf.configfile>10-rest-connector.xml</config.restconf.configfile>
+         <config.restconf.service.configfile>10-restconf-service.xml</config.restconf.service.configfile>
         <config.netconf.connector.configfile>99-netconf-connector.xml</config.netconf.connector.configfile>
 
         <aaa.version>0.3.0-SNAPSHOT</aaa.version>
         <ietf-topology.version>2013.10.21.8-SNAPSHOT</ietf-topology.version>
         <ietf-yang-types.version>2010.09.24.8-SNAPSHOT</ietf-yang-types.version>
         <jersey-servlet.version>1.17</jersey-servlet.version>
-        <mdsal.version>1.3.0-SNAPSHOT</mdsal.version>
+
+        <mdsal.version>2.0.0-SNAPSHOT</mdsal.version>
+        <mdsal.model.version>0.8.0-SNAPSHOT</mdsal.model.version>
+        <controller.mdsal.version>1.3.0-SNAPSHOT</controller.mdsal.version>
         <netconf.version>1.0.0-SNAPSHOT</netconf.version>
         <restconf.version>1.3.0-SNAPSHOT</restconf.version>
         <protocol-framework.version>0.7.0-SNAPSHOT</protocol-framework.version>
 
     </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>${mdsal.model.version}</version>
+          <type>pom</type>
+          <scope>import</scope>
+        </dependency>
+        <dependency>
+          <groupId>org.opendaylight.aaa</groupId>
+          <artifactId>aaa-artifacts</artifactId>
+          <version>${aaa.version}</version>
+          <type>pom</type>
+          <scope>import</scope>
+        </dependency>
+        <dependency>
+          <groupId>org.opendaylight.controller</groupId>
+          <artifactId>config-artifacts</artifactId>
+          <version>${config.version}</version>
+          <type>pom</type>
+          <scope>import</scope>
+        </dependency>
+        <dependency>
+          <groupId>org.opendaylight.controller</groupId>
+          <artifactId>mdsal-artifacts</artifactId>
+          <version>${controller.mdsal.version}</version>
+          <type>pom</type>
+          <scope>import</scope>
+        </dependency>
+      </dependencies>
+    </dependencyManagement>
+
     <build>
         <pluginManagement>
             <plugins>
                             <version>${config.version}</version>
                         </dependency>
                         <dependency>
-                            <groupId>org.opendaylight.yangtools</groupId>
+                            <groupId>org.opendaylight.mdsal</groupId>
                             <artifactId>maven-sal-api-gen-plugin</artifactId>
                             <version>${yangtools.version}</version>
                             <type>jar</type>
                         </dependency>
                         <dependency>
-                            <groupId>org.opendaylight.yangtools</groupId>
+                            <groupId>org.opendaylight.mdsal</groupId>
                             <artifactId>yang-binding</artifactId>
                             <version>${yangtools.version}</version>
                             <type>jar</type>
                         </execution>
                     </executions>
                 </plugin>
+                <plugin>
+                   <artifactId>maven-clean-plugin</artifactId>
+                   <configuration>
+                       <filesets>
+                         <fileset>
+                            <directory>${jmxGeneratorPath}</directory>
+                            <includes>
+                               <include>**</include>
+                            </includes>
+                         </fileset>
+                         <fileset>
+                            <directory>${salGeneratorPath}</directory>
+                            <includes>
+                               <include>**</include>
+                            </includes>
+                         </fileset>
+                      </filesets>
+                   </configuration>
+                </plugin>
             </plugins>
         </pluginManagement>
     </build>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <modules>
-                <module>opendaylight/netconf/netconf-it</module>
+                <!-- module>opendaylight/netconf/netconf-it</module -->
             </modules>
         </profile>
         <profile>