首页 > 解决方案 > Bitbucket 管道 - 找不到符号:类 UniversalDetector

问题描述

我试图导入juniversalcharsetpom.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 工件。我的管道配置有问题吗?

标签: mavenbitbucket-pipelines

解决方案


我找到了解决方案。我忘了提交和推送pom.xml,这就是管道无法找到新包的原因。


推荐阅读