move creation of *-tests.jar to modules that actually have tests, otherwise jars with no test and no legal files will get generated and cause the release process to fail

git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.0-beta@902968 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald Woods 2010-01-25 20:48:59 +00:00
parent 4627f6bd06
commit 116797b77c
10 changed files with 107 additions and 22 deletions

View File

@ -418,16 +418,7 @@ databaseName=${db.name}
</plugin>
</plugins>
</build>
<!-- only used for old JPA 1.0 RI API, which we don't use anymore
<repositories>
<repository>
<id>java.net</id>
<name>Java.net Maven Repository</name>
<url>https://maven-repository.dev.java.net/nonav/repository</url>
<layout>legacy</layout>
</repository>
</repositories>
-->
<dependencies>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>

View File

@ -230,6 +230,19 @@
<build>
<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>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>

View File

@ -78,4 +78,22 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<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>
</project>

View File

@ -125,6 +125,15 @@
</manifestEntries>
</archive>
</configuration>
<executions>
<execution>
<id>attach-tests</id>
<phase>verify</phase>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

View File

@ -115,6 +115,19 @@ openjpa.version=${project.version}</echo>
</execution>
</executions>
</plugin>
<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>
</project>

View File

@ -777,6 +777,13 @@
</includes>
</configuration>
</execution>
<execution>
<id>attach-tests</id>
<phase>verify</phase>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>

View File

@ -747,6 +747,19 @@
</execution>
</executions>
</plugin>
<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>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>

View File

@ -73,6 +73,19 @@
</excludes>
</configuration>
</plugin>
<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>
</profile>
@ -86,28 +99,21 @@
</activation>
<id>jdk6-compiler</id>
<build>
<!--
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<phase>process-classes</phase>
<configuration>
<tasks>
<echo file="${basedir}/src/main/resources/META-INF/services/javax.annotation.processing.Processor"
message="org.apache.openjpa.persistence.meta.AnnotationProcessor6"/>
</tasks>
</configuration>
<id>attach-tests</id>
<phase>verify</phase>
<goals>
<goal>run</goal>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
-->
</build>
</profile>
</profiles>

View File

@ -118,6 +118,19 @@
</execution>
</executions>
</plugin>
<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>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>

View File

@ -949,6 +949,7 @@
</execution>
</executions>
</plugin>
<!-- moved to modules as this causes release builds to break
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
@ -962,7 +963,8 @@
</execution>
</executions>
</plugin>
</plugins>
-->
</plugins>
</build>
<reporting>