File tree 1 file changed +5
-2
lines changed
src/main/java/org/apache/maven/plugins/gpg
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 19
19
package org .apache .maven .plugins .gpg ;
20
20
21
21
import java .io .File ;
22
+ import java .util .Collections ;
22
23
import java .util .List ;
23
24
24
25
import org .apache .maven .execution .MavenSession ;
30
31
import org .apache .maven .project .MavenProject ;
31
32
import org .apache .maven .settings .Server ;
32
33
import org .apache .maven .settings .Settings ;
34
+ import org .sonatype .plexus .components .cipher .DefaultPlexusCipher ;
35
+ import org .sonatype .plexus .components .sec .dispatcher .DefaultSecDispatcher ;
33
36
import org .sonatype .plexus .components .sec .dispatcher .SecDispatcher ;
34
37
import org .sonatype .plexus .components .sec .dispatcher .SecDispatcherException ;
35
38
@@ -287,8 +290,8 @@ public abstract class AbstractGpgMojo extends AbstractMojo {
287
290
* @deprecated Provides quasi-encryption, should be avoided.
288
291
*/
289
292
@ Deprecated
290
- @ Component
291
- private SecDispatcher secDispatcher ;
293
+ private final SecDispatcher secDispatcher =
294
+ new DefaultSecDispatcher ( new DefaultPlexusCipher (), Collections . emptyMap (), "~/.m2/settings-security.xml" ) ;
292
295
293
296
@ Override
294
297
public final void execute () throws MojoExecutionException , MojoFailureException {
You can’t perform that action at this time.
0 commit comments