You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2025/04/02 15:57:47 UTC

(maven-install-plugin) branch master updated: Bump mavenVersion from 4.0.0-rc-2 to 4.0.0-rc-3 (#128)

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

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-install-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 22442e5  Bump mavenVersion from 4.0.0-rc-2 to 4.0.0-rc-3 (#128)
22442e5 is described below

commit 22442e52874cd962ad542ec5c93e08b9810c80ba
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Wed Apr 2 17:57:42 2025 +0200

    Bump mavenVersion from 4.0.0-rc-2 to 4.0.0-rc-3 (#128)
    
    * Bump mavenVersion from 4.0.0-rc-2 to 4.0.0-rc-3
    
    Bumps `mavenVersion` from 4.0.0-rc-2 to 4.0.0-rc-3.
    
    Updates `org.apache.maven:maven-api-core` from 4.0.0-rc-2 to 4.0.0-rc-3
    - [Release notes](https://github.com/apache/maven/releases)
    - [Commits](https://github.com/apache/maven/compare/maven-4.0.0-rc-2...maven-4.0.0-rc-3)
    
    Updates `org.apache.maven:maven-api-di` from 4.0.0-rc-2 to 4.0.0-rc-3
    - [Release notes](https://github.com/apache/maven/releases)
    - [Commits](https://github.com/apache/maven/compare/maven-4.0.0-rc-2...maven-4.0.0-rc-3)
    
    Updates `org.apache.maven:maven-api-annotations` from 4.0.0-rc-2 to 4.0.0-rc-3
    - [Release notes](https://github.com/apache/maven/releases)
    - [Commits](https://github.com/apache/maven/compare/maven-4.0.0-rc-2...maven-4.0.0-rc-3)
    
    Updates `org.apache.maven:maven-api-model` from 4.0.0-rc-2 to 4.0.0-rc-3
    - [Release notes](https://github.com/apache/maven/releases)
    - [Commits](https://github.com/apache/maven/compare/maven-4.0.0-rc-2...maven-4.0.0-rc-3)
    
    Updates `org.apache.maven:maven-core` from 4.0.0-rc-2 to 4.0.0-rc-3
    - [Release notes](https://github.com/apache/maven/releases)
    - [Commits](https://github.com/apache/maven/compare/maven-4.0.0-rc-2...maven-4.0.0-rc-3)
    
    Updates `org.apache.maven:maven-impl` from 4.0.0-rc-2 to 4.0.0-rc-3
    - [Release notes](https://github.com/apache/maven/releases)
    - [Commits](https://github.com/apache/maven/compare/maven-4.0.0-rc-2...maven-4.0.0-rc-3)
    
    ---
    updated-dependencies:
    - dependency-name: org.apache.maven:maven-api-core
      dependency-type: direct:production
      update-type: version-update:semver-patch
    - dependency-name: org.apache.maven:maven-api-di
      dependency-type: direct:production
      update-type: version-update:semver-patch
    - dependency-name: org.apache.maven:maven-api-annotations
      dependency-type: direct:production
      update-type: version-update:semver-patch
    - dependency-name: org.apache.maven:maven-api-model
      dependency-type: direct:production
      update-type: version-update:semver-patch
    - dependency-name: org.apache.maven:maven-core
      dependency-type: direct:development
      update-type: version-update:semver-patch
    - dependency-name: org.apache.maven:maven-impl
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <su...@github.com>
    
    * Fixes
    
    ---------
    
    Signed-off-by: dependabot[bot] <su...@github.com>
    Co-authored-by: dependabot[bot] <49...@users.noreply.github.com>
    Co-authored-by: Guillaume Nodet <gn...@gmail.com>
---
 .github/workflows/maven-verify.yml                                | 2 +-
 pom.xml                                                           | 4 ++--
 .../apache/maven/plugins/install/InstallMojoPomPackagingTest.java | 8 ++++----
 .../java/org/apache/maven/plugins/install/InstallMojoTest.java    | 6 +++---
 4 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml
index 7a9f071..a646406 100644
--- a/.github/workflows/maven-verify.yml
+++ b/.github/workflows/maven-verify.yml
@@ -27,4 +27,4 @@ jobs:
     uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v4
     with:
       maven4-build: true
-      maven4-version: '4.0.0-rc-2' # the same as used in project
+      maven4-version: '4.0.0-rc-3' # the same as used in project
diff --git a/pom.xml b/pom.xml
index e43e1e5..52e072a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -72,7 +72,7 @@
 
   <properties>
     <javaVersion>17</javaVersion>
-    <mavenVersion>4.0.0-rc-2</mavenVersion>
+    <mavenVersion>4.0.0-rc-3</mavenVersion>
     <!-- Maven bound -->
     <slf4jVersion>2.0.17</slf4jVersion>
 
@@ -84,7 +84,7 @@
     <mavenEnforcerPluginVersion>3.1.0</mavenEnforcerPluginVersion>
     <mavenJarPluginVersion>3.3.0</mavenJarPluginVersion>
     <mavenPluginPluginVersion>4.0.0-beta-1</mavenPluginPluginVersion>
-    <mavenPluginTestingVersion>4.0.0-beta-3</mavenPluginTestingVersion>
+    <mavenPluginTestingVersion>4.0.0-beta-4</mavenPluginTestingVersion>
     <mavenResourcesPluginVersion>3.3.0</mavenResourcesPluginVersion>
     <mavenSourcePluginVersion>3.2.1</mavenSourcePluginVersion>
     <mavenSurefirePluginVersion>3.2.2</mavenSurefirePluginVersion>
diff --git a/src/test/java/org/apache/maven/plugins/install/InstallMojoPomPackagingTest.java b/src/test/java/org/apache/maven/plugins/install/InstallMojoPomPackagingTest.java
index 1c95850..732c317 100644
--- a/src/test/java/org/apache/maven/plugins/install/InstallMojoPomPackagingTest.java
+++ b/src/test/java/org/apache/maven/plugins/install/InstallMojoPomPackagingTest.java
@@ -46,7 +46,7 @@ import org.apache.maven.api.services.ArtifactInstaller;
 import org.apache.maven.api.services.ArtifactInstallerRequest;
 import org.apache.maven.api.services.ArtifactManager;
 import org.apache.maven.api.services.ProjectManager;
-import org.apache.maven.internal.impl.InternalSession;
+import org.apache.maven.impl.InternalSession;
 import org.codehaus.plexus.util.FileUtils;
 import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;
@@ -110,7 +110,7 @@ public class InstallMojoPomPackagingTest {
     private InternalSession createInternalSession() {
         InternalSession session = SessionMock.getMockSession(LOCAL_REPO);
         when(session.getArtifact(any()))
-                .thenAnswer(iom -> new org.apache.maven.internal.impl.DefaultArtifact(
+                .thenAnswer(iom -> new org.apache.maven.impl.DefaultArtifact(
                         session, iom.getArgument(0, org.eclipse.aether.artifact.Artifact.class)));
         return session;
     }
@@ -135,11 +135,11 @@ public class InstallMojoPomPackagingTest {
         return new MojoExecutionStub("default-install", "install");
     }
 
-    private <T> ArtifactInstallerRequest execute(Mojo mojo) {
+    private <T> ArtifactInstallerRequest execute(Mojo mojo) throws Exception {
         return execute(mojo, null);
     }
 
-    private ArtifactInstallerRequest execute(Mojo mojo, Consumer<ArtifactInstallerRequest> consumer) {
+    private ArtifactInstallerRequest execute(Mojo mojo, Consumer<ArtifactInstallerRequest> consumer) throws Exception {
         AtomicReference<ArtifactInstallerRequest> request = new AtomicReference<>();
         doAnswer(iom -> {
                     ArtifactInstallerRequest req = iom.getArgument(0, ArtifactInstallerRequest.class);
diff --git a/src/test/java/org/apache/maven/plugins/install/InstallMojoTest.java b/src/test/java/org/apache/maven/plugins/install/InstallMojoTest.java
index 1c2654b..66735cf 100644
--- a/src/test/java/org/apache/maven/plugins/install/InstallMojoTest.java
+++ b/src/test/java/org/apache/maven/plugins/install/InstallMojoTest.java
@@ -48,7 +48,7 @@ import org.apache.maven.api.services.ArtifactInstaller;
 import org.apache.maven.api.services.ArtifactInstallerRequest;
 import org.apache.maven.api.services.ArtifactManager;
 import org.apache.maven.api.services.ProjectManager;
-import org.apache.maven.internal.impl.InternalSession;
+import org.apache.maven.impl.InternalSession;
 import org.codehaus.plexus.util.FileUtils;
 import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;
@@ -168,7 +168,7 @@ public class InstallMojoTest {
     private InternalSession createSession() {
         InternalSession session = SessionMock.getMockSession(LOCAL_REPO);
         when(session.getArtifact(any()))
-                .thenAnswer(iom -> new org.apache.maven.internal.impl.DefaultArtifact(
+                .thenAnswer(iom -> new org.apache.maven.impl.DefaultArtifact(
                         session, iom.getArgument(0, org.eclipse.aether.artifact.Artifact.class)));
         return session;
     }
@@ -203,7 +203,7 @@ public class InstallMojoTest {
         return Collections.emptyList();
     }
 
-    private ArtifactInstallerRequest execute(Mojo mojo) {
+    private ArtifactInstallerRequest execute(Mojo mojo) throws Exception {
         AtomicReference<ArtifactInstallerRequest> request = new AtomicReference<>();
         doAnswer(iom -> {
                     ArtifactInstallerRequest req = iom.getArgument(0, ArtifactInstallerRequest.class);