How to add Apache Commons IO in pom.xml file?

How to add Apache Commons IO in pom.xml file?

Hi,

How to add the dependency of the Apache Commons IO library in the pom.xml file in a Java project? My Project is using the maven for dependency management and compilation of the code.

Thanks

View Answers

June 5, 2015 at 1:05 AM

The Apache Commons IO library is a set of package library which is used to provide the various IO functionality in a Java based application. This library is developed and maintained by the Apache foundation a name of the library indicated. Following functionality is provided by the library:

  • Utility Library for common functionality - The Utility library of the Apache commons provides the static method for performing the common IO tasks in a Java program.

  • Classes for reading from Input stream.

  • Classes for writing to the Output stream

  • Various types of filters implementation classes

  • Many implementation of the java.util.Comparator for easing the programming tasks

  • There various implementations of java.util.Comparator for files

  • There is also a File Monitor components for handling the events of the file systems in java program

So there many uses of the Apache Commons IO library.

You can use the following code to included the library in maven based project:

<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-io</artifactId>
    <version>1.3.2</version>
</dependency>

Following code is for using it in Ivy:

<dependency org="org.apache.commons" name="commons-io" rev="1.3.2"/>

For Grape:

@Grapes(
    @Grab(group='org.apache.commons', module='commons-io', version='1.3.2')
)

For Gardle:

'org.apache.commons:commons-io:1.3.2'

For Buildr:

'org.apache.commons:commons-io:jar:1.3.2'

For SBT:

libraryDependencies += "org.apache.commons" % "commons-io" % "1.3.2"

For Leiningen:

[org.apache.commons/commons-io "1.3.2"]

Learn maven at RoseIndia.net Maven Tutorial.

Thanks









Related Tutorials/Questions & Answers:
How to add Apache Commons IO in pom.xml file?
apache commons io 2.6 maven dependency to add to pom.xml
Advertisements
apache commons io 2.6 maven dependency to add to pom.xml
apache commons io 2.6 maven
apache commons io 2.6 maven
apache commons io 2.6 maven
Maven dependency for Apache Commons IO
Apache Commons IO 2.11.0 Maven dependency
apache commons io copy file example
ModuleNotFoundError: No module named 'filee'
ModuleNotFoundError: No module named 'filem'
ModuleNotFoundError: No module named 'filez'
How to add the servlet api to my pom.xml?
ModuleNotFoundError: No module named 'filex'
ModuleNotFoundError: No module named 'filex'
Example code of reading file line by line in Java with Apache Commons IO library
org.kie.commons - kie-commons-io version 6.0.0.CR5 Maven dependency. How to use kie-commons-io version 6.0.0.CR5 in pom.xml?
org.kie.commons - kie-commons-io version 6.0.0.Beta2 Maven dependency. How to use kie-commons-io version 6.0.0.Beta2 in pom.xml?
org.commonjava.indy - indy-filer-default version 1.2.2 Maven dependency. How to use indy-filer-default version 1.2.2 in pom.xml?
org.commonjava.indy - indy-filer-default version 1.1.7 Maven dependency. How to use indy-filer-default version 1.1.7 in pom.xml?
How to add mod_deflate to apache without recompiling
Maven dependency for commons-io - commons-io version 2.9.0 is released. Learn to use commons-io version 2.9.0 in Maven based Java projects
Maven dependency for commons-io - commons-io version 2.10.0 is released. Learn to use commons-io version 2.10.0 in Maven based Java projects
Maven dependency for commons-io - commons-io version 2.8.0 is released. Learn to use commons-io version 2.8.0 in Maven based Java projects
Maven dependency for commons-io - commons-io version 2.11.0 is released. Learn to use commons-io version 2.11.0 in Maven based Java projects
Maven dependency for commons-io - commons-io version 2.7 is released. Learn to use commons-io version 2.7 in Maven based Java projects
Maven dependency for Apache Commons
Apache commons beanutils maven dependency
Apache Commons ioutils maven dependency
commons-io
Version of commons-io>commons-io dependency
Maven, Gradle, SBT, Ivy, Grape, Leiningen and Buildr Dependency for ch-commons-io version 2.3.0
Maven dependency for apache commons lang
Maven Dependency commons-io >> 1.0
Maven Dependency commons-io >> 1.3
Maven Dependency commons-io >> 0.1
Maven Dependency commons-io >> 1.1
Maven Dependency commons-io >> 1.3.1
Maven Dependency commons-io >> 1.2
Maven Dependency commons-io >> 20030203.000550
Maven Repository/Dependency: commons-io | commons-io
upload files to apache ftp server - Ajax
apache commons fileutils maven dependency
apache commons fileutils maven dependency
apache commons fileutils maven dependency
files upload to apache ftp server - Ajax
files upload to apache ftp server - Ajax
ModuleNotFoundError: No module named 'filer'
Artifacts of commons-io
Maven dependency for com.cloudhopper - ch-commons-io version 2.3.0 is released. Learn to use ch-commons-io version 2.3.0 in Maven based Java projects

Ads