package de.is24.deadcode4j.plugin;

import org.apache.maven.plugins.annotations.Mojo;

/**
 * Finds dead (i.e. unused) code. In contrast to <code>find</code>, no phase is executed.<br/>
 * This goal is deprecated; use <code>find-only</code> instead.
 *
 * @see FindDeadCodeMojo
 * @see FindDeadCodeOnlyMojo
 * @since 1.4
 * @deprecated use {@link FindDeadCodeOnlyMojo} instead
 */
@Mojo(name = "find-without-packaging", aggregator = true, threadSafe = true, requiresProject = true)
@Deprecated
public class FindDeadCodeWithoutPackagingMojo extends FindDeadCodeOnlyMojo {

}

@@ -29,16 +29,71 @@
 lugin;%0A%0A
+import org.apache.maven.plugin.MojoExecutionException;%0A
 import o
@@ -620,10 +620,432 @@
 Mojo %7B%0A%0A
+    @Override%0A    public void execute() throws MojoExecutionException %7B%0A        getLog().warn(%22##########################################################%22);%0A        getLog().warn(%22This goal is deprecated and will be removed in the future!%22);%0A        getLog().warn(%22  Instead, use the goal %5Bfind-only%5D.%22);%0A        getLog().warn(%22##########################################################%22);%0A        super.execute();%0A    %7D%0A%0A
 %7D%0A

add deprecation warning