java apache commons-lang 3.0 在任何 Maven 存储库中都可用吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3847308/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 03:39:49  来源:igfitidea点击:

Is apache commons-lang 3.0 available in any maven repo?

javamaven-2apache-commons

提问by Bozho

commons-lang 3.0 is still beta, but can it be found in some maven repository (I couldn't)

commons-lang 3.0 仍然是 beta 版,但是可以在某些 Maven 存储库中找到它吗(我不能)

采纳答案by Wouter Coekaerts

You can use the snapshots at http://repository.apache.org/snapshots/org/apache/commons/commons-lang3/3.0-SNAPSHOT/.

您可以使用http://repository.apache.org/snapshots/org/apache/commons/commons-lang3/3.0-SNAPSHOT/ 上的快照。

Update: It's been released so it is in the central maven repositorynow.

更新:它已经发布,所以它现在在中央 maven 存储库中

回答by Greg Szpetkowski

Adding repository (POM):

添加存储库(POM):

<repositories>
    <repository>
        <id>snapshots</id>
        <url>https://repository.apache.org/content/repositories/snapshots</url>
    </repository>
</repositories>

Adding dependency:

添加依赖:

<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-lang3</artifactId>
    <version>3.0-SNAPSHOT</version>
    <type>jar</type>
    <scope>compile</scope>
</dependency>

回答by Jim Belton

Adding:

添加:

<dependency>
  <groupId>org.apache.commons</groupId>
  <artifactId>commons-lang3</artifactId>
  <version>3.1</version>
</dependency>

Caused the module to be automatically downloaded, but from http://repo.maven.apache.org, not Maven Central

导致模块自动下载,但来自http://repo.maven.apache.org,而不是 Maven Central