首页 > 解决方案 > 我在哪里可以找到 org.apache.common 库

问题描述

我需要 org.apache.commons.math3.stat.descriptive.DescriptiveStatistics 库,这意味着我需要 org.apache.common 库。我在哪里可以找到或下载这些库?

标签: javaapacheimportpackage

解决方案


您可以从 Apache Commons Math 项目下载二进制文件:

http://commons.apache.org/proper/commons-math/

http://commons.apache.org/proper/commons-math/download_math.cgi

另一种方法是将项目转换为 Maven 并在 pom.xml 中添加 Maven 依赖项。

Maven 链接: https ://mvnrepository.com/artifact/org.apache.commons/commons-math3/3.0

<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-math3 -->
<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-math3</artifactId>
    <version>3.0</version>
</dependency>

Maven 会在存储库中为您找到它并自动下载。

您可以在https://mvnrepository.com搜索开源库。如果您在那里找到工件,您将获得作者网站和许可条款的链接。


推荐阅读