how to add org.apache.commons.io.FilenameUtils to maven in intellij?
54,214
Solution 1
If you are asking for how to specify the dependency on Commons-IO in the pom.xml:
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.1</version>
</dependency>
Solution 2
You need to add commons-io to your dependencies.
Here you can find snippets and choose version you need.
Solution 3
Insert the above dependency in your pom.xml and update the maven project. The maven will download the required jar from the maven central repository.
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.1</version>
</dependency>
Comments
-
itro over 3 years
I should add
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 useFilenameUtils
in my code. i have already this :org.apache.commons
in maven.import org.apache.commons.io.FilenameUtils;
-
itro over 12 yearsthis one exsist in my pom.
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-parent</artifactId> <version>14</version> </dependency>
-
alhelal over 6 years
-
Xenos about 5 yearsAny reason why
groupId
isartifactId
instead oforg.apache.commons
or so?!