This is an automated email from the ASF dual-hosted git repository.

ctubbsii pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/main by this push:
     new 8508ecc058 Add .mvn/maven.config file for snapshots repo (#5716)
8508ecc058 is described below

commit 8508ecc058f372eed4f0cebf0773c656c346e759
Author: Christopher Tubbs <ctubb...@apache.org>
AuthorDate: Thu Jul 17 12:27:13 2025 -0400

    Add .mvn/maven.config file for snapshots repo (#5716)
    
    Add .mvn/maven.config file for local maven configuration that activates
    the use-apache-snapshots profile from the Apache parent POM, so that we
    can resolve the accumulo-access-1.0.0-SNAPSHOT dependency during
    development without developers needing to set up any extra local
    configuration.
    
    This should be removed when the snapshot repository is no longer needed
    to resolve SNAPSHOT dependencies.
    
    This is related to #5515
---
 .github/workflows/maven-full-its.yaml  | 4 ++--
 .github/workflows/maven-on-demand.yaml | 2 +-
 .github/workflows/maven.yaml           | 4 ++--
 .mvn/maven.config                      | 3 +++
 README.md                              | 4 ----
 5 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/maven-full-its.yaml 
b/.github/workflows/maven-full-its.yaml
index 433b3e4372..4d7145d368 100644
--- a/.github/workflows/maven-full-its.yaml
+++ b/.github/workflows/maven-full-its.yaml
@@ -60,7 +60,7 @@ jobs:
       timeout-minutes: 20
       run: mvn -B -V -e -ntp "-Dstyle.color=always" clean package 
dependency:resolve -DskipTests -DskipFormat -DverifyFormat
       env:
-        MAVEN_OPTS: -Djansi.force=true -Dapache.snapshots=true
+        MAVEN_OPTS: -Djansi.force=true
   creatematrix:
     needs: fastbuild
     timeout-minutes: 5
@@ -110,7 +110,7 @@ jobs:
       timeout-minutes: 60
       run: mvn -B -V -e -ntp "-Dstyle.color=always" verify -PskipQA 
-DskipTests=false -DskipITs=false -Dtest=nomatchingtest -Dit.test="${{ 
matrix.profile.its }}"
       env:
-        MAVEN_OPTS: -Djansi.force=true -Dapache.snapshots=true
+        MAVEN_OPTS: -Djansi.force=true
     - name: Upload unit test results
       if: ${{ failure() }}
       uses: actions/upload-artifact@v4
diff --git a/.github/workflows/maven-on-demand.yaml 
b/.github/workflows/maven-on-demand.yaml
index df4d7a8d3e..244cacc88c 100644
--- a/.github/workflows/maven-on-demand.yaml
+++ b/.github/workflows/maven-on-demand.yaml
@@ -92,7 +92,7 @@ jobs:
       timeout-minutes: 345
       run: mvn -B -V -e -ntp "-Dstyle.color=always" ${{ 
github.event.inputs.mvnOpts }} ${{ github.event.inputs.goals }} ${{ 
github.event.inputs.utOpts }} ${{ github.event.inputs.itOpts }} ${{ 
github.event.inputs.addOpts }}
       env:
-        MAVEN_OPTS: -Djansi.force=true -Dapache.snapshots=true
+        MAVEN_OPTS: -Djansi.force=true
     - name: Upload unit test results
       if: ${{ failure() }}
       uses: actions/upload-artifact@v4
diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml
index 3d3aa93b2e..a2e319ccb9 100644
--- a/.github/workflows/maven.yaml
+++ b/.github/workflows/maven.yaml
@@ -58,7 +58,7 @@ jobs:
       timeout-minutes: 20
       run: mvn -B -V -e -ntp "-Dstyle.color=always" clean package 
dependency:resolve -DskipTests -DskipFormat -DverifyFormat
       env:
-        MAVEN_OPTS: -Djansi.force=true -Dapache.snapshots=true
+        MAVEN_OPTS: -Djansi.force=true
   # more complete builds with tests
   mvn:
     needs: fastbuild
@@ -98,7 +98,7 @@ jobs:
       timeout-minutes: 60
       run: mvn -B -V -e -ntp "-Dstyle.color=always" -DskipFormat ${{ 
matrix.profile.args }}
       env:
-        MAVEN_OPTS: -Djansi.force=true -Dapache.snapshots=true
+        MAVEN_OPTS: -Djansi.force=true
     - name: Upload unit test results
       if: ${{ failure() }}
       uses: actions/upload-artifact@v4
diff --git a/.mvn/maven.config b/.mvn/maven.config
new file mode 100644
index 0000000000..077ea5af03
--- /dev/null
+++ b/.mvn/maven.config
@@ -0,0 +1,3 @@
+# Remove this file when the snapshot repository is no longer needed to resolve 
SNAPSHOT dependencies
+-P
+use-apache-snapshots
diff --git a/README.md b/README.md
index 0d0713f6e6..fd30b18977 100644
--- a/README.md
+++ b/README.md
@@ -49,10 +49,6 @@ waiting for the tests to run.
 
 This command produces `assemble/target/accumulo-<version>-bin.tar.gz`
 
-If building a non-release version of Accumulo then you may need to add
-`-Dapache.snapshots=true` to the MAVEN_OPTS environment variable so that
-Maven can resolve snapshot dependencies.
-
 ## Contributing
 
 Contributions are welcome to all Apache Accumulo repositories.

Reply via email to