How to solve org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
這篇介紹How to solve org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1).
會有錯誤的pom.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>3.0.0</version> <executions> <execution> <phase>process-resources</phase> <goals> <goal>exec</goal> </goals> </execution> </executions> <configuration> <executable>java</executable> <arguments> <argument>${jenkins.deploy.branch}</argument> </arguments> <environmentVariables> <LANG>en_US</LANG> </environmentVariables> </configuration> </plugin>
|
會有錯誤的pom.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>3.0.0</version> <configuration> <executable>java</executable> <arguments> <argument>${jenkins.deploy.branch}</argument> </arguments> <environmentVariables> <LANG>en_US</LANG> </environmentVariables> </configuration> </plugin>
memo:將<executions></executions>移除
|