CircleCI 构建中 Maven 包装器的权限被拒绝
我正在按照教程使用 CircleCI 为我的 GitHub 存储库设置 CI 管道。这是我的 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
不幸的是,我收到此错误:
获取您的职位时出错
#!/bin/bash -eo pipelinefail ./mvnw clean install /bin/bash: ./mvnw: 权限被拒绝
退出,退出状态代码为 126 CircleCI 收到退出代码 126
以前使用此命令: -运行: ./mvnw clean install
但对于这两种情况,我都收到相同的错误。
我是这个领域的初学者。
I was following a tutorial to setup CI pipeline for my GitHub repository with CircleCI. This is my config.yml
file:
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: ./mvnw: Permission denied
Exited with code exit status 126 CircleCI received exit code 126
Previously was using this command: - run: ./mvnw clean install
but for both cases, I am getting same error.
I am a beginner in this field.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用了离线构建依赖项,现在它可以工作了
I used offline build dependency and now it works