summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Greig <rgreig@apache.org>2007-01-15 17:29:32 +0000
committerRobert Greig <rgreig@apache.org>2007-01-15 17:29:32 +0000
commita83817a1f39a471272494e28d059373d6a6f77df (patch)
treed66ba37dee96c5bbe25a41476dbc672b0e80de64
parent23ad76b344c064a926152a6728b0838bbf446f22 (diff)
downloadqpid-python-a83817a1f39a471272494e28d059373d6a6f77df.tar.gz
(Patch submitted by Rupert Smith) QPID-297
There were junit exclusions in the POM files that were causing junit to not be found when compiling tests. This may be a maven bug, but a better solution is to exclude stuff in assembly descriptors instead. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@496414 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--java/broker/pom.xml10
-rw-r--r--java/client/pom.xml8
-rw-r--r--java/perftests/distribution/src/main/assembly/performance.xml2
-rw-r--r--java/perftests/pom.xml24
-rw-r--r--java/pom.xml37
5 files changed, 53 insertions, 28 deletions
diff --git a/java/broker/pom.xml b/java/broker/pom.xml
index 339d90ef9e..2cf8a563f0 100644
--- a/java/broker/pom.xml
+++ b/java/broker/pom.xml
@@ -37,6 +37,7 @@
</properties>
<dependencies>
+
<dependency>
<groupId>org.apache.qpid</groupId>
<artifactId>qpid-common</artifactId>
@@ -45,12 +46,6 @@
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
- <exclusions>
- <exclusion>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </exclusion>
- </exclusions>
</dependency>
<dependency>
@@ -63,7 +58,7 @@
<artifactId>commons-lang</artifactId>
</dependency>
-<!-- Test Dependencies -->
+ <!-- Test Dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
@@ -75,6 +70,7 @@
<artifactId>easymockclassextension</artifactId>
<scope>test</scope>
</dependency>
+
</dependencies>
<build>
diff --git a/java/client/pom.xml b/java/client/pom.xml
index 35f5224a67..854428fb39 100644
--- a/java/client/pom.xml
+++ b/java/client/pom.xml
@@ -55,12 +55,6 @@
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
- <exclusions> <!-- Tries to download 1.2.7-->
- <exclusion>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- </exclusion>
- </exclusions>
</dependency>
<dependency>
@@ -73,7 +67,7 @@
<artifactId>mina-filter-ssl</artifactId>
</dependency>
-<!-- Test Dependencies -->
+ <!-- Test Dependencies -->
<dependency> <!-- for inVm Broker -->
<groupId>org.apache.qpid</groupId>
<artifactId>qpid-broker</artifactId>
diff --git a/java/perftests/distribution/src/main/assembly/performance.xml b/java/perftests/distribution/src/main/assembly/performance.xml
index c36b7e3640..0bf7efa21e 100644
--- a/java/perftests/distribution/src/main/assembly/performance.xml
+++ b/java/perftests/distribution/src/main/assembly/performance.xml
@@ -93,4 +93,4 @@
</excludes>
</dependencySet>
</dependencySets>
-G</assembly>
+</assembly>
diff --git a/java/perftests/pom.xml b/java/perftests/pom.xml
index 98d2696b80..bfa24d99a3 100644
--- a/java/perftests/pom.xml
+++ b/java/perftests/pom.xml
@@ -38,10 +38,32 @@
</properties>
<dependencies>
+
<dependency>
<groupId>org.apache.qpid</groupId>
<artifactId>qpid-client</artifactId>
</dependency>
+
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </dependency>
+
+ <!-- Here JUnit is a deliberate 'compile' scope dependency, it will be packaged with the perf testing tools. -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>compile</scope>
+ </dependency>
+
+ <!-- Will be added to maven repo soon. JUnit test runner that can add repeats/concurrenct/timing etc to tests.
+ <dependency>
+ <groupId>uk.co.thebadgerset</groupId>
+ <artifactId>junit-toolkit</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ -->
+
</dependencies>
<build>
@@ -54,7 +76,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
- <skip>true</skip>
+ <!--<skip>true</skip>-->
</configuration>
</plugin>
diff --git a/java/pom.xml b/java/pom.xml
index db5820c0e3..b00c36c002 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -46,6 +46,14 @@
<name>Apache SNAPSHOT Repository</name>
<url>scp://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
</snapshotRepository>
+
+ <!-- Qpid has a Wiki site, maven generated site not used. This is just so that it can be created locally for viewing the reports. -->
+ <site>
+ <id>Qpid_Site</id>
+ <name>Qpid Site</name>
+ <url>file:/temp</url>
+ </site>
+
</distributionManagement>
<inceptionYear>2006</inceptionYear>
@@ -199,13 +207,13 @@
time, during the 'package' phase to capture the version of any resources added to jar files.
This svnversion command is always run in the top directory to accurately reflect the svnversion range accross all modules
at the time of the build.
- The properties are placed into a file 'qpidversion.properties' in the target/classes directory of any child module that runs
- this plugin.
+ The properties are placed into a file 'qpidversion.properties' in the target/classes directory of any child module
+ that runs this plugin.
The 'qpidversion.properties' file is loaded by the org.apache.qpid.common.QpidProperties class.
Be carefull of the possibility that the 'common' module may run this antrun plugin and recieve its own set of
- qpidversion.properties and then the client or broker being built against an older version of the common library ending up with
- the wrong version information. This is unlikely to happen because the client or broker should pick up its own properties
- from the classpath first. If this happens it will be obvious because the productName property will be
+ qpidversion.properties and then the client or broker being built against an older version of the common library ending
+ up with the wrong version information. This is unlikely to happen because the client or broker should pick up its own
+ properties from the classpath first. If this happens it will be obvious because the productName property will be
'Qpid Common Utilities'. If this is a problem then push this ant task down into the client and broker poms and remove it
from here.
-->
@@ -331,7 +339,9 @@
</plugin>
</plugins>
</pluginManagement>
+
<defaultGoal>install</defaultGoal>
+
</build>
<dependencyManagement>
@@ -360,13 +370,6 @@
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.1</version>
- <exclusions>
- <!-- this seems to have a junit compile dependency -->
- <exclusion>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </exclusion>
- </exclusions>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
@@ -426,6 +429,7 @@
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
+
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymockclassextension</artifactId>
@@ -433,6 +437,15 @@
<scope>test</scope>
</dependency>
+ <!-- Will be added to maven repo soon. JUnit test runner that can add repeats/concurrenct/timing etc to tests.
+ <dependency>
+ <groupId>uk.co.thebadgerset</groupId>
+ <artifactId>junit-toolkit</artifactId>
+ <version>0.3</version>
+ <scope>test</scope>
+ </dependency>
+ -->
+
<!-- Qpid Version Dependencies -->
<dependency>
<groupId>org.apache.qpid</groupId>