无法使用使用 Jenkins 配置的 Maven 构建 Maven 项目
Not able to build maven project using Maven configured with Jenkins
在工作区 C:\Users78722.jenkins\jobs\TempExp\workspace
中构建
> C:\Program Files (x86)\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> C:\Program Files (x86)\Git\bin\git.exe config remote.origin.url
Fetching upstream changes from
> C:\Program Files (x86)\Git\bin\git.exe --version # timeout=10
using .gitcredentials to set credentials
> C:\Program Files (x86)\Git\bin\git.exe config --local credential.helper store --file=\"C:\tomcat7\temp\git781129730469989565.credentials\" # timeout=10
Setting http proxy: internet.proxy.fedex.com:3128
> C:\Program Files (x86)\Git\bin\git.exe -c core.askpass=true fetch --tags --progress https://github.com/sharath502/MavenDemo.git +refs/heads/*:refs/remotes/origin/*
> C:\Program Files (x86)\Git\bin\git.exe config --local --remove-section credential # timeout=10
> C:\Program Files (x86)\Git\bin\git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
> C:\Program Files (x86)\Git\bin\git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
Checking out Revision acc2095cad14f15049ddb2c807a9200c530a0ed5 (refs/remotes/origin/master)
> C:\Program Files (x86)\Git\bin\git.exe config core.sparsecheckout # timeout=10
> C:\Program Files (x86)\Git\bin\git.exe checkout -f acc2095cad14f15049ddb2c807a9200c530a0ed5
> C:\Program Files (x86)\Git\bin\git.exe rev-list acc2095cad14f15049ddb2c807a9200c530a0ed5 # timeout=10
FATAL: Couldn’t find any executable in C:\maven
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE
我已经在我的本地机器上安装了 maven,并且 maven --version 命令运行良好。
您是否在全局设置中声明了您的 Maven 安装?
如果没有,请添加您的 Maven 安装 ("My Maven install" --> C:\Maven).
接下来,请更新您的 Maven 项目和 select 相关的 Maven 安装。
在工作区 C:\Users78722.jenkins\jobs\TempExp\workspace
中构建 > C:\Program Files (x86)\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> C:\Program Files (x86)\Git\bin\git.exe config remote.origin.url
Fetching upstream changes from
> C:\Program Files (x86)\Git\bin\git.exe --version # timeout=10
using .gitcredentials to set credentials
> C:\Program Files (x86)\Git\bin\git.exe config --local credential.helper store --file=\"C:\tomcat7\temp\git781129730469989565.credentials\" # timeout=10
Setting http proxy: internet.proxy.fedex.com:3128
> C:\Program Files (x86)\Git\bin\git.exe -c core.askpass=true fetch --tags --progress https://github.com/sharath502/MavenDemo.git +refs/heads/*:refs/remotes/origin/*
> C:\Program Files (x86)\Git\bin\git.exe config --local --remove-section credential # timeout=10
> C:\Program Files (x86)\Git\bin\git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
> C:\Program Files (x86)\Git\bin\git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
Checking out Revision acc2095cad14f15049ddb2c807a9200c530a0ed5 (refs/remotes/origin/master)
> C:\Program Files (x86)\Git\bin\git.exe config core.sparsecheckout # timeout=10
> C:\Program Files (x86)\Git\bin\git.exe checkout -f acc2095cad14f15049ddb2c807a9200c530a0ed5
> C:\Program Files (x86)\Git\bin\git.exe rev-list acc2095cad14f15049ddb2c807a9200c530a0ed5 # timeout=10
FATAL: Couldn’t find any executable in C:\maven
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE
我已经在我的本地机器上安装了 maven,并且 maven --version 命令运行良好。
您是否在全局设置中声明了您的 Maven 安装?
如果没有,请添加您的 Maven 安装 ("My Maven install" --> C:\Maven).
接下来,请更新您的 Maven 项目和 select 相关的 Maven 安装。