Organize repos for dependency resolution and deployment across the new profiles.

This commit is contained in:
Manuele Simi 2019-05-18 15:09:00 -04:00
parent 9d0205f8e7
commit a8ef41d122
1 changed files with 46 additions and 25 deletions

71
pom.xml
View File

@ -56,69 +56,90 @@
<profile>
<id>gcube-developer</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>j!enkins-releases</name>
</property>
<property>
<name>!jenkins-snapshots</name>
<name>!jenkins-releases</name>
</property>
</activation>
<!-- gCube repositories -->
<!-- Repositories for dependency resolution -->
<repositories>
<repository>
<id>gcube-snapshots</id>
<name>gCube Snapshots</name>
<url>${repository.snapshots.readwrite}</url>
</repository>
<repository>
<id>gcube-releases</id>
<name>gCube Releases</name>
<url>${repository.releases.readonly}</url>
</repository>
<repository>
<id>gcube-externals</id>
<name>gCube Externals</name>
<url>${repository.externals.readonly}</url>
</repository>
</repositories>
<!-- Repositories for deployments -->
<distributionManagement>
<snapshotRepository>
<id>gcube-snapshots</id>
<name>gCube Snapshots</name>
<url>${repository.snapshots.readwrite}</url>
</snapshotRepository>
<repository>
<id>gcube-releases</id>
<name>gCube Releases</name>
<url>${repository.releases.readonly}</url>
</repository>
</distributionManagement>
</profile>
<profile>
<id>jenkins-snapshots</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>jenkins-snapshots</name>
<value>true</value>
</property>
<property>
<name>!jenkins-releases</name>
</property>
</activation>
<!-- gCube repositories -->
<distributionManagement>
<snapshotRepository>
<id>jenkins-snapshots</id>
<name>Jenkins Snapshots</name>
<url>${repository.snapshots.local.readwrite}</url>
</snapshotRepository>
<!-- Repositories for dependency resolution -->
<repositories>
<repository>
<id>gcube-releases</id>
<name>gCube Releases</name>
<url>${repository.releases.readonly}</url>
</repository>
</repositories>
<!-- Repositories for deployments -->
<distributionManagement>
<repository>
<id>gcube-snapshots</id>
<name>gCube Snapshots</name>
<url>${repository.snapshots.readwrite}</url>
</repository>
</distributionManagement>
</profile>
<profile>
<id>jenkins-releases</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>jenkins-releases</name>
<value>true</value>
</property>
<property>
<name>!jenkins-snapshots</name>
</property>
</activation>
<!-- gCube repositories -->
<!-- Repositories for dependency resolution -->
<repositories>
<repository>
<id>gcube-releases</id>
<name>gCube Releases</name>
<url>${repository.releases.readonly}</url>
</repository>
</repositories>
<!-- Repositories for deployments -->
<distributionManagement>
<repository>
<id>gcube-releases</id>
@ -464,7 +485,7 @@
<repository.snapshots.readwrite>http://maven.research-infrastructures.eu:8081/nexus/content/repositories/gcube-snapshots</repository.snapshots.readwrite>
<repository.releases.readonly>http://maven.research-infrastructures.eu/nexus/content/repositories/gcube-releases</repository.releases.readonly>
<repository.releases.readwrite>http://maven.research-infrastructures.eu:8081/nexus/content/repositories/gcube-releases</repository.releases.readwrite>
<repository.snapshots.local.readwrite></repository.snapshots.local.readwrite>
<repository.externals.readonly>http://maven.research-infrastructures.eu/nexus/content/repositories/gcube-externals</repository.externals.readonly>
<local.deploy.dir>${env.GLOBUS_LOCATION}/lib</local.deploy.dir>