[jira] (MPLUGINTESTING-27) ClassDefNotFound exception

2013-12-04 Thread Igor Fedorenko (JIRA)

 [ 
https://jira.codehaus.org/browse/MPLUGINTESTING-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Igor Fedorenko closed MPLUGINTESTING-27.


   Resolution: Duplicate
Fix Version/s: 3.0.0

plugin testing 3.0.0 is compatible with maven 3.1, see MPLUGINTESTING-30

 ClassDefNotFound exception
 --

 Key: MPLUGINTESTING-27
 URL: https://jira.codehaus.org/browse/MPLUGINTESTING-27
 Project: Maven Plugin Testing
  Issue Type: Bug
  Components: plugin-testing-harness
Affects Versions: 2.1
 Environment: Maven 3.0.4, JDK 1.7, MacOSx
Reporter: Artur Keska
 Fix For: 3.0.0


 I'm trying to extend an existing project using p.-t.-hatness.
 So I added to my project dependency:
  dependency
   groupIdorg.apache.maven.plugin-testing/groupId
   artifactIdmaven-plugin-testing-harness/artifactId
   version2.1/version
   scopetest/scope
  /dependency
 And extended the test class follow the quick start guide.
 On the first run I have following exception:
 rg.apache.maven.surefire.util.SurefireReflectionException: 
 java.lang.reflect.InvocationTargetException; nested exception is 
 java.lang.reflect.InvocationTargetException: null
 java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at 
 org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
   at 
 org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
   at 
 org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
   at 
 org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
   at 
 org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
 Caused by: java.lang.NoClassDefFoundError: 
 org/sonatype/aether/RepositorySystemSession
   at java.lang.Class.getDeclaredMethods0(Native Method)
   at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
   at java.lang.Class.getMethod0(Class.java:2685)
   at java.lang.Class.getMethod(Class.java:1620)
   at 
 org.apache.maven.surefire.common.junit3.JUnit3Reflector.createInstanceFromSuiteMethod(JUnit3Reflector.java:152)
   at 
 org.apache.maven.surefire.common.junit3.JUnit3Reflector.constructTestObject(JUnit3Reflector.java:121)
   at 
 org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:71)
   at 
 org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:117)
   at 
 org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:94)
   ... 9 more
 Caused by: java.lang.ClassNotFoundException: 
 org.sonatype.aether.RepositorySystemSession
   at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
   ... 18 more
 It loks like the Aether classes are not found. So I simply added dependency:
  dependency
   groupIdcom.rempl/groupId
   artifactIdrempl-cli/artifactId
   version1.1.3/version
   classifierbin/classifier
   scopetest/scope
 /dependency
 And now I have exception:
 Caused by: java.lang.ClassNotFoundException: 
 org.apache.maven.execution.MavenExecutionRequest
 That's funny because MavenExecutionRequest is a part of the Maven core and 
 should be just available. Anyway I checked what's happend if I will add 
 maven-core manually. When adding dependency:
dependency
   groupIdorg.apache.maven/groupId
   artifactIdmaven-core/artifactId
   version${maven-version}/version
   scopetest/scope
 /dependency
 I have another error:
 Caused by: java.lang.ClassNotFoundException: 
 org.apache.maven.execution.MavenExecutionResult
 Hmmm... This is also a part of maven-core. This brings me to the conclusion, 
 that trying to add dependencies manually was was a bad idea and there must be 
 another solution.
 I will appreciative for any idea what can I do.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] (MPLUGINTESTING-27) ClassDefNotFound exception

2013-11-10 Thread Baron Roberts (JIRA)

[ 
https://jira.codehaus.org/browse/MPLUGINTESTING-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=335539#comment-335539
 ] 

Baron Roberts commented on MPLUGINTESTING-27:
-

