I'm not using M-S-P 2.2 so I can't tell you for sure, but going
entirely on your reported problems, it certainly sounds like M-S-P 2.2
has some issues that might be worth investigating and/or posting to
JIRA.
Wayne
On 5/25/06, Morgan Rachell <[EMAIL PROTECTED]> wrote:
I tried that. Specifically, I added
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.2.8</version>
<scope>test</scope>
</dependency>
To my parent pom. But that didn't work. So I removed it and added back:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.1.3</version>
</plugin>
Which made 'mvn test' work. Just for kicks, I changed the surefire
version to 2.2 and got that original "No Java test frameworks found"
build error.
For reference, the only 3rd-party jars that I'm explicitly listing as a
<dependency> are:
Spring 1.2.7
Hibernate 3.1.3
Struts 1.2.8
Log4j 1.2.8
Xercesimpl 2.7.1
Xml-apis 1.3.02
-----Original Message-----
From: Allison, Bob [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 3:30 PM
To: Maven Users List
Subject: RE: [m2] No Java test frameworks found?
I had this problem and resolved it by placing an explicit dependency on
JUnit. It seems that something in one of the other plugins I have been
using had a reference to JUnit which made everything work right. The
updated plugins removed that indirect reference and caused the problem.
-----Original Message-----
From: Morgan Rachell [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 14:49
To: [email protected]
Subject: [m2] No Java test frameworks found?
I had setup my project a few weeks ago and was running 'mvn install'
(with
JUnit tests, etc.) without problems. Someone new just joined my project
and
just did a 'mvn install', which first downloaded all plugins and
dependencies, but then he got this error:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] No Java test frameworks found
[INFO]
------------------------------------------------------------------------
We can reproduce the error with just a 'mvn test' command too.
I noticed that his download was getting maven-surefire-plugin version
2.2. I
was unable to duplicate the problem on my machine because I had version
2.1.3 of the plugin. When I deleted version 2.1.3 from local repository
(actually, I foolishly deleted my entire local repo!) I got the same
error.
Now we're stuck and cannot get past this error.
I should also mention that we use a mirror pointing to
http://repo.mergere.com/maven2. It's much faster than ibiblio.
Has anyone else experienced this problem or know how to get past it?
Thanks,
Morgan
--
View this message in context:
http://www.nabble.com/-m2-+No+Java+test+frameworks+found--t1682690.html#
a4564033
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This communication is the property of Qwest and may contain confidential
or
privileged information. Unauthorized use of this communication is
strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and
destroy
all copies of the communication and any attachments.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]