library/roles/smartgears/dataminer_app: Conditionals to add/remove the snapshots and staging repositories from the maven settings.

This commit is contained in:
Andrea Dell'Amico 2016-06-30 18:27:02 +02:00
parent 7834f8bf66
commit 3670019763
2 changed files with 34 additions and 3 deletions

View File

@ -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)"

View File

@ -12,6 +12,7 @@
<profile>
<id>gcube</id>
<repositories>
{% if dataminer_maven_enable_gcube_snapshots %}
<repository>
<id>gcube-snapshots</id>
<name>gCube Snapshots</name>
@ -20,9 +21,23 @@
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>{{ dataminer_maven_enable_gcube_snapshots }}</enabled>
<enabled>true</enabled>
</snapshots>
</repository>
{% endif %}
{% if dataminer_maven_enable_gcube_staging %}
<repository>
<id>gcube-staging</id>
<name>gCube Staging</name>
<url>http://maven.research-infrastructures.eu/nexus/content/repositories/gcube-staging</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
{% endif %}
<repository>
<id>gcube-releases</id>
<name>gCube Releases</name>
@ -48,6 +63,7 @@
</repositories>
<pluginRepositories>
{% if dataminer_maven_enable_gcube_snapshots %}
<pluginRepository>
<id>gcube-snapshots</id>
<name>gCube Snapshots</name>
@ -56,9 +72,23 @@
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>{{ dataminer_maven_enable_gcube_snapshots }}</enabled>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
{% endif %}
{% if dataminer_maven_enable_gcube_staging %}
<pluginRepository>
<id>gcube-staging</id>
<name>gCube Staging</name>
<url>http://maven.research-infrastructures.eu/nexus/content/repositories/gcube-staging</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
{% endif %}
<pluginRepository>
<id>gcube-releases</id>
<name>gCube Releases</name>