【问题标题】:Bitbucket Pipelines - Cannot find symbol: class UniversalDetectorBitbucket 管道 - 找不到符号:类 UniversalDetector
【发布时间】:2018-05-10 17:24:39
【问题描述】:

我尝试在pom.xml 上导入juniversalcharset

<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 工件。我的管道配置有问题吗?

【问题讨论】:

    标签: maven bitbucket-pipelines


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2020-07-22
      • 1970-01-01
      • 2023-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-02
      • 2017-10-01
      • 2019-08-14
      相关资源
      最近更新 更多