The folks at [Simpligility have created a 
fork|https://github.com/simpligility/maven-plugin-testing] of the 
maven-plugin-testing-harness that fixes the incompatibility with 3.1.x.

 ClassDefNotFound exception
 --

 Key: MPLUGINTESTING-27
 URL: https://jira.codehaus.org/browse/MPLUGINTESTING-27
 Project: Maven Plugin Testing
  Issue Type: Bug
  Components: plugin-testing-harness
Affects Versions: 2.1
 Environment: Maven 3.0.4, JDK 1.7, MacOSx
Reporter: Artur Keska

 I'm trying to extend an existing project using p.-t.-hatness.
 So I added to my project dependency:
  dependency
   groupIdorg.apache.maven.plugin-testing/groupId
   artifactIdmaven-plugin-testing-harness/artifactId
   version2.1/version
   scopetest/scope
  /dependency
 And extended the test class follow the quick start guide.
 On the first run I have following exception:
 rg.apache.maven.surefire.util.SurefireReflectionException: 
 java.lang.reflect.InvocationTargetException; nested exception is 
 java.lang.reflect.InvocationTargetException: null
 java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at 
 org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
   at 
 org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
   at 
 org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
   at 
 org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
   at 
 org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
 Caused by: java.lang.NoClassDefFoundError: 
 org/sonatype/aether/RepositorySystemSession
   at java.lang.Class.getDeclaredMethods0(Native Method)
   at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
   at java.lang.Class.getMethod0(Class.java:2685)
   at java.lang.Class.getMethod(Class.java:1620)
   at 
 org.apache.maven.surefire.common.junit3.JUnit3Reflector.createInstanceFromSuiteMethod(JUnit3Reflector.java:152)
   at 
 org.apache.maven.surefire.common.junit3.JUnit3Reflector.constructTestObject(JUnit3Reflector.java:121)
   at 
 org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:71)
   at 
 org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:117)
   at 
 org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:94)
   ... 9 more
 Caused by: java.lang.ClassNotFoundException: 
 org.sonatype.aether.RepositorySystemSession
   at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
   ... 18 more
 It loks like the Aether classes are not found. So I simply added dependency:
  dependency
   groupIdcom.rempl/groupId
   artifactIdrempl-cli/artifactId
   version1.1.3/version
   classifierbin/classifier
   scopetest/scope
 /dependency
 And now I have exception:
 Caused by: java.lang.ClassNotFoundException: 
 org.apache.maven.execution.MavenExecutionRequest
 That's funny because MavenExecutionRequest is a part of the Maven core and 
 should be just available. Anyway I checked what's happend if I will add 
 maven-core manually. When adding dependency:
dependency
   groupIdorg.apache.maven/groupId
   artifactIdmaven-core/artifactId
   version${maven-version}/version
   scopetest/scope
 /dependency
 I have another error:
 Caused by: java.lang.ClassNotFoundException: 
 org.apache.maven.execution.MavenExecutionResult
 Hmmm... This is also a part of maven-core. This brings me to the conclusion, 
 that trying to add dependencies manually was was a bad idea and there must be 
 another solution.
 I will appreciative for any idea what can I do.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more 

[jira] (MPLUGINTESTING-27) ClassDefNotFound exception

2013-10-16 Thread Emeric MARTINEAU (JIRA)

[ 
https://jira.codehaus.org/browse/MPLUGINTESTING-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=334227#comment-334227
 ] 

Emeric MARTINEAU commented on MPLUGINTESTING-27:


Hi,

I confirm this issue.

If you use 'plugin-testing-harness' version 2.0, no problem.

The only difference is in pom of 2.0 :
{code:xml}
dependency
  groupIdorg.codehaus.plexus/groupId
  artifactIdplexus-archiver/artifactId
  version1.0-alpha-7/version
/dependency
{code}

and in pom 2.1
{code:xml}
dependency
  groupIdorg.codehaus.plexus/groupId
  artifactIdplexus-archiver/artifactId
  version2.2/version
/dependency
{code}

Regards

 ClassDefNotFound exception
 --

 Key: MPLUGINTESTING-27
 URL: https://jira.codehaus.org/browse/MPLUGINTESTING-27
 Project: Maven Plugin Testing
  Issue Type: Bug
  Components: plugin-testing-harness
Affects Versions: 2.1
 Environment: Maven 3.0.4, JDK 1.7, MacOSx
Reporter: Artur Keska

 I'm trying to extend an existing project using p.-t.-hatness.
 So I added to my project dependency:
  dependency
   groupIdorg.apache.maven.plugin-testing/groupId
   artifactIdmaven-plugin-testing-harness/artifactId
   version2.1/version
   scopetest/scope
  /dependency
 And extended the test class follow the quick start guide.
 On the first run I have following exception:
 rg.apache.maven.surefire.util.SurefireReflectionException: 
 java.lang.reflect.InvocationTargetException; nested exception is 
 java.lang.reflect.InvocationTargetException: null
 java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at 
 org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
   at 
 org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
   at 
 org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
   at 
 org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
   at 
 org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
 Caused by: java.lang.NoClassDefFoundError: 
 org/sonatype/aether/RepositorySystemSession
   at java.lang.Class.getDeclaredMethods0(Native Method)
   at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
   at java.lang.Class.getMethod0(Class.java:2685)
   at java.lang.Class.getMethod(Class.java:1620)
   at 
 org.apache.maven.surefire.common.junit3.JUnit3Reflector.createInstanceFromSuiteMethod(JUnit3Reflector.java:152)
   at 
 org.apache.maven.surefire.common.junit3.JUnit3Reflector.constructTestObject(JUnit3Reflector.java:121)
   at 
 org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:71)
   at 
 org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:117)
   at 
 org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:94)
   ... 9 more
 Caused by: java.lang.ClassNotFoundException: 
 org.sonatype.aether.RepositorySystemSession
   at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
   ... 18 more
 It loks like the Aether classes are not found. So I simply added dependency:
  dependency
   groupIdcom.rempl/groupId
   artifactIdrempl-cli/artifactId
   version1.1.3/version
   classifierbin/classifier
   scopetest/scope
 /dependency
 And now I have exception:
 Caused by: java.lang.ClassNotFoundException: 
 org.apache.maven.execution.MavenExecutionRequest
 That's funny because MavenExecutionRequest is a part of the Maven core and 
 should be just available. Anyway I checked what's happend if I will add 
 maven-core manually. When adding dependency:
dependency
   groupIdorg.apache.maven/groupId
   artifactIdmaven-core/artifactId
   version${maven-version}/version
   scopetest/scope
 /dependency
 I have another error:
 Caused by: java.lang.ClassNotFoundException: 
 org.apache.maven.execution.MavenExecutionResult
 Hmmm... This is also a part of maven-core. This brings me to the 

[jira] (MPLUGINTESTING-27) ClassDefNotFound exception

2013-05-24 Thread Artur Keska (JIRA)
Artur Keska created MPLUGINTESTING-27:
-

 Summary: ClassDefNotFound exception
 Key: MPLUGINTESTING-27
 URL: https://jira.codehaus.org/browse/MPLUGINTESTING-27
 Project: Maven 2.x Plugin Testing
  Issue Type: Bug
  Components: plugin-testing-harness
Affects Versions: 2.1
 Environment: Maven 3.0.4, JDK 1.7, MacOSx
Reporter: Artur Keska


I'm trying to extend an existing project using p.-t.-hatness.
So I added to my project dependency:

 dependency
  groupIdorg.apache.maven.plugin-testing/groupId
  artifactIdmaven-plugin-testing-harness/artifactId
  version2.1/version
  scopetest/scope
 /dependency

And extended the test class follow the quick start guide.

On the first run I have following exception:

rg.apache.maven.surefire.util.SurefireReflectionException: 
java.lang.reflect.InvocationTargetException; nested exception is 
java.lang.reflect.InvocationTargetException: null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at 
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at 
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at 
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at 
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: java.lang.NoClassDefFoundError: 
org/sonatype/aether/RepositorySystemSession
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
at java.lang.Class.getMethod0(Class.java:2685)
at java.lang.Class.getMethod(Class.java:1620)
at 
org.apache.maven.surefire.common.junit3.JUnit3Reflector.createInstanceFromSuiteMethod(JUnit3Reflector.java:152)
at 
org.apache.maven.surefire.common.junit3.JUnit3Reflector.constructTestObject(JUnit3Reflector.java:121)
at 
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:71)
at 
org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:117)
at 
org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:94)
... 9 more
Caused by: java.lang.ClassNotFoundException: 
org.sonatype.aether.RepositorySystemSession
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 18 more


It loks like the Aether classes are not found. So I simply added dependency:

 dependency
  groupIdcom.rempl/groupId
  artifactIdrempl-cli/artifactId
  version1.1.3/version
  classifierbin/classifier
  scopetest/scope
/dependency

And now I have exception:

Caused by: java.lang.ClassNotFoundException: 
org.apache.maven.execution.MavenExecutionRequest

That's funny because MavenExecutionRequest is a part of the Maven core and 
should be just available. Anyway I checked what's happend if I will add 
maven-core manually. When adding dependency:
   dependency
  groupIdorg.apache.maven/groupId
  artifactIdmaven-core/artifactId
  version${maven-version}/version
  scopetest/scope
/dependency

I have another error:
Caused by: java.lang.ClassNotFoundException: 
org.apache.maven.execution.MavenExecutionResult

Hmmm... This is also a part of maven-core. This brings me to the conclusion, 
that trying to add dependencies manually was was a bad idea and there must be 
another solution.

I will appreciative for any idea what can I do.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira