You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2026/09/26 13:48:57 UTC
(maven-artifact-plugin) branch fix-reproducible-central-deprecated-component created (now 26c4085)
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a change to branch fix-reproducible-central-deprecated-component
in repository https://gitbox.apache.org/repos/asf/maven-artifact-plugin.git
at 26c4085 Remove unused MavenSession injection from Reproducible Central report
This branch includes the following new commits:
new 26c4085 Remove unused MavenSession injection from Reproducible Central report
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-artifact-plugin) 01/01: Remove unused MavenSession injection from Reproducible Central report
Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch fix-reproducible-central-deprecated-component
in repository https://gitbox.apache.org/repos/asf/maven-artifact-plugin.git
commit 26c408559d0e00f84bb97cd46620e333e97029b3
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Sat Sep 26 13:48:46 2026 +0000
Remove unused MavenSession injection from Reproducible Central report
org.apache.maven.plugins.annotations.Component is deprecated since
maven-plugin-annotations 3.15: "Use JSR 330 annotations or Parameter with
according default expressions instead."
The @Component-annotated MavenSession field in ReproducibleCentralReport has
never been read by the report, so rather than swapping it for javax.inject.Inject
this drops the field altogether, which also removes the corresponding
<requirement> from the generated plugin descriptor.
Co-Authored-By: opencode <op...@opencode.ai>
---
.../maven/plugins/artifact/buildinfo/ReproducibleCentralReport.java | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugins/artifact/buildinfo/ReproducibleCentralReport.java b/src/main/java/org/apache/maven/plugins/artifact/buildinfo/ReproducibleCentralReport.java
index 52c9e33..2d8eeed 100644
--- a/src/main/java/org/apache/maven/plugins/artifact/buildinfo/ReproducibleCentralReport.java
+++ b/src/main/java/org/apache/maven/plugins/artifact/buildinfo/ReproducibleCentralReport.java
@@ -26,8 +26,6 @@ import java.util.TreeMap;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.doxia.sink.Sink;
-import org.apache.maven.execution.MavenSession;
-import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.ResolutionScope;
@@ -52,9 +50,6 @@ import org.apache.maven.reporting.MavenReportException;
requiresProject = true,
threadSafe = true)
public class ReproducibleCentralReport extends AbstractMavenReport {
- @Component
- private MavenSession session;
-
@Override
protected void executeReport(Locale locale) throws MavenReportException {
Sink sink = getSink();