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 {

}

package de.is24.deadcode4j.plugin;

import org.apache.maven.plugin.MojoExecutionException;
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 {

    @Override
    public void execute() throws MojoExecutionException {
        getLog().warn("##########################################################");
        getLog().warn("This goal is deprecated and will be removed in the future!");
        getLog().warn("  Instead, use the goal [find-only].");
        getLog().warn("##########################################################");
        super.execute();
    }

}

add deprecation warning