Uploaded image for project: 'Commons Weaver'
  1. Commons Weaver
  2. WEAVER-17

Missing HelpMojo when trying to run mvn clean org.apache.commons:commons-weaver-maven-plugin:help

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0
    • maven-plugin
    • None

    Description

      This week while playing with weaver, trying to write a weaver for a Spring project, I tried to see the help with the following command:

      mvn clean org.apache.commons:commons-weaver-maven-plugin:help
      

      But it failed with the following message:

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 0.579 s
      [INFO] Finished at: 2016-11-19T19:55:06+13:00
      [INFO] Final Memory: 10M/238M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.commons:commons-weaver-maven-plugin:1.4-SNAPSHOT:help (default-cli) on project weaver-example: Execution default-cli of goal org.apache.commons:commons-weaver-maven-plugin:1.4-SNAPSHOT:help failed: Unable to load the mojo 'help' in the plugin 'org.apache.commons:commons-weaver-maven-plugin:1.4-SNAPSHOT'. A required class is missing: HelpMojo
      [ERROR] -----------------------------------------------------
      [ERROR] realm =    plugin>org.apache.commons:commons-weaver-maven-plugin:1.4-SNAPSHOT
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/home/kinow/.m2/repository/org/apache/commons/commons-weaver-maven-plugin/1.4-SNAPSHOT/commons-weaver-maven-plugin-1.4-SNAPSHOT.jar
      [ERROR] urls[1] = file:/home/kinow/.m2/repository/org/apache/commons/commons-weaver-privilizer-api/1.4-SNAPSHOT/commons-weaver-privilizer-api-1.4-SNAPSHOT.jar
      [ERROR] urls[2] = file:/home/kinow/.m2/repository/org/apache/commons/commons-weaver-privilizer/1.4-SNAPSHOT/commons-weaver-privilizer-1.4-SNAPSHOT.jar
      [ERROR] urls[3] = file:/home/kinow/.m2/repository/org/apache/commons/commons-weaver-processor/1.4-SNAPSHOT/commons-weaver-processor-1.4-SNAPSHOT.jar
      [ERROR] urls[4] = file:/home/kinow/.m2/repository/org/apache/xbean/xbean-finder-shaded/4.5/xbean-finder-shaded-4.5.jar
      [ERROR] urls[5] = file:/home/kinow/.m2/repository/org/apache/xbean/xbean-asm5-shaded/4.5/xbean-asm5-shaded-4.5.jar
      [ERROR] urls[6] = file:/home/kinow/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar
      [ERROR] urls[7] = file:/home/kinow/.m2/repository/org/apache/commons/commons-collections4/4.1/commons-collections4-4.1.jar
      [ERROR] urls[8] = file:/home/kinow/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar
      [ERROR] urls[9] = file:/home/kinow/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.6/plexus-utils-2.0.6.jar
      [ERROR] urls[10] = file:/home/kinow/.m2/repository/org/eclipse/aether/aether-util/1.1.0/aether-util-1.1.0.jar
      [ERROR] Number of foreign imports: 1
      [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
      [ERROR] 
      [ERROR] -----------------------------------------------------
      [ERROR] -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
      

      If I try to run prepare with

      mvn clean org.apache.commons:commons-weaver-maven-plugin:prepare
      

      it works fine.

      Attachments

        Activity

          People

            mbenson Matthew Jason Benson
            kinow Bruno P. Kinoshita
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: