|
From: <ma...@us...> - 2010-03-01 18:16:49
|
Revision: 287
http://objectlabkit.svn.sourceforge.net/objectlabkit/?rev=287&view=rev
Author: marchy
Date: 2010-03-01 18:16:43 +0000 (Mon, 01 Mar 2010)
Log Message:
-----------
IMHO a better way to include/share the common test classes
Modified Paths:
--------------
trunk/datecalc-common/pom.xml
trunk/datecalc-jdk/pom.xml
trunk/datecalc-joda/pom.xml
trunk/pom.xml
Modified: trunk/datecalc-common/pom.xml
===================================================================
--- trunk/datecalc-common/pom.xml 2010-03-01 18:16:23 UTC (rev 286)
+++ trunk/datecalc-common/pom.xml 2010-03-01 18:16:43 UTC (rev 287)
@@ -29,6 +29,17 @@
</instructions>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>test-jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
Modified: trunk/datecalc-jdk/pom.xml
===================================================================
--- trunk/datecalc-jdk/pom.xml 2010-03-01 18:16:23 UTC (rev 286)
+++ trunk/datecalc-jdk/pom.xml 2010-03-01 18:16:43 UTC (rev 287)
@@ -18,6 +18,12 @@
<groupId>net.objectlab.kit.datecalc</groupId>
<artifactId>datecalc-common</artifactId>
</dependency>
+ <dependency>
+ <groupId>net.objectlab.kit.datecalc</groupId>
+ <artifactId>datecalc-common</artifactId>
+ <scope>test</scope>
+ <classifier>tests</classifier>
+ </dependency>
</dependencies>
<build>
@@ -40,14 +46,6 @@
</configuration>
</plugin> <!-- (2) END -->
</plugins>
- <testResources>
- <testResource>
- <directory>../datecalc-common/target/test-classes</directory>
- <includes>
- <include>**/*.class</include>
- </includes>
- </testResource>
- </testResources>
</build>
<reporting>
Modified: trunk/datecalc-joda/pom.xml
===================================================================
--- trunk/datecalc-joda/pom.xml 2010-03-01 18:16:23 UTC (rev 286)
+++ trunk/datecalc-joda/pom.xml 2010-03-01 18:16:43 UTC (rev 287)
@@ -23,6 +23,12 @@
<artifactId>joda-time</artifactId>
<version>1.6</version>
</dependency>
+ <dependency>
+ <groupId>net.objectlab.kit.datecalc</groupId>
+ <artifactId>datecalc-common</artifactId>
+ <scope>test</scope>
+ <classifier>tests</classifier>
+ </dependency>
</dependencies>
<build>
@@ -45,14 +51,6 @@
</configuration>
</plugin> <!-- (2) END -->
</plugins>
- <testResources>
- <testResource>
- <directory>../datecalc-common/target/test-classes</directory>
- <includes>
- <include>**/*.class</include>
- </includes>
- </testResource>
- </testResources>
</build>
<reporting>
<plugins>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-03-01 18:16:23 UTC (rev 286)
+++ trunk/pom.xml 2010-03-01 18:16:43 UTC (rev 287)
@@ -113,9 +113,16 @@
<dependency>
<groupId>net.objectlab.kit.datecalc</groupId>
<artifactId>datecalc-common</artifactId>
- <version>${project.version}</version>
+ <version>${pom.version}</version>
</dependency>
<dependency>
+ <groupId>net.objectlab.kit.datecalc</groupId>
+ <artifactId>datecalc-common</artifactId>
+ <version>${pom.version}</version>
+ <scope>test</scope>
+ <classifier>tests</classifier>
+ </dependency>
+ <dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.osgi.core</artifactId>
<version>1.0.0</version>
@@ -179,7 +186,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</plugin>
-
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
@@ -192,24 +198,21 @@
<configuration>
<issueLinkTemplatePerSystem>
<default>%URL%/?func=detail&group_id=175139&%ISSUE%</default>
- </issueLinkTemplatePerSystem>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-changelog-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>dashboard-maven-plugin</artifactId>
- </plugin>
+ </issueLinkTemplatePerSystem>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-changelog-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>dashboard-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>net.sf</groupId>
+ <artifactId>stat-scm</artifactId>
+ </plugin>
+ </plugins>
+ </reporting>
-
- <plugin>
- <groupId>net.sf</groupId>
- <artifactId>stat-scm</artifactId>
- </plugin>
-
- </plugins>
- </reporting>
-
</project>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|