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 | 1 month ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd . 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

    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)
  3. 0

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

    nabble.com | 11 months 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)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    error mvn install package -DskipTests

    GitHub | 2 years ago | nekulin
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5:single (make-bundles) on project pinot-distribution: Failed to create assembly: Error creating assembly archive bin: Problem creating zip: Execution exception
  6. 0

    maven resourse pluggin error

    Stack Overflow | 3 years ago | user3879057
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources (default- resources) on project anuragropu: Error loading property file 'D:\...\src\main\environments\${env}.properties'
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