maven - Bitbucket 管道 - 找不到符号:类 UniversalDetector
问题描述
我试图导入juniversalcharset
包pom.xml
<dependency>
<groupId>com.googlecode.juniversalchardet</groupId>
<artifactId>juniversalchardet</artifactId>
<version>1.0.3</version>
</dependency>
这是我的bitbucket-pipelines.yml
image: maven:3.3.3
pipelines:
default:
- step:
caches:
- maven
script:
- mvn clean install -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.insecure=true
它在我的本地机器上正确下载和构建,但在管道上它显示以下错误:
[ERROR] /opt/atlassian/pipelines/agent/build/src/main/java/package/location/GuessedEncoding.java:[18,15] cannot find symbol
symbol: class UniversalDetector
我的猜测是,在管道上构建时它找不到 maven 工件。我的管道配置有问题吗?
解决方案
我找到了解决方案。我忘了提交和推送pom.xml
,这就是管道无法找到新包的原因。
推荐阅读
- javascript - 根据样式组件中的父道具更改嵌套组件的样式?
- javascript - 在javascript中加载二进制数据资源(就像图像、音频等)?
- php - 在 PHP 中按键和按值对数组进行排序
- python-3.x - 合并熊猫数据框并创建派生列
- docker - 如何从本地 Kubernetes 实例上运行的 jenkins 映像访问 docker
- visual-studio-2017 - Visual Studio 2017 解决方案首次启动时挂起
- hibernate - 从递归休眠查询中获取字符串最小值
- python - Python命令提示符关闭后如何使打开的应用程序保持打开状态?
- sql - 名称与用户提供的名称相似
- c - 是否可以在声明为 int a[10][10] 的二维数组中放置一个字符 ( * )?