org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (make-assembly) on project zkui: Failed to create assembly: Failed to retrieve OS environment variables. Reason: Cannot run program "env": error=2, No such file or directory

GitHub | rajeshiv | 4 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    Change the <configuration> in pom.xml to use xml parameters instead of the <arguments> list.
  2. 0
    samebug tip
    First of all, check if you set the environment variables correctly. If that doesn't solve it, there might be a problem with your Java installation. Try reinstalling it, if it doesn't solve, check this thread in stack overflow: https://goo.gl/iXOmvx
  3. 0

    Maven - Users - Maven Release Plugin and Java 8 issue

    nabble.com | 1 year ago
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5:prepare (default-cli) on project xxxx: Maven execution failed, exit code: '1'  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) 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:120)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Shibboleth - Developers - Maven error: Cannot find ArtifactResolver with hint: project-cache-aware

    nabble.com | 1 year ago
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute >>> goal org.apache.maven.plugins:maven-assembly-plugin:2.2.1:attached >>> (make-assembly) on project scamall: Failed to create assembly: Error >>> creating assembly archive bin: You must set at least one file. at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) 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:84) at >>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at >>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at >>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
  6. 0
    samebug tip
    Try to use this command to set the timeout to a larger value mvn jetty:run -Dorg.eclipse.jetty.annotations.maxWait=120
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.maven.plugin.MojoExecutionException

    Failed to create assembly: Failed to retrieve OS environment variables. Reason: Cannot run program "env": error=2, No such file or directory

    at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute()
  2. org.apache.maven
    AbstractAssemblyMojo.execute
    1. org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:433)
    1 frame
  3. Maven Plugin
    DefaultBuildPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    1 frame
  4. Maven Core
    MojoExecutor.execute
    1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    1 frame