As you might have seen from the commit messages, I managed to get the
IDEA plugin release going. After trying different combinations of maven,
surefire and parent poms, I got the tests running (when releasing) using
maven 2.0.4. I hope this gives someone a clue to what went wrong...
Dennis Lundberg wrote:
Hi
I'm preparing to release maven-idea-plugin, but I ran into trouble
running the tests. I've tried both Maven 2.0.5 and 2.0.6 on Windows,
against the svn trunk of maven-idea-plugin.
If I run "mvn test" all tests pass.
But if I run "mvn release:prepare -DdryRun=true" the tests fail with the
following message:
java.lang.NoClassDefFoundError:
org/codehaus/classworlds/NoSuchRealmException
at
org.codehaus.plexus.PlexusTestCase.createContainerInstance(PlexusTestCase.java:126)
at org.codehaus.plexus.PlexusTestCase.setUp(PlexusTestCase.java:91)
at
org.apache.maven.plugin.testing.AbstractMojoTestCase.setUp(AbstractMojoTestCase.java:62)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
Does anyone have a clue to what might be wrong?
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]