Skip to content

Commit 525245b

Browse files
committed
Add snapshot remote repo to build resolution and build.properties.default
Patch by Josh McKenzie; reviewed by Mick Semb Wever and Brandon Williams for CASSANDRA-19810
1 parent 2842c01 commit 525245b

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.build/build-resolver.xml

+13-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,19 @@
5656
<resolver:remoterepos id="all">
5757
<remoterepo id="resolver-central" url="${artifact.remoteRepository.central}"/>
5858
<remoterepo id="resolver-apache" url="${artifact.remoteRepository.apache}"/>
59-
<!-- Snapshots are not allowed, but for feature branches they may be needed, so uncomment the below to allow snapshots to work -->
60-
<!-- <remoterepo id="resolver-apache-snapshot" url="https://repository.apache.org/content/repositories/snapshots" releases="false" snapshots="true" updates="always" checksums="fail" /> -->
59+
<!-- Snapshot artifacts must not exist in nor be downloaded by any Cassandra release artifact.
60+
Please validate that all artifacts included in parent-pom-template.xml are release
61+
artifacts before committing.
62+
63+
To build with a snapshot dependency, ensure build.properties or build.properties.default
64+
contain the correct resolution for "artifact.remoteRepository.apacheSnapshot" and uncomment
65+
the following line.
66+
67+
You may also need to add an exclusion for "resolver-apache-snapshot" to your mirrors in ~/.m2/settings.xml
68+
or ~/.ant/settings.xml (maven ant resolver supersedes) as mirrors will, by default, catch and override
69+
all dependency resolution regardless of it being a -SNAPSHOT lib or not.
70+
-->
71+
<!-- <remoterepo id="resolver-apache-snapshot" url="${artifact.remoteRepository.apacheSnapshot}" releases="false" snapshots="true" updates="always" checksums="fail" /> -->
6172
</resolver:remoterepos>
6273

6374
<macrodef name="resolve">

build.properties.default

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
#
2121
artifact.remoteRepository.central: https://repo1.maven.org/maven2
2222
artifact.remoteRepository.apache: https://repo.maven.apache.org/maven2
23-
23+
artifact.remoteRepository.apacheSnapshot: https://repository.apache.org/content/repositories/snapshots

0 commit comments

Comments
 (0)