Difference between revisions of "Maven Configuration"

From Gcube Wiki
Jump to: navigation, search
(Created page with "= Maven Settings = 1. Download the following settings file https://code-repo.d4science.org/gCubeSystem/Configs/src/branch/master/Maven/1.1.0/gcube-developer/settings.xml 2...")
 
(Maven Settings)
Line 5: Line 5:
  
 
2. Copy the file to <code>${user.home}/.m2/settings.xml</code>
 
2. Copy the file to <code>${user.home}/.m2/settings.xml</code>
 +
 +
= Maven Parent =
 +
The gCube Maven parent POM (or super POM) is used to avoid redundancies or duplicate configurations using inheritance between POM files. It helps in easy maintenance in long term.
 +
 +
Before working with a gCube project, the parent POM must be installed in the local repository as follows:
 +
<source lang="bash">
 +
> git clone https://code-repo.d4science.org/gCubeSystem/maven-parent.git
 +
> cd maven-parent
 +
> mvn install
 +
</source>

Revision as of 05:04, 22 May 2019

Maven Settings

1. Download the following settings file

https://code-repo.d4science.org/gCubeSystem/Configs/src/branch/master/Maven/1.1.0/gcube-developer/settings.xml

2. Copy the file to ${user.home}/.m2/settings.xml

Maven Parent

The gCube Maven parent POM (or super POM) is used to avoid redundancies or duplicate configurations using inheritance between POM files. It helps in easy maintenance in long term.

Before working with a gCube project, the parent POM must be installed in the local repository as follows:

 > git clone https://code-repo.d4science.org/gCubeSystem/maven-parent.git
 > cd maven-parent
 > mvn install