You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2023/04/11 17:34:06 UTC
[maven-reporting-exec] branch MSHARED-1236 created (now 12d9399)
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a change to branch MSHARED-1236
in repository https://gitbox.apache.org/repos/asf/maven-reporting-exec.git
at 12d9399 [MSHARED-1236] Supply execution id of caller (Maven Site Plugin) to MavenReportExecutorRequest
This branch includes the following new commits:
new 12d9399 [MSHARED-1236] Supply execution id of caller (Maven Site Plugin) to MavenReportExecutorRequest
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[maven-reporting-exec] 01/01: [MSHARED-1236] Supply execution id of caller (Maven Site Plugin) to MavenReportExecutorRequest
Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch MSHARED-1236
in repository https://gitbox.apache.org/repos/asf/maven-reporting-exec.git
commit 12d9399f7776c40f7d610654a19a4e7ec5416173
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Tue Apr 11 19:33:15 2023 +0200
[MSHARED-1236] Supply execution id of caller (Maven Site Plugin) to MavenReportExecutorRequest
This closes #15
---
.../maven/reporting/exec/DefaultMavenReportExecutor.java | 3 ++-
.../maven/reporting/exec/MavenReportExecutorRequest.java | 10 ++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java b/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
index 7612543..55b7f21 100644
--- a/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
+++ b/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
@@ -277,7 +277,8 @@ public class DefaultMavenReportExecutor implements MavenReportExecutor {
return null;
}
- MojoExecution mojoExecution = new MojoExecution(pluginDescriptor.getPlugin(), report.getGoal(), null);
+ MojoExecution mojoExecution = new MojoExecution(
+ pluginDescriptor.getPlugin(), report.getGoal(), mavenReportExecutorRequest.getExecutionId());
mojoExecution.setMojoDescriptor(mojoDescriptor);
diff --git a/src/main/java/org/apache/maven/reporting/exec/MavenReportExecutorRequest.java b/src/main/java/org/apache/maven/reporting/exec/MavenReportExecutorRequest.java
index 85c4037..85016c6 100644
--- a/src/main/java/org/apache/maven/reporting/exec/MavenReportExecutorRequest.java
+++ b/src/main/java/org/apache/maven/reporting/exec/MavenReportExecutorRequest.java
@@ -40,6 +40,8 @@ public class MavenReportExecutorRequest {
private MavenSession mavenSession;
+ private String executionId;
+
private MavenProject project;
private ReportPlugin[] reportPlugins;
@@ -62,6 +64,14 @@ public class MavenReportExecutorRequest {
this.mavenSession = mavenSession;
}
+ public String getExecutionId() {
+ return executionId;
+ }
+
+ public void setExecutionId(String executionId) {
+ this.executionId = executionId;
+ }
+
public MavenProject getProject() {
return project;
}