Tong Fin wrote:
Hi Marshall,
---- Quoted Text ------
I looked, and saw that my local repository had the 2.2 and 2.3 versions of
the surfire plugin. I deleted these from my repository, along with
maven-test and maven-surefire-reports, for good measure, and re-ran.
-------------------------
If I would like to do the same clean up, what files should I delete (I am
not familiar with surefile) ?
Easiest thing is to delete the entire repository :-) If you wanted to
do that, you go to (windows) Documents and
Settings/the-login-that-you-work-under/.m2/repository and delete the
files under that (leave "repository").
I went to: ...\.m2\repository\org\apache\maven\plugins and deleted the
directories:
maven-surefire-plugin and 2 others - something like maven-test and
maven-surefire-reports.
When maven re-populated my local repo with the surefire plugin version
2.4.2, I see it has been moved up a level ...
-Marshall
Thanks,
Tong
On Wed, Apr 16, 2008 at 5:05 PM, Marshall Schor <[EMAIL PROTECTED]> wrote:
Problem solved !
A search of the web using the search string "surefile @beforeclass" turned
up a surefire issue:
http://jira.codehaus.org/browse/SUREFIRE-448
which, in turn, implied that one should be using surefire version 2.4.2.
Of course, our POMs don't specify a level for many maven things like this,
so they just use whatever level you have in your repository. Those of you
who delete the local repository contents from time to time end up
downloading upgraded levels.
I looked, and saw that my local repository had the 2.2 and 2.3 versions of
the surfire plugin. I deleted these from my repository, along with
maven-test and maven-surefire-reports, for good measure, and re-ran.
This caused maven to download the current (latest = 2.4.2) version of the
surefire plugin, so now things are working :-)
-Marshall
Marshall Schor wrote:
More info: Running the failing test (ServerTest) from Eclipse using
run-as Junit, works reliably...
Time to look at what's different between this and maven's running of
it...
-Marshall
Marshall Schor wrote:
Can someone for whom the simple-server tests work, confirm these are
the right levels of software:
httpcore-4.0-alpha6.jar
log4j-1.2.8.jar
commons-logging-1.0.4.jar
servlet-api-2.5-6.1.8.jar
junit-4.0.jar
jetty-util-6.1.8.jar
commons-codec-1.3.jar
jetty-6.1.8.jar
servlet-api-2.4.jar
httpclient-4.0-alpha2.jar
Note the httpcore and httpclient seem to be at different levels.
Note that there are 2 servlet-api's in the class path at different
levels.
The above is the actual classpath order that mvn install uses when
running the tests (except that I left out some jars in this list that were
the uima stuff, or came from the simple-server libraries).
If you run the test using --debug in maven, it will show the
classpath. Please let me know of any discrepencies.
Thanks. -Marshall