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 2022/03/09 06:57:18 UTC

[maven-plugin-testing] branch mvn4 updated: Fix m-deploy-p ITs

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

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


The following commit(s) were added to refs/heads/mvn4 by this push:
     new 34eb7fb  Fix m-deploy-p ITs
34eb7fb is described below

commit 34eb7fb22ca25bc3b4e51cbe494c23644b8cf8bc
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Wed Mar 9 07:57:10 2022 +0100

    Fix m-deploy-p ITs
---
 .../src/main/java/org/apache/maven/plugin/testing/MojoRule.java         | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/MojoRule.java b/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/MojoRule.java
index f335ffe..2a288ab 100644
--- a/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/MojoRule.java
+++ b/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/MojoRule.java
@@ -23,6 +23,7 @@ import java.io.File;
 import java.io.InputStream;
 import java.util.Map;
 
+import org.apache.maven.api.Session;
 import org.apache.maven.execution.DefaultMavenExecutionRequest;
 import org.apache.maven.execution.MavenExecutionRequest;
 import org.apache.maven.execution.MavenSession;
@@ -406,6 +407,7 @@ public class MojoRule
         {
             sessionScope.enter();
             sessionScope.seed( MavenSession.class, session );
+            sessionScope.seed( Session.class, session.getSession() );
 
             MojoExecutionScope executionScope = lookup( MojoExecutionScope.class );
             try