3 Replies Latest reply on Jun 9, 2017 11:32 AM by gastaldi

    WildFly swarm add-on fails

    mmusgrov

      I am getting a compilation error installing the wildfly swarm addon. I have tried it on two forge distributions (3.4.0.Final and 3.6.1.Final). After starting forge I tried adding the swarm addon and after about two hours the command failed with the output show below.

      The problem is that building wildfly-swarm 2017.7.0-SNAPSHOT produces a compilation error. I manually git cloned that swarm repo and successfully built it using Apache Maven 3.3.9 and Java(TM) SE Runtime Environment (build 1.8.0_91-b14) so the problem is unlikely to be due to swarm itself. Any ideas would be appreciated.

       

      I would also like to know if the time from issuing the addon install command and the start of the compilation of swarm is expected to take two hours or is that a separate issue?

       

      To quit the shell, type 'exit'.

       

       

      [tmp]$ addon-install-from-git --url https://github.com/forge/wildfly-swarm-addon

      ***INFO*** Installing Addon from Git [1/4] ...

      ***INFO*** Installing Addon from Git:Cloning repository in /tmp/tmpdir7686227485786039360 [1/4] ...

      ***INFO*** Installing Addon from Git:Installing project into local repository [2/4] ...

      [INFO] Scanning for projects...

      [INFO] Inspecting build with total of 1 modules...

      [INFO] Installing Nexus Staging features:

      [INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin

      [INFO]                                                                        

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

      [INFO] Building wildfly-swarm 2017.7.0-SNAPSHOT

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

      [INFO]

      [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ wildfly-swarm ---

      [INFO]

      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ wildfly-swarm ---

      [INFO]

      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ wildfly-swarm ---

      [INFO]

      [INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ wildfly-swarm ---

      [INFO] Executing: /bin/sh -c cd '/tmp/tmpdir7686227485786039360' && 'git' 'rev-parse' '--verify' 'HEAD'

      [INFO] Working directory: /tmp/tmpdir7686227485786039360

      [INFO] Storing buildNumber: 3a968e868deab7cb900e837321c6c7af83d3bdc5 at timestamp: 1496940800656

      [INFO] Storing buildScmBranch: master

      [INFO]

      [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ wildfly-swarm ---

      [INFO] Using 'UTF-8' encoding to copy filtered resources.

      [INFO] Copying 1 resource

      [INFO]

      [INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ wildfly-swarm ---

      [INFO] Changes detected - recompiling the module!

      [INFO] Compiling 14 source files to /tmp/tmpdir7686227485786039360/target/classes

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

      [SEVERE] COMPILATION ERROR :

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

      [SEVERE] /tmp/tmpdir7686227485786039360/src/main/java/org/jboss/forge/addon/swarm/ui/DetectFractionsCommand.java:[110,19] cannot find symbol

        symbol:   method as(java.lang.Class<org.jboss.forge.addon.resource.FileResource>)

        location: interface org.jboss.forge.addon.resource.Resource<capture#1 of ?>

      [INFO] 1 error

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

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

      [INFO] BUILD FAILURE

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

      [INFO] Total time: 3.116 s

      [INFO] Finished at: 2017-06-08T17:53:22+01:00

      [INFO] Final Memory: 342M/1155M

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

      [SEVERE] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:compile (default-compile) on project wildfly-swarm: Compilation failure

      [SEVERE] /tmp/tmpdir7686227485786039360/src/main/java/org/jboss/forge/addon/swarm/ui/DetectFractionsCommand.java:[110,19] cannot find symbol

      [SEVERE] symbol:   method as(java.lang.Class<org.jboss.forge.addon.resource.FileResource>)

      [SEVERE] location: interface org.jboss.forge.addon.resource.Resource<capture#1 of ?>

      [SEVERE] -> [Help 1]

      [SEVERE]

      [SEVERE] To see the full stack trace of the errors, re-run Maven with the -e switch.

      [SEVERE] Re-run Maven using the -X switch to enable full debug logging.

      [SEVERE]

      [SEVERE] For more information about the errors and possible solutions, please read the following articles:

      [SEVERE] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

      ***ERROR*** Error while executing 'addon-install-from-git'

      ***INFO*** (type "export VERBOSE=true" to enable stack traces)

      ***ERROR*** Unable to execute project build

      [tmp]$