From eea93c8346dde9ca5b5bbbddfe94b233c32ace47 Mon Sep 17 00:00:00 2001
From: Albert Lee <allee8285@apache.org>
Date: Tue, 1 Dec 2009 21:35:28 +0000
Subject: [PATCH] OPENJPA-1408 - Add test binary and source jars to modules.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@885942 13f79535-47bb-0310-9956-ffa450edef68
---
 openjpa-persistence-jdbc/pom.xml    |  4 +++-
 openjpa-persistence-locking/pom.xml |  2 +-
 pom.xml                             | 16 +++++++++++++++-
 3 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/openjpa-persistence-jdbc/pom.xml b/openjpa-persistence-jdbc/pom.xml
index c96d275df..4f95ba01e 100644
--- a/openjpa-persistence-jdbc/pom.xml
+++ b/openjpa-persistence-jdbc/pom.xml
@@ -826,9 +826,11 @@
                 <executions>
                     <execution>
                         <goals>
-                            <goal>test-jar</goal>
+                            <goal>jar</goal>
                         </goals>
                         <configuration>
+                            <classifier>test-base</classifier>
+                            <classesDirectory>${project.build.testOutputDirectory}</classesDirectory>
                             <includes>
                                 <!-- Note: Including entities in this jar will
                                      cause problems for any modules that need
diff --git a/openjpa-persistence-locking/pom.xml b/openjpa-persistence-locking/pom.xml
index 96b3e1f11..3ba63f589 100644
--- a/openjpa-persistence-locking/pom.xml
+++ b/openjpa-persistence-locking/pom.xml
@@ -763,7 +763,7 @@
             <groupId>org.apache.openjpa</groupId>
             <artifactId>openjpa-persistence-jdbc</artifactId>
             <version>${pom.version}</version>
-            <classifier>tests</classifier>
+            <classifier>test-base</classifier>
             <scope>test</scope>
         </dependency>
         <dependency>
diff --git a/pom.xml b/pom.xml
index 99cf8d225..bea5331fa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -838,11 +838,25 @@
                         <phase>verify</phase>
                         <goals>
                             <goal>jar</goal>
+                            <goal>test-jar</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
-	</plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>attach-tests</id>
+                        <phase>verify</phase>
+                        <goals>
+                            <goal>test-jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+	    </plugins>
     </build>
 
     <reporting>