0 Replies Latest reply on Mar 12, 2019 4:57 AM by opheliagame

    Wildfly swarm plugin, error encountered while building a project

    opheliagame

      I have been trying to package a project that contains org.wildfly.swarm plugin as a dependency and I am getting an error while executing the goal org.wildfly.swarm:wildfly-swarm-plugin:2018.1.0:package

      Execution default of
      goal org.wildfly.swarm:wildfly-swarm-plugin:2018.1.0:package failed: An API incompatibility was encountered while executing org.wildfly.swarm:wildfl
      y-swarm-plugin:2018.1.0:package: java.lang.AbstractMethodError: null                                                                                
      [ERROR] -----------------------------------------------------
      [ERROR] realm =    plugin>org.wildfly.swarm:wildfly-swarm-plugin:2018.1.0
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/home/anushka/.m2/repository/org/wildfly/swarm/wildfly-swarm-plugin/2018.1.0/wildfly-swarm-plugin-2018.1.0.jar
      [ERROR] urls[1] = file:/home/anushka/.m2/repository/org/wildfly/swarm/fraction-metadata/2018.1.0/fraction-metadata-2018.1.0.jar
      [ERROR] urls[2] = file:/home/anushka/.m2/repository/org/wildfly/swarm/meta-spi/2018.1.0/meta-spi-2018.1.0.jar
      [ERROR] urls[3] = file:/home/anushka/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-impl-javaee/2.0.0/shrinkwrap-descriptors-
      impl-javaee-2.0.0.jar                                                                                                                               
      [ERROR] urls[4] = file:/home/anushka/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-impl-base/2.0.0/shrinkwrap-descriptors-im
      pl-base-2.0.0.jar                                                                                                                                   
      [ERROR] urls[5] = file:/home/anushka/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-spi/2.0.0/shrinkwrap-descriptors-spi-2.0.
      0.jar                                                                                                                                               
      [ERROR] urls[6] = file:/home/anushka/.m2/repository/org/ow2/asm/asm/6.0/asm-6.0.jar
      [ERROR] urls[7] = file:/home/anushka/.m2/repository/com/eclipsesource/minimal-json/minimal-json/0.9.4/minimal-json-0.9.4.jar
      [ERROR] urls[8] = file:/home/anushka/.m2/repository/org/wildfly/swarm/tools/2018.1.0/tools-2018.1.0.jar
      [ERROR] urls[9] = file:/home/anushka/.m2/repository/org/wildfly/swarm/bootstrap/2018.1.0/bootstrap-2018.1.0.jar
      [ERROR] urls[10] = file:/home/anushka/.m2/repository/org/jboss/modules/jboss-modules/1.6.1.Final/jboss-modules-1.6.1.Final.jar
      [ERROR] urls[11] = file:/home/anushka/.m2/repository/org/yaml/snakeyaml/1.17/snakeyaml-1.17.jar
      [ERROR] urls[12] = file:/home/anushka/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-api/1.2.6/shrinkwrap-api-1.2.6.jar
      [ERROR] urls[13] = file:/home/anushka/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-spi/1.2.6/shrinkwrap-spi-1.2.6.jar
      [ERROR] urls[14] = file:/home/anushka/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-impl-base/1.2.6/shrinkwrap-impl-base-1.2.6.jar
      [ERROR] urls[15] = file:/home/anushka/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-api-jboss/2.0.0/shrinkwrap-descriptors-a
      pi-jboss-2.0.0.jar                                                                                                                                  
      [ERROR] urls[16] = file:/home/anushka/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-api-javaee/2.0.0/shrinkwrap-descriptors-
      api-javaee-2.0.0.jar                                                                                                                                
      [ERROR] urls[17] = file:/home/anushka/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-api-base/2.0.0/shrinkwrap-descriptors-ap
      i-base-2.0.0.jar                                                                                                                                    
      [ERROR] urls[18] = file:/home/anushka/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-impl-jboss/2.0.0/shrinkwrap-descriptors-
      impl-jboss-2.0.0.jar                                                                                                                                
      [ERROR] urls[19] = file:/home/anushka/.m2/repository/net/lingala/zip4j/zip4j/1.3.2/zip4j-1.3.2.jar
      [ERROR] urls[20] = file:/home/anushka/.m2/repository/org/wildfly/swarm/spi/2018.1.0/spi-2018.1.0.jar
      [ERROR] urls[21] = file:/home/anushka/.m2/repository/org/jboss/jandex/2.0.4.Final/jandex-2.0.4.Final.jar
      [ERROR] urls[22] = file:/home/anushka/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar
      [ERROR] urls[23] = file:/home/anushka/.m2/repository/org/eclipse/aether/aether-util/1.0.0.v20140518/aether-util-1.0.0.v20140518.jar
      [ERROR] Number of foreign imports: 1
      [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
      [ERROR
      [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

       

      I have tried removing the related folders from the .m2/repository directory, but that has not helped.