From 175ca317ffafb79175a72a02cf84e3f4adb1aec7 Mon Sep 17 00:00:00 2001 From: Filipe Roque Date: Tue, 10 Jan 2023 14:24:25 +0000 Subject: [PATCH 1/2] Fixes offline instructions due to removal of incrementals.url property This is due to Maven 4 support [1]. Building plugins with Maven 4 (alpha) fails with: > 'profiles.profile[consume-incrementals].repositories.repository.[incrementals].url' contains an expression but should be a constant. @ org.jenkins-ci.plugins:plugin:4.53 This has already been reported to Jenkins [2] and Maven [3] and was declared as an intentional change. [1] https://github.com/jenkinsci/plugin-pom/pull/666 [2] https://issues.jenkins.io/browse/JENKINS-67878 [3] https://issues.apache.org/jira/browse/MNG-7420 --- README.md | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index f965be9..8a5dab1 100644 --- a/README.md +++ b/README.md @@ -298,25 +298,37 @@ docker run --rm --name nexus -p 8081:8081 -v nexus-data:/nexus-data sonatype/nex ``` Log in to http://localhost:8081/ and pick an admin password as per instructions, then -add to your `~/.m2/settings.xml`: +edit your `~/.m2/settings.xml` to: ```xml - - - incrementals - admin - admin123 - - + + + + incrementals + admin + admin123 + + + + + incrementals-mirror + http://localhost:8081/repository/maven-releases/ + incrementals + + + ``` -and then add to command lines consuming or producing incremental versions: +and then add to the command line when producing incremental versions with [maven-deploy-plugin](https://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html): ``` --Dincrementals.url=http://localhost:8081/repository/maven-releases/ +-DaltDeploymentRepository=incrementals::http://localhost:8081/repository/maven-releases/ ``` -or define an equivalent profile in local settings. +or if using [maven-release-plugin](https://maven.apache.org/maven-release/maven-release-plugin/perform-mojo.html): +``` +-Darguments="-DaltDeploymentRepository=incrementals::http://localhost:8081/repository/maven-releases/" +``` ## Changelog From d8c39820470bc4e81e811b402465c58e3e9e69f4 Mon Sep 17 00:00:00 2001 From: Filipe Roque Date: Thu, 19 Jan 2023 19:24:44 +0000 Subject: [PATCH 2/2] Update README.md Removes maven-release-plugin instructions because it is not used with incrementals Co-authored-by: Basil Crow --- README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/README.md b/README.md index 8a5dab1..e37dbff 100644 --- a/README.md +++ b/README.md @@ -325,10 +325,6 @@ and then add to the command line when producing incremental versions with [maven -DaltDeploymentRepository=incrementals::http://localhost:8081/repository/maven-releases/ ``` -or if using [maven-release-plugin](https://maven.apache.org/maven-release/maven-release-plugin/perform-mojo.html): -``` --Darguments="-DaltDeploymentRepository=incrementals::http://localhost:8081/repository/maven-releases/" -``` ## Changelog