2 Replies Latest reply on Oct 10, 2011 1:17 PM by megaweb mcm

    FlexPMD maven plugin no longer useable with Maven due to imcompatible binaries?

    MurrayFurtado Level 1

      I am using Maven 2.2.1 with FlexPMD 1.2 and Flexmojos 3.7.1, with the maven-site-plugin 3.0

       

      I get the following error:

       

      [INFO] [site:site {execution: default-site}]

      [FATAL ERROR] org.apache.maven.plugins.site.SiteMojo#execute() caused a linkage

      error (java.lang.AbstractMethodError) and may be out-of-date. Check the realms:

      [FATAL ERROR] Plugin realm = app0.child-container[org.apache.maven.plugins:maven

      -site-plugin:3.0]

      urls[0] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/plugins/mav

      en-site-plugin/3.0/maven-site-plugin-3.0.jar

      urls[1] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/reporting/m

      aven-reporting-exec/1.0.1/maven-reporting-exec-1.0.1.jar

      urls[2] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/plexus-u

      tils/1.5.10/plexus-utils-1.5.10.jar

      urls[3] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/maven-setti

      ngs-builder/3.0/maven-settings-builder-3.0.jar

      urls[4] = file:/C:/dreammachine/cache/m2/repository/org/apache/velocity/velocity

      /1.5/velocity-1.5.jar

      urls[5] = file:/C:/dreammachine/cache/m2/repository/commons-collections/commons-

      collections/3.2.1/commons-collections-3.2.1.jar

      urls[6] = file:/C:/dreammachine/cache/m2/repository/commons-lang/commons-lang/2.

      5/commons-lang-2.5.jar

      urls[7] = file:/C:/dreammachine/cache/m2/repository/oro/oro/2.0.8/oro-2.0.8.jar

      urls[8] = file:/C:/dreammachine/cache/m2/repository/velocity/velocity/1.5/veloci

      ty-1.5.jar

      urls[9] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxia

      -core/1.2/doxia-core-1.2.jar

      urls[10] = file:/C:/dreammachine/cache/m2/repository/xerces/xercesImpl/2.9.1/xer

      cesImpl-2.9.1.jar

      urls[11] = file:/C:/dreammachine/cache/m2/repository/xml-apis/xml-apis/1.3.04/xm

      l-apis-1.3.04.jar

      urls[12] = file:/C:/dreammachine/cache/m2/repository/org/apache/httpcomponents/h

      ttpclient/4.0.2/httpclient-4.0.2.jar

      urls[13] = file:/C:/dreammachine/cache/m2/repository/org/apache/httpcomponents/h

      ttpcore/4.0.1/httpcore-4.0.1.jar

      urls[14] = file:/C:/dreammachine/cache/m2/repository/commons-codec/commons-codec

      /1.3/commons-codec-1.3.jar

      urls[15] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi

      a-module-xhtml/1.2/doxia-module-xhtml-1.2.jar

      urls[16] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi

      a-module-apt/1.2/doxia-module-apt-1.2.jar

      urls[17] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi

      a-module-xdoc/1.2/doxia-module-xdoc-1.2.jar

      urls[18] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi

      a-module-fml/1.2/doxia-module-fml-1.2.jar

      urls[19] = file:/C:/dreammachine/cache/m2/repository/javax/servlet/servlet-api/2

      .5/servlet-api-2.5.jar

      urls[20] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi

      a-decoration-model/1.2/doxia-decoration-model-1.2.jar

      urls[21] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi

      a-site-renderer/1.2/doxia-site-renderer-1.2.jar

      urls[22] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/plexus-

      i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar

      urls[23] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/plexus-

      velocity/1.1.8/plexus-velocity-1.1.8.jar

      urls[24] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/shared/mav

      en-doxia-tools/1.4/maven-doxia-tools-1.4.jar

      urls[25] = file:/C:/dreammachine/cache/m2/repository/commons-io/commons-io/1.4/c

      ommons-io-1.4.jar

      urls[26] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/plexus-

      archiver/1.0/plexus-archiver-1.0.jar

      urls[27] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/plexus-

      io/1.0/plexus-io-1.0.jar

      urls[28] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/jetty/6.1

      .25/jetty-6.1.25.jar

      urls[29] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/jetty-uti

      l/6.1.25/jetty-util-6.1.25.jar

      urls[30] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/servlet-a

      pi/2.5-20081211/servlet-api-2.5-20081211.jar

      [FATAL ERROR] Container realm = plexus.core

      urls[0] = file:/C:/dreammachine/tools/m2/lib/maven-2.2.1-uber.jar

      [INFO] ------------------------------------------------------------------------

      [ERROR] FATAL ERROR

      [INFO] ------------------------------------------------------------------------

      [INFO] null

      [INFO] ------------------------------------------------------------------------

      [INFO] Trace

      java.lang.AbstractMethodError

              at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getReports(Ab

      stractSiteRenderingMojo.java:246)

              at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:121)

              at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi

      nManager.java:490)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

      ultLifecycleExecutor.java:694)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi

      fecycle(DefaultLifecycleExecutor.java:556)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau

      ltLifecycleExecutor.java:535)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan

      dleFailures(DefaultLifecycleExecutor.java:387)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen

      ts(DefaultLifecycleExecutor.java:348)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi

       

       

      If I revert to maven-site-plugin 2.1 this issue disappears, but I then get the error reported here:

       

      https://issues.sonatype.org/browse/FLEXMOJOS-310?page=com.atlassian.jira.plugin.system.iss uetabpanels:comment-tabpanel#issue-tabs

       

      If I migrate to maven 3.0.3 with maven-site-plugin 3.0 I get the following error:

       

      [INFO] configuring report plugin com.adobe.ac:flex-pmd-maven-plugin:1.2

      [INFO] ------------------------------------------------------------------------

      [INFO] BUILD FAILURE

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 1:31.730s

      [INFO] Finished at: Tue Sep 27 17:21:49 BST 2011

      [INFO] Final Memory: 21M/243M

      [INFO] ------------------------------------------------------------------------

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:si

      te (default-site) on project cafe-parsley: Execution default-site of goal org.ap

      ache.maven.plugins:maven-site-plugin:3.0:site failed: An API incompatibility was

      encountered while executing org.apache.maven.plugins:maven-site-plugin:3.0:site

      : java.lang.AbstractMethodError: null

      [ERROR] -----------------------------------------------------

      [ERROR] realm =    plugin>org.apache.maven.plugins:maven-site-plugin:3.0

      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy

      [ERROR] urls[0] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/plu

      gins/maven-site-plugin/3.0/maven-site-plugin-3.0.jar

      [ERROR] urls[1] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/rep

      orting/maven-reporting-exec/1.0.1/maven-reporting-exec-1.0.1.jar

      [ERROR] urls[2] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/rep

      orting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar

      [ERROR] urls[3] = file:/C:/dreammachine/cache/m2/repository/org/apache/velocity/

      velocity/1.5/velocity-1.5.jar

      [ERROR] urls[4] = file:/C:/dreammachine/cache/m2/repository/oro/oro/2.0.8/oro-2.

      0.8.jar

      [ERROR] urls[5] = file:/C:/dreammachine/cache/m2/repository/velocity/velocity/1.

      5/velocity-1.5.jar

      [ERROR] urls[6] = file:/C:/dreammachine/cache/m2/repository/org/sonatype/aether/

      aether-util/1.7/aether-util-1.7.jar

      [ERROR] urls[7] = file:/C:/dreammachine/cache/m2/repository/org/sonatype/sisu/si

      su-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar

      [ERROR] urls[8] = file:/C:/dreammachine/cache/m2/repository/org/sonatype/sisu/si

      su-guice/2.1.7/sisu-guice-2.1.7-noaop.jar

      [ERROR] urls[9] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/

      plexus-interpolation/1.14/plexus-interpolation-1.14.jar

      [ERROR] urls[10] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus

      /plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar

      [ERROR] urls[11] = file:/C:/dreammachine/cache/m2/repository/org/sonatype/plexus

      /plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar

      [ERROR] urls[12] = file:/C:/dreammachine/cache/m2/repository/org/sonatype/plexus

      /plexus-cipher/1.4/plexus-cipher-1.4.jar

      [ERROR] urls[13] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do

      xia/doxia-sink-api/1.2/doxia-sink-api-1.2.jar

      [ERROR] urls[14] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do

      xia/doxia-logging-api/1.2/doxia-logging-api-1.2.jar

      [ERROR] urls[15] = file:/C:/dreammachine/cache/m2/repository/junit/junit/3.8.1/j

      unit-3.8.1.jar

      [ERROR] urls[16] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do

      xia/doxia-core/1.2/doxia-core-1.2.jar

      [ERROR] urls[17] = file:/C:/dreammachine/cache/m2/repository/xerces/xercesImpl/2

      .9.1/xercesImpl-2.9.1.jar

      [ERROR] urls[18] = file:/C:/dreammachine/cache/m2/repository/xml-apis/xml-apis/1

      .3.04/xml-apis-1.3.04.jar

      [ERROR] urls[19] = file:/C:/dreammachine/cache/m2/repository/org/apache/httpcomp

      onents/httpclient/4.0.2/httpclient-4.0.2.jar

      [ERROR] urls[20] = file:/C:/dreammachine/cache/m2/repository/org/apache/httpcomp

      onents/httpcore/4.0.1/httpcore-4.0.1.jar

      [ERROR] urls[21] = file:/C:/dreammachine/cache/m2/repository/commons-codec/commo

      ns-codec/1.3/commons-codec-1.3.jar

      [ERROR] urls[22] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do

      xia/doxia-module-xhtml/1.2/doxia-module-xhtml-1.2.jar

      [ERROR] urls[23] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do

      xia/doxia-module-apt/1.2/doxia-module-apt-1.2.jar

      [ERROR] urls[24] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do

      xia/doxia-module-xdoc/1.2/doxia-module-xdoc-1.2.jar

      [ERROR] urls[25] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do

      xia/doxia-module-fml/1.2/doxia-module-fml-1.2.jar

      [ERROR] urls[26] = file:/C:/dreammachine/cache/m2/repository/javax/servlet/servl

      et-api/2.5/servlet-api-2.5.jar

      [ERROR] urls[27] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do

      xia/doxia-decoration-model/1.2/doxia-decoration-model-1.2.jar

      [ERROR] urls[28] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do

      xia/doxia-site-renderer/1.2/doxia-site-renderer-1.2.jar

      [ERROR] urls[29] = file:/C:/dreammachine/cache/m2/repository/commons-collections

      /commons-collections/3.2.1/commons-collections-3.2.1.jar

      [ERROR] urls[30] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/sh

      ared/maven-doxia-tools/1.4/maven-doxia-tools-1.4.jar

      [ERROR] urls[31] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus

      /plexus-archiver/1.0/plexus-archiver-1.0.jar

      [ERROR] urls[32] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus

      /plexus-io/1.0/plexus-io-1.0.jar

      [ERROR] urls[33] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus

      /plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar

      [ERROR] urls[34] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus

      /plexus-velocity/1.1.8/plexus-velocity-1.1.8.jar

      [ERROR] urls[35] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus

      /plexus-utils/1.5.10/plexus-utils-1.5.10.jar

      [ERROR] urls[36] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/j

      etty/6.1.25/jetty-6.1.25.jar

      [ERROR] urls[37] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/s

      ervlet-api/2.5-20081211/servlet-api-2.5-20081211.jar

      [ERROR] urls[38] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/j

      etty-util/6.1.25/jetty-util-6.1.25.jar

      [ERROR] urls[39] = file:/C:/dreammachine/cache/m2/repository/commons-lang/common

      s-lang/2.5/commons-lang-2.5.jar

      [ERROR] urls[40] = file:/C:/dreammachine/cache/m2/repository/commons-io/commons-

      io/1.4/commons-io-1.4.jar

      [ERROR] Number of foreign imports: 1

      [ERROR] import: Entry[import  from realm ClassRealm[project>com.jpmorgan.ib.arch

      itecture.deia.app:cafe-parsley:1.0-SNAPSHOT, parent: ClassRealm[maven.api, paren

      t: null]]]

      [ERROR]

      [ERROR] -----------------------------------------------------

      [ERROR] -> [Help 1]

      [ERROR]

      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit

      ch.

      [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 rea

      d the following articles:

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContaine

       

      Thus it seems FlexPMD can no longer be used with Maven due to some sort of binary incompatibility issue...

       

      Does anyone know how to resolve this issue?