Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-503

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

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • 2.6
    • None
    • Core : .project
    • None
    • maven 2.0.9
      eclipse 3.4
      jdk 1.5

    Description

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            ahoehma Andreas Höhmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: