3 Replies Latest reply on May 27, 2016 3:26 AM by Ben Gao

    wildfly 10 source compile ERROR

    Ben Gao Novice

      I compile wildfly 10,but  build error!

      error:

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

      [INFO] Building WildFly: Build 10.0.0.Final

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

      [INFO]

      [INFO] --- maven-enforcer-plugin:1.4:enforce (ban-bad-dependencies) @ wildfly-build ---

      [INFO]

      [INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-java-version) @ wildfly-build ---

      [INFO]

      [INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven-version) @ wildfly-build ---

      [INFO]

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

      [INFO] Executing: /bin/sh -c cd /home/dd_mgmas/ylgao/wildfly-10.0.0.Final/build && git rev-parse --verify HEAD

      [INFO] Working directory: /home/dd_mgmas/ylgao/wildfly-10.0.0.Final/build

      [INFO] Storing buildNumber: UNKNOWN at timestamp: 1464234820499

      [WARNING] Cannot get the branch information from the git repository:

      Detecting the current branch failed: /bin/sh: git: command not found

       

       

      [INFO] Executing: /bin/sh -c cd /home/dd_mgmas/ylgao/wildfly-10.0.0.Final/build && git rev-parse --verify HEAD

      [INFO] Working directory: /home/dd_mgmas/ylgao/wildfly-10.0.0.Final/build

      [INFO] Storing buildScmBranch: UNKNOWN_BRANCH

      [INFO]

      [INFO] --- maven-checkstyle-plugin:2.15:checkstyle (check-style) @ wildfly-build ---

      [INFO]

      [INFO] --- wildfly-server-provisioning-maven-plugin:1.1.0.Final:build (server-provisioning) @ wildfly-build ---

      groups = org.jboss.as org.wildfly

      groups = [org.wildfly, org.jboss.as]

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

      [INFO] Reactor Summary:

      [INFO]

      [INFO] WildFly: Build ..................................... FAILURE [ 36.313 s]

      [INFO] WildFly: Distribution .............................. SKIPPED

      [INFO] WildFly: JSF Multi-JSF installer ................... SKIPPED

      [INFO] WildFly: Exported Java EE Specification APIs ....... SKIPPED

      [INFO] WildFly: Validation Tests for Exported Java EE Specification APIs SKIPPED

      [INFO] WildFly: Servlet Build ............................. SKIPPED

      [INFO] WildFly: Servlet Distribution ...................... SKIPPED

      [INFO] WildFly: Web Services Tests Integration Subsystem .. SKIPPED

      [INFO] WildFly Test Suite: Shared ......................... SKIPPED

      [INFO] WildFly Test Suite: Aggregator ..................... SKIPPED

      [INFO] WildFly Test Suite: Integration .................... SKIPPED

      [INFO] WildFly Test Suite: Integration - Web .............. SKIPPED

      [INFO] WildFly Test Suite: Integration - Smoke ............ SKIPPED

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

      [INFO] BUILD FAILURE

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

      [INFO] Total time: 43.388 s

      [INFO] Finished at: 2016-05-26T11:53:41+08:00

      [INFO] Final Memory: 221M/2235M

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

      [ERROR] Failed to execute goal org.wildfly.build:wildfly-server-provisioning-maven-plugin:1.1.0.Final:build (server-provisioning) on project wildfly-build: Execution server-provisioning of goal org.wildfly.build:wildfly-server-provisioning-maven-plugin:1.1.0.Final:build failed: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file -> [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/PluginExecutionException

       

      then run add -X

       

      [ERROR] Failed to execute goal org.wildfly.build:wildfly-server-provisioning-maven-plugin:1.1.0.Final:build (server-provisioning) on project wildfly-build: Execution server-provisioning of goal org.wildfly.build:wildfly-server-provisioning-maven-plugin:1.1.0.Final:build failed: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file -> [Help 1]

      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.wildfly.build:wildfly-server-provisioning-maven-plugin:1.1.0.Final:build (server-provisioning) on project wildfly-build: Execution server-provisioning of goal org.wildfly.build:wildfly-server-provisioning-maven-plugin:1.1.0.Final:build failed: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)

              at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)

              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)

              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)

              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)

              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)

              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)

              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)

              at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)

              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)

              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

      Caused by: org.apache.maven.plugin.PluginExecutionException: Execution server-provisioning of goal org.wildfly.build:wildfly-server-provisioning-maven-plugin:1.1.0.Final:build failed: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file

              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)

              ... 20 more

      Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file

              at org.wildfly.build.plugin.ServerProvisioningMojo.execute(ServerProvisioningMojo.java:124)

              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)

              ... 21 more

      Caused by: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file

              at org.wildfly.build.provisioning.ServerProvisioner.build(ServerProvisioner.java:128)

              at org.wildfly.build.provisioning.ServerProvisioner.build(ServerProvisioner.java:145)

              at org.wildfly.build.plugin.ServerProvisioningMojo.execute(ServerProvisioningMojo.java:122)

              ... 22 more

      Caused by: java.util.zip.ZipException: error in opening zip file

              at java.util.zip.ZipFile.open(Native Method)

              at java.util.zip.ZipFile.<init>(ZipFile.java:219)

              at java.util.zip.ZipFile.<init>(ZipFile.java:149)

              at java.util.zip.ZipFile.<init>(ZipFile.java:163)

              at org.wildfly.build.util.ZipFileSubsystemInputStreamSources.addAllSubsystemFileSourcesFromZipFile(ZipFileSubsystemInputStreamSources.java:67)

              at org.wildfly.build.provisioning.ServerProvisioner.processModules(ServerProvisioner.java:230)

              at org.wildfly.build.provisioning.ServerProvisioner.build(ServerProvisioner.java:118)

              ... 24 more

      [ERROR]

      [ERROR]

        • 1. Re: wildfly 10 source compile ERROR
          Wolfgang Mayer Master

          You should make sur that git is installed (Git - Downloads)

          • 2. Re: wildfly 10 source compile ERROR
            Ben Gao Novice

            the compile environment whether to be able to access the Internet

            • 3. Re: wildfly 10 source compile ERROR
              Ben Gao Novice

              I fix this,no need git. My environment is not installed Git。

              I find my error is at org.wildfly.build.util.ZipFileSubsystemInputStreamSources.addAllSubsystemFileSourcesFromZipFile(ZipFileSubsystemInputStreamSources.java:67)

              so I git the wildfly-server-provisioning ,find ZipFileSubsystemInputStreamSources class and addAllSubsystemFileSourcesFromZipFile function,then add log:


              public void addAllSubsystemFileSourcesFromZipFile(File file) throws IOException {

                  System.out.println("file=================="+file+"  file name="+file.getName());

                      try (ZipFile zip = new ZipFile(file)) {

                          // extract subsystem template and schema, if present

                          if (zip.getEntry("subsystem-templates") != null) {

                              Enumeration<? extends ZipEntry> entries = zip.entries();

                              while (entries.hasMoreElements()) {

                                  ZipEntry entry = entries.nextElement();

                                  if (!entry.isDirectory()) {

                                      String entryName = entry.getName();

                                      if (entryName.startsWith("subsystem-templates/")) {

                                          addSubsystemFileSource(entryName.substring("subsystem-templates/".length()), file, entry);

                                      }

                                  }

                              }

                          }

                      }

                  }

              then ,replace repository this jar。

               

              the log:

               

                  file==================/home/dd_mgmas/ylgao/.m2/repository/org/wildfly/wildfly-jsf/10.0.0.Final/wildfly-jsf-10.0.0.Final.jar  file name=wildfly-jsf-10.0.0.Final.jar

                  file==================/home/dd_mgmas/ylgao/.m2/repository/org/jboss/hal/release-stream/2.8.19.Final/release-stream-2.8.19.Final-resources.jar  file name=release-stream-2.8.19.Final-resources.jar

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

                  [INFO] BUILD FAILURE

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

                  [INFO] Total time: 36.959 s

                  [INFO] Finished at: 2016-05-27T14:25:16+08:00

                  [INFO] Final Memory: 88M/2881M

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

                  [ERROR] Failed to execute goal org.wildfly.build:wildfly-server-provisioning-maven-plugin:1.1.0.Final:build (server-provisioning) on project wildfly-build: Execution server-provisioning of goal org.wildfly.build:wildfly-server-provisioning-maven-plugin:1.1.0.Final:build failed: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file -> [Help 1]

                  

                

              so release-stream-2.8.19.Final-resources.jar  is not ok. I find my repository this jar only 1 K. I repace this jar,then mvn is ok .