File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/main/java/org/apache/maven/plugins/gpg Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1919package org .apache .maven .plugins .gpg ;
2020
2121import java .io .File ;
22+ import java .util .Collections ;
2223import java .util .List ;
2324
2425import org .apache .maven .execution .MavenSession ;
3031import org .apache .maven .project .MavenProject ;
3132import org .apache .maven .settings .Server ;
3233import org .apache .maven .settings .Settings ;
34+ import org .sonatype .plexus .components .cipher .DefaultPlexusCipher ;
35+ import org .sonatype .plexus .components .sec .dispatcher .DefaultSecDispatcher ;
3336import org .sonatype .plexus .components .sec .dispatcher .SecDispatcher ;
3437import org .sonatype .plexus .components .sec .dispatcher .SecDispatcherException ;
3538
@@ -287,8 +290,8 @@ public abstract class AbstractGpgMojo extends AbstractMojo {
287290 * @deprecated Provides quasi-encryption, should be avoided.
288291 */
289292 @ Deprecated
290- @ Component
291- private SecDispatcher secDispatcher ;
293+ private final SecDispatcher secDispatcher =
294+ new DefaultSecDispatcher ( new DefaultPlexusCipher (), Collections . emptyMap (), "~/.m2/settings-security.xml" ) ;
292295
293296 @ Override
294297 public final void execute () throws MojoExecutionException , MojoFailureException {
You can’t perform that action at this time.
0 commit comments