You are looking at documentation for an older release. Not what you want? See the current release documentation.
To set up Maven, you can follow instructions in Apache's Maven in 5 minutes for quick start or see The Apache Maven definitive guide by Sonatype for a complete reference. Since eXo Platform 4, no specific Maven settings are required to build eXo projects.
To use eXo APIs in your own projects, you have to add the eXo Platform Maven repository to your Maven settings.xml
file.
Open the settings.xml
file in $M2_HOME/conf/
or ${user.home}/.m2/
, depending on your Maven installation.
Refer to Maven settings guideline for more details.
Add a repository to this file, as stated in Maven's Guide to using Multiple Repositories.
Replace the repository URL in your settings with http://repository.exoplatform.org/public.
An example of settings.xml
:
<settings>
...
<profiles>
...
<profile>
<id>myprofile</id>
<repositories>
<repository>
<id>eXo-pub-repo</id>
<name>eXoPlatform public repo</name>
<url>http://repository.exoplatform.org/public</url>
</repository>
</repositories>
</profile>
...
</profiles>
<activeProfiles>
<activeProfile>myprofile</activeProfile>
</activeProfiles>
...
</settings>