From 4397dae19785c74c94abd1b710eb37e3766befaf Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Sat, 23 Apr 2011 17:54:13 +0000
Subject: [PATCH] Fix for issue OpenDJ-141: migration OpenDJ3 to Maven 3 - add back checkstyle, TestNG config, Javadoc, and src.zip generation

---
 opendj3/pom.xml |   94 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 94 insertions(+), 0 deletions(-)

diff --git a/opendj3/pom.xml b/opendj3/pom.xml
index 5ef987b..2636e47 100644
--- a/opendj3/pom.xml
+++ b/opendj3/pom.xml
@@ -84,6 +84,100 @@
         </configuration>
       </plugin>
     </plugins>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.opendj</groupId>
+          <artifactId>opendj-maven-plugin</artifactId>
+          <version>${project.version}</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-surefire-plugin</artifactId>
+          <configuration>
+            <properties>
+              <property>
+                <name>useDefaultListeners</name>
+                <value>false</value>
+              </property>
+              <property>
+                <name>listener</name>
+                <value>org.opendj.buildtools.testng.OpenDJTestListener</value>
+              </property>
+            </properties>
+          </configuration>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-javadoc-plugin</artifactId>
+          <configuration>
+            <show>protected</show>
+            <quiet>true</quiet>
+            <excludePackageNames>com.*</excludePackageNames>
+          </configuration>
+          <executions>
+            <execution>
+              <goals>
+                <goal>jar</goal>
+              </goals>
+            </execution>
+          </executions>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-source-plugin</artifactId>
+          <executions>
+            <execution>
+              <goals>
+                <goal>jar</goal>
+              </goals>
+            </execution>
+          </executions>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-checkstyle-plugin</artifactId>
+          <dependencies>
+            <dependency>
+              <groupId>org.opendj</groupId>
+              <artifactId>opendj-maven-plugin</artifactId>
+              <version>${project.version}</version>
+            </dependency>
+          </dependencies>
+          <executions>
+            <execution>
+              <id>process-classes</id>
+              <configuration>
+                <configLocation>org/opendj/buildtools/maven/check-src.xml</configLocation>
+                <headerLocation>org/opendj/buildtools/maven/opendj.sourceheader</headerLocation>
+                <consoleOutput>true</consoleOutput>
+                <failsOnError>true</failsOnError>
+                <linkXRef>false</linkXRef>
+              </configuration>
+              <phase>process-classes</phase>
+              <goals>
+                <goal>checkstyle</goal>
+              </goals>
+            </execution>
+            <execution>
+              <id>process-test-classes</id>
+              <configuration>
+                <sourceDirectory>${project.build.testSourceDirectory}</sourceDirectory>
+                <configLocation>org/opendj/buildtools/maven/check-unit-tests.xml</configLocation>
+                <headerLocation>org/opendj/buildtools/maven/opendj.sourceheader</headerLocation>
+                <consoleOutput>true</consoleOutput>
+                <failsOnError>true</failsOnError>
+                <linkXRef>false</linkXRef>
+              </configuration>
+              <phase>process-test-classes</phase>
+              <goals>
+                <goal>checkstyle</goal>
+              </goals>
+            </execution>
+          </executions>
+        </plugin>
+      </plugins>
+    </pluginManagement>
   </build>
   <repositories>
     <repository>

--
Gitblit v1.10.0