|
|
@@ -20,6 +20,7 @@ import java.io.File;
|
|
|
*
|
|
|
* @author JustryDeng
|
|
|
*/
|
|
|
+@SuppressWarnings("unused")
|
|
|
@Mojo(name = "class-winter", defaultPhase = LifecyclePhase.PACKAGE)
|
|
|
public class ClassWinterPlugin extends AbstractMojo {
|
|
|
|
|
|
@@ -57,6 +58,7 @@ public class ClassWinterPlugin extends AbstractMojo {
|
|
|
private Boolean debug;
|
|
|
|
|
|
@Override
|
|
|
+ @SuppressWarnings("RedundantThrows")
|
|
|
public void execute() throws MojoExecutionException, MojoFailureException {
|
|
|
Logger.info(ClassWinterPlugin.class,"---------------------------< class-winter-plugin start >---------------------------");
|
|
|
|
|
|
@@ -88,7 +90,7 @@ public class ClassWinterPlugin extends AbstractMojo {
|
|
|
.build();
|
|
|
|
|
|
Logger.debug(ClassWinterPlugin.class, "The encrypted executor generated based on your configuration is -> " + encryptExecutor);
|
|
|
- String encryptedJarOrWar = null;
|
|
|
+ String encryptedJarOrWar;
|
|
|
try {
|
|
|
encryptedJarOrWar = encryptExecutor.process();
|
|
|
Logger.info(ClassWinterPlugin.class, "The absolute path of the obfuscated jar is [" + encryptedJarOrWar + "]");
|