1 Reply Latest reply on Mar 23, 2020 12:46 PM by Laurent Matheo

    Error while deploying package.Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:exec (run-yarn-install) on project smartapp: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1]

    Amrendra Singh
      Share This:

      Hi All,

       

      When I am trying to deploy the package using mvn clean install -Pdeploy I am getting below mentioned error. I am not sure what I am doing wrong. I have attached my POM.xml file.

       

      C:\Project\helix_application\smartapp>mvn clean install -Pdeploy

      [INFO] Scanning for projects...

      [WARNING]

      [WARNING] Some problems were encountered while building the effective model for com.example:smartapp:bundle:1.0-SNAPSHOT

      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-clean-plugin is missing. @ line 156, column 21

      [WARNING]

      [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.

      [WARNING]

      [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.

      [WARNING]

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

      [INFO] Reactor Build Order:

      [INFO]

      [INFO] smartapp-all                                                       [pom]

      [INFO] SmartApp                                                        [bundle]

      [INFO] smartapp-package                                                   [pom]

      [INFO]

      [INFO] ----------------------< com.example:smartapp-all >----------------------

      [INFO] Building smartapp-all 1.0-SNAPSHOT                                 [1/3]

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

      [INFO]

      [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ smartapp-all ---

      [INFO]

      [INFO] --- maven-install-plugin:2.4:install (default-install) @ smartapp-all ---

      [INFO] Installing C:\Project\helix_application\smartapp\pom.xml to C:\Users\amresing\.m2\repository\com\example\smartapp-all\1.0-SNAPSHOT\smartapp-all-1.0-SNAPSHOT.pom

      [INFO]

      [INFO] ------------------------< com.example:smartapp >------------------------

      [INFO] Building SmartApp 1.0-SNAPSHOT                                     [2/3]

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

      [INFO]

      [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ smartapp ---

      [INFO] Deleting C:\Project\helix_application\smartapp\bundle\target

      [INFO]

      [INFO] --- exec-maven-plugin:1.3.2:exec (run-yarn-install) @ smartapp ---

      yarn install v1.17.3

      warning package.json: License should be a valid SPDX license expression

      info No lockfile found.

      warning com.example.smartapp@1.0.0: License should be a valid SPDX license expression

      [1/5] Validating package.json...

      warning com.example.smartapp@1.0.0: License should be a valid SPDX license expression

      error com.example.smartapp@1.0.0: The engine "node" is incompatible with this module. Expected version "=10.16.0". Got "12.15.0"

      error Found incompatible module.

      info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

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

      [INFO] Reactor Summary for smartapp-all 1.0-SNAPSHOT:

      [INFO]

      [INFO] smartapp-all ....................................... SUCCESS [  0.350 s]

      [INFO] SmartApp ........................................... FAILURE [  1.389 s]

      [INFO] smartapp-package ................................... SKIPPED

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

      [INFO] BUILD FAILURE

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

      [INFO] Total time:  3.011 s

      [INFO] Finished at: 2020-02-17T20:26:36+08:00

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

      [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:exec (run-yarn-install) on project smartapp: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [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/MojoExecutionException

      [ERROR]

      [ERROR] After correcting the problems, you can resume the build with the command

      [ERROR]   mvn <args> -rf :smartapp