dkorotych / gradle-maven-exec-plugin

Gradle plugin which provides an Maven exec task
Apache License 2.0
57 stars 7 forks source link

Gradle is not picking mvn in linux environment #35

Open sathya20075 opened 3 years ago

sathya20075 commented 3 years ago

Hi

I'm using this plugin to build my gradle task from a Jenkins pipeline. But the gradle task execution gets blocked because of the below error. The environment is a SUSE linux environment and maven 3.3.6 is configured in the PATH. Its printing the maven version properly on console.

Starting process 'command 'mvn''. Working directory: /tmp Command: mvn --version

A problem occurred starting process 'command 'mvn''

A problem occurred starting process 'command 'mvn''

A problem occurred starting process 'command 'mvn'' Could not start 'mvn' Cannot run mvn - execvpe failed (ENOENT - No such file or directory)

Caused by: com.github.dkorotych.gradle.maven.ExecuteException: A problem occurred starting process 'command 'mvn'' at com.github.dkorotych.gradle.maven.MavenDescriptor.execute(MavenDescriptor.groovy:157) |   at com.github.dkorotych.gradle.maven.MavenDescriptor.generateMavenCommandBuilder(MavenDescriptor.groovy:127) |   at com.github.dkorotych.gradle.maven.MavenDescriptor$_getCommandBuilder_closure6.doCall(MavenDescriptor.groovy:56)

Appreciate your quick help on this. Thanks!