Difference between revisions of "Maven installation"

From OpenKM Documentation
Jump to: navigation, search
(Created page with 'Maven is a software tool for Java project management and build automation. It is similar in functionality to the Apache Ant tool, but is based on different concepts. Maven is hos…')
 
(Installing external libraries to Maven repository)
Line 9: Line 9:
 
Learn more about Maven at http://maven.apache.org.
 
Learn more about Maven at http://maven.apache.org.
  
== Installing external libraries to Maven repository ==
+
== Register missing Maven dependencies into local repository ==
 
Although project dependencies usually at located at Maven repositories, sometimes there are missing artifacts. So, we have to provide these libraries registering them in the local Maven repository. Follow these steps to register some libraries needed by OpenKM:
 
Although project dependencies usually at located at Maven repositories, sometimes there are missing artifacts. So, we have to provide these libraries registering them in the local Maven repository. Follow these steps to register some libraries needed by OpenKM:
  

Revision as of 13:04, 26 January 2010

Maven is a software tool for Java project management and build automation. It is similar in functionality to the Apache Ant tool, but is based on different concepts. Maven is hosted by the Apache Software Foundation, where it was formerly part of the Jakarta Project.

Maven uses a construct known as a Project Object Model (POM) to describe the software project being built, its dependencies on other external modules and components, and the build order. It comes with pre-defined targets for performing certain well defined tasks such as compilation of code and its packaging.

In GNU/Linux you can add the Maven executable to the binary path editing the $HOME/.bashrc file and adding this line at the end:

export PATH=$PATH:/home/jllort/software/apache-maven-2.2.1/bin

Learn more about Maven at http://maven.apache.org.

Register missing Maven dependencies into local repository

Although project dependencies usually at located at Maven repositories, sometimes there are missing artifacts. So, we have to provide these libraries registering them in the local Maven repository. Follow these steps to register some libraries needed by OpenKM:

  • Open an operating system console.
  • Go to OpenKM project path in your local file system.
  • Drive into ext-libs and execute install.sh (Windows users simply open this file with text editor and execute the command)