[英]how to add org.apache.commons.io.FilenameUtils to maven in intellij?
I should add org.apache.commons.io.FilenameUtils;
我应该添加org.apache.commons.io.FilenameUtils;
to intellij 10. how can i add it to maven and use it in the code.I need to be able to use FilenameUtils
in my code. 到intellij 10.如何将它添加到maven并在代码中使用它。我需要能够在我的代码中使用FilenameUtils
。 i have already this : org.apache.commons
in maven. 我已经有了这个:maven中的org.apache.commons
。
import org.apache.commons.io.FilenameUtils;
If you are asking for how to specify the dependency on Commons-IO in the pom.xml: 如果您要求如何在pom.xml中指定对Commons-IO的依赖性:
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.1</version>
</dependency>
Insert the above dependency in your pom.xml and update the maven project. 在pom.xml中插入上面的依赖项并更新maven项目。 The maven will download the required jar from the maven central repository. maven将从maven中央存储库下载所需的jar。
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.1</version>
</dependency>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.