繁体   English   中英

在 POM 文件中定义依赖项时需要帮助

[英]Need help in defining dependencies in POM file

当我需要从以下 url 获取 jar 文件时:

https://repo.abc.def.com/artifactory/repository-wandisco/Impala/ImpalaJDBC42/2.6.26.1031/ImpalaJDBC42-2.6.26.1031.Z68995FCBF432492D15484D04A9D2AC4

我将 pom 中的依赖定义为:

<dependencies>
  <dependency>
    <groupId>Impala</groupId>
    <artifactId>ImpalaJDBC42</artifactId>
    <version>2.6.26.1031</version>
  </dependency>
</dependencies>

但是,还有另一个 zip 文件我也需要打包,但我无法定义相同的依赖项。 请参考以下 url

https://repo.abc.def.com/artifactory/repository-wandisco/com/google/meta/com-google-123-abc-uni-3.0.3.zip

我已经尝试过但没有成功的是:对于 url https://repo.abc.def.com/artifactory/repository-wandisco/com/google/meta/com-google-123-abc-uni-3.0。 3.zip有.zip文件,

我尝试将依赖定义为

<dependencies>
  <dependency>
    <groupId>com.google.meta</groupId>
    <artifactId>com-google-123-abc-uni</artifactId>
    <version>3.0.3</version>
    <type>zip</type>
  </dependency>
</dependencies>

但是 pom 最终构建的 url 是:

https://repo.abc.def.com/artifactory/repository-wandisco/com/google/meta/com-google-123-abc-uni/3.0.3/com-google-123-abc-uni-3.0。 3.zip but it is unable to find the zip file in the immediate above url mentioned as very clearly its a wrong url pom is constructing.

请帮助如何在 pom(基于 maven 的项目)中定义其依赖项。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM