Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4923

[regression] java.lang.ClassNotFoundException: org.apache.maven.artifact.ArtifactStatus

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0, 3.0.1
    • 3.0.2
    • None
    • None
    • Fedora 14, 64bit
      JDK 1.6.0_22

    Description

      When attempting to run pax:import-bundle I get the following exception;

      java.lang.ClassNotFoundException: org.apache.maven.artifact.ArtifactStatus

      I only get this in maven 3, maven 2.2.1 works as expected.

      To reproduce, I followed the example in http://www.sonatype.com/books/mhandbook-stage/reference/sect-osgi-generate-project.html

      Namely;

      1) mvn org.ops4j:maven-pax-plugin:create-project -DgroupId=org.sonatype.mcookbook -DartifactId=osgi-project -Dversion=1.0-SNAPSHOT
      2) cd osgi-project

      3) mvn pax:import-bundle -DgroupId=org.apache.felix -DartifactId=org.apache.felix.webconsole -Dversion=1.2.8

      Step three fails. See attached for the output when run with -X

      I would expect maven 3 to handle this as I understand it is meant to be backwards compatible with all maven 2 plugins.

      Attachments

        1. import-bundle-error.log
          40 kB
          Simon Goodall

        Activity

          People

            bentmann Benjamin Bentmann
            drsgoodall Simon Goodall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: