You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andreas Höhmann (JIRA)" <ji...@codehaus.org> on 2008/11/23 19:16:19 UTC

[jira] Created: (MECLIPSE-503) src/test/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties necessary for running junit-tests in eclipse

src/test/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties necessary for running junit-tests in eclipse
-------------------------------------------------------------------------------------------------------------------------

                 Key: MECLIPSE-503
                 URL: http://jira.codehaus.org/browse/MECLIPSE-503
             Project: Maven 2.x Eclipse Plugin
          Issue Type: Test
          Components: Core : .project
    Affects Versions: 2.6
         Environment: maven 2.0.9
eclipse 3.4
jdk 1.5
            Reporter: Andreas Höhmann


i'm currently fixing bugs for the eclipse-plugin ... i use eclipse for this :-)

so i checked out the trunk, mvn install, then mvn eclipse:eclipse

i can run the test "org.apache.maven.plugin.eclipse.EclipsePluginUnitTest" only with errors.

java.lang.IllegalStateException: Unable to find Maven properties in classpath: META-INF/maven/org.apache.maven/maven-core/pom.properties
	at org.apache.maven.execution.DefaultRuntimeInformation.initialize(DefaultRuntimeInformation.java:63)
	at org.apache.maven.plugin.eclipse.EclipsePluginUnitTest.newMojo(EclipsePluginUnitTest.java:55)
	at org.apache.maven.plugin.eclipse.EclipsePluginUnitTest.testExtractResourceDirs_HandleMultipleResources(EclipsePluginUnitTest.java:296)
	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:585)
	at junit.framework.TestCase.runTest(TestCase.java:164)
	at junit.framework.TestCase.runBare(TestCase.java:130)
	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:120)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

i must create a file "src/test/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties" with the content
version=2.6-SNAPSHOT
groupId=org.apache.maven.plugins
artifactId=maven-eclipse-plugin
to run this test sucessful

any ideas?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira