diff --git a/src/main/java/org/apache/maven/plugins/jarsigner/JarsignerSignMojo.java b/src/main/java/org/apache/maven/plugins/jarsigner/JarsignerSignMojo.java index 449c61c..b0e6c39 100644 --- a/src/main/java/org/apache/maven/plugins/jarsigner/JarsignerSignMojo.java +++ b/src/main/java/org/apache/maven/plugins/jarsigner/JarsignerSignMojo.java @@ -19,6 +19,7 @@ package org.apache.maven.plugins.jarsigner; import javax.inject.Inject; +import javax.inject.Named; import java.io.File; import java.io.IOException; @@ -230,7 +231,10 @@ public class JarsignerSignMojo extends AbstractJarsignerMojo { private static final int MAX_WAIT_EXPONENT_ATTEMPT = 20; @Inject - public JarsignerSignMojo(JarSigner jarSigner, ToolchainManager toolchainManager, SecDispatcher securityDispatcher) { + public JarsignerSignMojo( + JarSigner jarSigner, + ToolchainManager toolchainManager, + @Named("mng-4384") SecDispatcher securityDispatcher) { super(jarSigner, toolchainManager, securityDispatcher); } diff --git a/src/main/java/org/apache/maven/plugins/jarsigner/JarsignerVerifyMojo.java b/src/main/java/org/apache/maven/plugins/jarsigner/JarsignerVerifyMojo.java index 632ec1f..b4793a9 100644 --- a/src/main/java/org/apache/maven/plugins/jarsigner/JarsignerVerifyMojo.java +++ b/src/main/java/org/apache/maven/plugins/jarsigner/JarsignerVerifyMojo.java @@ -19,6 +19,7 @@ package org.apache.maven.plugins.jarsigner; import javax.inject.Inject; +import javax.inject.Named; import java.io.File; import java.io.IOException; @@ -64,7 +65,9 @@ public class JarsignerVerifyMojo extends AbstractJarsignerMojo { @Inject public JarsignerVerifyMojo( - JarSigner jarSigner, ToolchainManager toolchainManager, SecDispatcher securityDispatcher) { + JarSigner jarSigner, + ToolchainManager toolchainManager, + @Named("mng-4384") SecDispatcher securityDispatcher) { super(jarSigner, toolchainManager, securityDispatcher); } diff --git a/src/main/resources/META-INF/plexus/components.xml b/src/main/resources/META-INF/plexus/components.xml new file mode 100644 index 0000000..388ccc8 --- /dev/null +++ b/src/main/resources/META-INF/plexus/components.xml @@ -0,0 +1,42 @@ + + + + + org.sonatype.plexus.components.sec.dispatcher.SecDispatcher + mng-4384 + org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher + + + org.sonatype.plexus.components.cipher.PlexusCipher + mng-4384 + _cipher + + + + <_configuration-file>~/.m2/settings-security.xml + + + + org.sonatype.plexus.components.cipher.PlexusCipher + mng-4384 + org.sonatype.plexus.components.cipher.DefaultPlexusCipher + + + \ No newline at end of file