Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to add org.apache.commons.io.FilenameUtils to maven in intellij?

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 use FilenameUtils in my code. i have already this : org.apache.commons in maven.

import org.apache.commons.io.FilenameUtils;
like image 346
itro Avatar asked Jan 05 '12 12:01

itro


People also ask

How do I add pom files to IntelliJ?

In the Project tool window, right-click your project and select Add Framework Support. In the dialog that opens, select Maven from the options on the left and click OK. IntelliJ IDEA adds a default POM to the project and generates the standard Maven layout in Project tool window.


1 Answers

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>
like image 117
Thilo Avatar answered Oct 02 '22 06:10

Thilo