Difference between revisions of "Maven Configuration"
From Gcube Wiki
Manuele.simi (Talk | contribs) (→Maven Parent) |
Manuele.simi (Talk | contribs) (→Maven Parent) |
||
Line 13: | Line 13: | ||
It is not meant to be distributed because it is only referenced from other projects. Therefore, before working with a gCube project, the parent POM must be installed in the local Maven repository as follows: | It is not meant to be distributed because it is only referenced from other projects. Therefore, before working with a gCube project, the parent POM must be installed in the local Maven repository as follows: | ||
<source lang="bash"> | <source lang="bash"> | ||
− | > git clone | + | > git clone --depth 1 https://code-repo.d4science.org/gCubeSystem/maven-parent.git |
> cd maven-parent | > cd maven-parent | ||
> mvn install | > mvn install |
Revision as of 16:08, 8 July 2019
Maven Settings
1. Download the following settings file
2. Copy the file to ${user.home}/.m2/settings.xml
3. Replace user and password placeholders in the file with their actual values.
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.
It is not meant to be distributed because it is only referenced from other projects. Therefore, before working with a gCube project, the parent POM must be installed in the local Maven repository as follows:
> git clone --depth 1 https://code-repo.d4science.org/gCubeSystem/maven-parent.git > cd maven-parent > mvn install
Back to the CI guide.