Bug 4969: NPE in JSONCodecFactory by attempt to find codec for a leafref
[yangtools.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index cf6dcbf84b1b0d514a732ecbde921a184fe938be..4082b410ca68b0e10b9899f195b1cc411bd857de 100644 (file)
--- a/pom.xml
+++ b/pom.xml
 <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.yangtools</groupId>
+      <artifactId>yangtools-parent</artifactId>
+      <version>0.8.0-SNAPSHOT</version>
+      <relativePath>common/parent</relativePath>
+    </parent>
+
     <modelVersion>4.0.0</modelVersion>
     <artifactId>yangtools-aggregator</artifactId>
-    <groupId>org.opendaylight.yangtools</groupId>
-    <version>0.6.2-SNAPSHOT</version>
+    <name>yangtools</name> <!-- Used by Sonar to set project name -->
     <packaging>pom</packaging>
 
     <scm>
     </scm>
 
     <modules>
-        <module>code-generator</module>
         <module>common</module>
-        <module>integration-test</module>
-        <module>model</module>
-        <module>restconf</module>
-        <module>websocket</module>
         <module>yang</module>
-        <!-- module>third-party</module -->
+        <module>websocket</module>
+        <module>yang-validation-tool</module>
     </modules>
 
+    <profiles>
+      <profile>
+        <id>benchmarks</id>
+        <activation>
+          <activeByDefault>false</activeByDefault>
+        </activation>
+        <modules>
+          <module>benchmarks</module>
+        </modules>
+      </profile>
+    </profiles>
+
+    <build>
+        <pluginManagement>        
+            <plugins>
+                <plugin>
+                 <groupId>org.apache.maven.plugins</groupId>
+                 <artifactId>maven-checkstyle-plugin</artifactId>
+                 <configuration>
+                   <failOnViolation>false</failOnViolation>
+                   <configLocation>checkstyle-logging.xml</configLocation>
+                   <consoleOutput>true</consoleOutput>
+                   <includeTestSourceDirectory>true</includeTestSourceDirectory>
+                   <sourceDirectory>${project.basedir}</sourceDirectory>
+                   <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
+                   <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/,**\/src/main/xtend-gen\/</excludes>
+                 </configuration>
+                 <dependencies>
+                   <dependency>
+                     <groupId>org.opendaylight.yangtools</groupId>
+                     <artifactId>checkstyle-logging</artifactId>
+                     <version>${project.version}</version>
+                   </dependency>
+                 </dependencies>
+                 <executions>
+                   <execution>
+                     <goals>
+                       <goal>check</goal>
+                     </goals>
+                   </execution>
+                 </executions>
+               </plugin>
+            </plugins>            
+        </pluginManagement>
+    </build>
 </project>