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 13:55:40 UTC
(maven-wagon) branch master updated: 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 master
in repository https://gitbox.apache.org/repos/asf/maven-wagon.git
The following commit(s) were added to refs/heads/master by this push:
new 578fe1f5 Keep the JSR-330 annotations off the wagon transitive classpath
578fe1f5 is described below
commit 578fe1f57cbc6829558d2415dd2413991367f2f8
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 57647b59..ccdb50bc 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>