You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/09/04 10:24:14 UTC
(maven-wagon) 01/01: Keep the JSR-330 annotations off the wagon transitive classpath
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch agent/wagon-sisu-provided-scope
in repository https://gitbox.apache.org/repos/asf/maven-wagon.git
commit cea03168334148dc6c3b2dca7b9cf9ffdf58a567
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Fri Sep 4 12:23:59 2026 +0200
Keep the JSR-330 annotations off the wagon transitive classpath
javax.inject and org.eclipse.sisu.inject arrived as compile dependencies with the
JSR-330 migration, so every consumer of a provider now inherits them. Any container
that can load a wagon already supplies both, and wagon pins sisu through maven-parent
49 (1.0.1) while Maven ships 1.1.0, so the inherited copy is only ever a version to
resolve away. Do not restore compile scope: provided still covers compilation, the
test classpath and sisu-maven-plugin's indexing.
---
wagon-providers/pom.xml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/wagon-providers/pom.xml b/wagon-providers/pom.xml
index 6b0a9178..ea4a02b1 100644
--- a/wagon-providers/pom.xml
+++ b/wagon-providers/pom.xml
@@ -64,15 +64,18 @@ under the License.
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-provider-api</artifactId>
</dependency>
+ <!-- @Named and @Typed are runtime-retained, but every container that loads a wagon
+ already supplies them, so they stay off the transitive classpath. -->
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
+ <scope>provided</scope>
</dependency>
- <!-- for @Typed, where a provider implements more roles than it is published under -->
<dependency>
<groupId>org.eclipse.sisu</groupId>
<artifactId>org.eclipse.sisu.inject</artifactId>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>