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)
 
(10 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
1. Download  the following settings file  
 
1. Download  the following settings file  
  
https://code-repo.d4science.org/gCubeSystem/Configs/src/branch/master/Maven/1.1.0/gcube-developer/settings.xml
+
https://code-repo.d4science.org/gCubeSystem/Configs/raw/branch/master/Maven/1.2.0/gcube-settings.xml
  
 
2. Copy the file to <code>${user.home}/.m2/settings.xml</code>
 
2. Copy the file to <code>${user.home}/.m2/settings.xml</code>
 +
 +
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:
 +
<source lang="bash">
 +
> git clone --depth 1 https://code-repo.d4science.org/gCubeSystem/maven-parent.git
 +
> cd maven-parent
 +
> mvn install
 +
</source>
 +
 +
''Back to the [[Continuous_Integration_procedure_(2019) | CI guide]].''
 +
 +
[[Category:Continuous_Integration]]

Latest revision as of 11:44, 22 February 2024

Maven Settings

1. Download the following settings file

https://code-repo.d4science.org/gCubeSystem/Configs/raw/branch/master/Maven/1.2.0/gcube-settings.xml

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.