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

Ads
 

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

Ads









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
How to add the servlet api to my pom.xml?
Example code of reading file line by line in Java with Apache Commons IO library
Apache commons beanutils maven dependency
Maven dependency for Apache Commons
How to add mod_deflate to apache without recompiling
Apache Commons ioutils maven dependency
How to Configure pom.xml file in Maven ?
Maven dependency for apache commons lang
apache commons fileutils maven dependency
apache commons fileutils maven dependency
apache commons fileutils maven dependency
Version of commons-io>commons-io dependency
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
ModuleNotFoundError: No module named 'apache-beam-io-extras'
ModuleNotFoundError: No module named 'apache-beam-io-extras'
ModuleNotFoundError: No module named 'filee'
ModuleNotFoundError: No module named 'filem'
ModuleNotFoundError: No module named 'filez'

Ads