gradle-maven-exec-plugin
gradle-maven-exec-plugin copied to clipboard
Gradle is not picking mvn in linux environment
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!