[英]Permission denied for Maven wrapper in CircleCI build
I was following a tutorial to setup CI pipeline for my GitHub repository with CircleCI.我正在按照教程使用 CircleCI 为我的 GitHub 存储库设置 CI 管道。 This is my
config.yml
file:这是我的
config.yml
文件:
version: 2 # use CircleCI 2.0
jobs:
build:
docker:
- image: circleci/openjdk:8-jdk
steps:
- checkout
- run: chmod +x mvnw ./mvnw clean install
Unfortunately, I am getting this error:不幸的是,我收到此错误:
Error fetching your jobs
获取职位时出错
#./bin/bash -eo pipefail:/mvnw clean install /bin/bash.
#./bin/bash -eo pipefail:/mvnw clean install /bin/bash. :/mvnw: Permission denied
:/mvnw:权限被拒绝
Exited with code exit status 126 CircleCI received exit code 126
以代码退出状态 126 退出 CircleCI 收到退出代码 126
Previously was using this command: - run: ./mvnw clean install
but for both cases, I am getting same error.以前使用此命令:
- run: ./mvnw clean install
但是对于这两种情况,我都遇到了相同的错误。
I am a beginner in this field.我是这个领域的初学者。
I used offline build dependency and now it works我使用了离线构建依赖,现在它可以工作了
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.