From 3670019763a06cf54b7fd7386f2dbf5dd5e53e44 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 30 Jun 2016 18:27:02 +0200 Subject: [PATCH] library/roles/smartgears/dataminer_app: Conditionals to add/remove the snapshots and staging repositories from the maven settings. --- smartgears/dataminer_app/defaults/main.yml | 1 + .../templates/maven-settings.xml.j2 | 36 +++++++++++++++++-- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/smartgears/dataminer_app/defaults/main.yml b/smartgears/dataminer_app/defaults/main.yml index af4da24..20d0ce2 100644 --- a/smartgears/dataminer_app/defaults/main.yml +++ b/smartgears/dataminer_app/defaults/main.yml @@ -9,6 +9,7 @@ dataminer_52north_webapp_file: 52n-wps-webapp-3.3.2-20150523.010021-9.war #dataminer_52north_webapp_url: 'http://build.dev.52north.org/jenkins/view/Processing/job/52n-wps_GIT-DEV_nightly_builds/lastSuccessfulBuild/org.n52.wps$52n-wps-webapp/artifact/org.n52.wps/52n-wps-webapp/3.3.2-20150523.010021-9/{{ dataminer_52north_webapp_file }}' dataminer_52north_webapp_url: 'http://data.d4science.org/uri-resolver/id?fileName=wps-3.3.2.war&smp-id=565d67b7e4b0eacf4a0fc5ad&contentType=application%2Fx-tika-java-web-archive' dataminer_maven_enable_gcube_snapshots: False +dataminer_maven_enable_gcube_staging: False dataminer_dataminer_jar_version: 1.2.0-SNAPSHOT #dataminer_dataminer_jar_version_range: "[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)" diff --git a/smartgears/dataminer_app/templates/maven-settings.xml.j2 b/smartgears/dataminer_app/templates/maven-settings.xml.j2 index 97d5acf..5fa8620 100644 --- a/smartgears/dataminer_app/templates/maven-settings.xml.j2 +++ b/smartgears/dataminer_app/templates/maven-settings.xml.j2 @@ -12,6 +12,7 @@ gcube + {% if dataminer_maven_enable_gcube_snapshots %} gcube-snapshots gCube Snapshots @@ -20,9 +21,23 @@ false - {{ dataminer_maven_enable_gcube_snapshots }} + true + {% endif %} + {% if dataminer_maven_enable_gcube_staging %} + + gcube-staging + gCube Staging + http://maven.research-infrastructures.eu/nexus/content/repositories/gcube-staging + + false + + + true + + + {% endif %} gcube-releases gCube Releases @@ -48,6 +63,7 @@ + {% if dataminer_maven_enable_gcube_snapshots %} gcube-snapshots gCube Snapshots @@ -56,10 +72,24 @@ false - {{ dataminer_maven_enable_gcube_snapshots }} + true - + {% endif %} + {% if dataminer_maven_enable_gcube_staging %} + + gcube-staging + gCube Staging + http://maven.research-infrastructures.eu/nexus/content/repositories/gcube-staging + + false + + + true + + + {% endif %} + gcube-releases gCube Releases http://maven.research-infrastructures.eu/nexus/content/repositories/gcube-releases