Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public interface UpgradeOptions extends Options {
* @param callback a callback to use for interpolation
* @return a new UpgradeOptions instance with interpolated values
*/
@Override
@Nonnull
UpgradeOptions interpolate(UnaryOperator<String> callback);
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class ArtifactDeployerTest extends AbstractArtifactComponentTestCase {
@Inject
private SessionScope sessionScope;

@Override
protected String component() {
return "deployer";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class ArtifactInstallerTest extends AbstractArtifactComponentTestCase {
@Inject
private SessionScope sessionScope;

@Override
protected String component() {
return "installer";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class TestFileWagon extends FileWagon {
private TestTransferListener testTransferListener;
private boolean insideGet;

@Override
@Deprecated
protected void getTransfer(Resource resource, File destination, InputStream input, boolean closeInput, int maxSize)
throws TransferFailedException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ public String getFileContents(File file, String encoding) throws IOException {
return FileUtils.fileRead(file, encoding);
}

@Override
protected void finalize() throws Throwable {
maybeWarnAboutCleanUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ protected File projectFile(String groupId, String artifactId) {
// The local repository for this category of tests
// ----------------------------------------------------------------------

@Override
protected File getLocalRepositoryPath() {
return getTestFile("target/test-classes/inheritance-repo/" + getTestSeries());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ static class ExtensionInterpolator extends MavenTransformer {
super(transformer);
}

@Override
public XmlNode transform(XmlNode node) {
return super.transform(node);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public final class PlexusXmlBeanConverter implements PlexusBeanConverter {
// Public methods
// ----------------------------------------------------------------------

@Override
@SuppressWarnings({"unchecked", "rawtypes"})
public Object convert(final TypeLiteral role, final String value) {
if (value.trim().startsWith("<")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ static class ExtensionInterpolator extends MavenTransformer {
super(transformer);
}

@Override
public XmlNode transform(XmlNode node) {
return super.transform(node);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public UpgradeInvokerRequest(
/**
* The mandatory Upgrade options.
*/
@Override
@Nonnull
public UpgradeOptions options() {
return options;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
* interface.
*/
class EnhancedConfigurationConverter extends ObjectWithFieldsConverter {
@Override
protected Object fromExpression(
final PlexusConfiguration configuration, final ExpressionEvaluator evaluator, final Class<?> type)
throws ComponentConfigurationException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public static <T> Provider<T> seededKeyProvider(Class<? extends T> clazz) {
return SessionScope.<T>seededKeySupplier(clazz)::get;
}

@Override
protected boolean isTypeAnnotation(Class<? extends Annotation> annotationType) {
return "org.apache.maven.api.di.Typed".equals(annotationType.getName())
|| "org.eclipse.sisu.Typed".equals(annotationType.getName())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class LifecycleExecutorSubModulesTest extends AbstractCoreMavenComponentTestCase
@Inject
private ExceptionHandler exceptionHandler;

@Override
protected String getProjectsDirectory() {
return "src/test/projects/lifecycle-executor";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class LifecycleExecutorTest extends AbstractCoreMavenComponentTestCase {
@Inject
private MojoDescriptorCreator mojoDescriptorCreator;

@Override
protected String getProjectsDirectory() {
return "src/test/projects/lifecycle-executor";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public CompletionServiceStub(boolean finishImmediately) {
this.finishImmediately = finishImmediately;
}

@Override
public Future<ProjectSegment> submit(Callable<ProjectSegment> task) {
FutureTask<ProjectSegment> projectBuildFutureTask = new FutureTask<>(task);
projectBuildFutureTasks.add(projectBuildFutureTask);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class PluginManagerTest extends AbstractCoreMavenComponentTestCase {
@Inject
private DefaultBuildPluginManager pluginManager;

@Override
protected String getProjectsDirectory() {
return "src/test/projects/plugin-manager";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class MavenPluginValidatorTest extends AbstractCoreMavenComponentTestCase {
@Inject
private MavenPluginValidator mavenPluginValidator;

@Override
protected String getProjectsDirectory() {
return "src/test/projects/default-maven";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ private void writeNode(XMLStreamWriter xmlWriter, XmlNode node) throws XMLStream
* </ol></li>
* </ol>
*/
@Override
@SuppressWarnings("checkstyle:MethodLength")
public XmlNode doMerge(XmlNode dominant, XmlNode recessive, Boolean childMergeOverride) {
// TODO: share this as some sort of assembler, implement a walk interface?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public void testitMNG768() throws Exception {
final List<String> requestedUris = Collections.synchronizedList(new ArrayList<>());

Handler repoHandler = new AbstractHandler() {
@Override
public void handle(
String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ private void addHttpsConnector(Server server, String keyStorePath, String keySto
}

static class RepoHandler extends AbstractHandler {
@Override
public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
throws IOException {
PrintWriter writer = response.getWriter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public MavenITmng3599useHttpProxyForWebDAVMk2Test() {
@BeforeEach
protected void setUp() throws Exception {
Handler handler = new AbstractHandler() {
@Override
public void handle(
String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ static class RedirectHandler extends AbstractHandler {
this.connector = connector;
}

@Override
public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
throws IOException {
System.out.println("Handling " + request.getMethod() + " " + request.getRequestURL());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ private static final class RepoHandler extends AbstractHandler {

private volatile boolean artifactRequestedFromRepo2;

@Override
public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
throws IOException {
String uri = request.getRequestURI();
Expand Down Expand Up @@ -183,6 +184,7 @@ private class PluginRepoHandler extends AbstractHandler {

private volatile boolean pluginRequestedFromRepo2;

@Override
public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
throws IOException {
String uri = request.getRequestURI();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,7 @@ int getIndex(ClassDescriptor cd) {
return i != null ? i : -1;
}

@Override
public void orderClasses(ClassOrdererContext context) {
context.getClassDescriptors().stream()
.filter(cd -> !MISSED_TESTS.contains(cd.getTestClass()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public class CheckMojo extends AbstractMojo {
*
* @throws MojoFailureException If the output file could not be created.
*/
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
Properties componentProperties = new Properties();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public class CheckThreadSafetyMojo extends AbstractMojo {
*
* @throws MojoExecutionException If the output file could not be created.
*/
@Override
public void execute() throws MojoExecutionException {
Properties componentProperties = new Properties();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public class DumpRepoLayoutsMojo extends AbstractMojo {
*
* @throws MojoFailureException If the output file could not be created.
*/
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
Properties layoutProperties = new Properties();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class AggregatorDependenciesMojo extends AbstractMojo {
@Parameter(property = "aggregator.touchFile", defaultValue = "${project.build.directory}/touch.txt")
private File touchFile;

@Override
public void execute() throws MojoExecutionException {
getLog().info("[MAVEN-CORE-IT-LOG] Touching file: " + touchFile);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public class AttachMojo extends AbstractMojo {
*
* @throws MojoFailureException If the attached file has not been set.
*/
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
getLog().info("[MAVEN-CORE-IT-LOG] Attaching artifact file: " + attachedFile);
getLog().info("[MAVEN-CORE-IT-LOG] type=" + artifactType + ", classifier=" + artifactClassifier);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public class AttachPomMojo extends AbstractMojo {
*
* @throws MojoFailureException If the artifact file has not been set.
*/
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
getLog().info("[MAVEN-CORE-IT-LOG] Attaching POM to main artifact: " + pomFile);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public class CollectMojo extends AbstractMojo {
*
* @throws MojoFailureException If the artifact file has not been set.
*/
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
getLog().info("[MAVEN-CORE-IT-LOG] Collecting artifacts");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public String getId() {
return "id";
}

@Override
public String pathOf(Artifact artifact) {
ArtifactHandler artifactHandler = artifact.getArtifactHandler();

Expand All @@ -52,10 +53,12 @@ public String pathOf(Artifact artifact) {
return path.toString();
}

@Override
public String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository) {
return metadata.getLocalFilename(repository);
}

@Override
public String pathOfRemoteRepositoryMetadata(ArtifactMetadata metadata) {
return metadata.getRemoteFilename();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public class DeployFileMojo extends AbstractMojo {
*
* @throws MojoExecutionException If any artifact could not be deployed.
*/
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
getLog().info("[MAVEN-CORE-IT-LOG] Deploying artifacts");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public class DeployMojo extends AbstractRepoMojo {
*
* @throws MojoExecutionException If any artifact could not be installed.
*/
@Override
public void execute() throws MojoExecutionException {
getLog().info("[MAVEN-CORE-IT-LOG] Deploying project artifacts");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public class InstallArtifactsMojo extends AbstractMojo {
@Parameter(defaultValue = "repo")
private String repositoryName;

@Override
public void execute() throws MojoExecutionException, MojoFailureException {

ArtifactRepositoryLayout artifactRepositoryLayout = new FlatRepositoryLayout();
Expand Down Expand Up @@ -117,6 +118,7 @@ public String getId() {
return "id";
}

@Override
public String pathOf(Artifact artifact) {
ArtifactHandler artifactHandler = artifact.getArtifactHandler();

Expand All @@ -136,6 +138,7 @@ public String pathOf(Artifact artifact) {
return path.toString();
}

@Override
public String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository) {
return pathOfRepositoryMetadata(metadata.getLocalFilename(repository));
}
Expand All @@ -148,6 +151,7 @@ private String pathOfRepositoryMetadata(String filename) {
return path.toString();
}

@Override
public String pathOfRemoteRepositoryMetadata(ArtifactMetadata metadata) {
return pathOfRepositoryMetadata(metadata.getRemoteFilename());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class InstallMojo extends AbstractRepoMojo {
*
* @throws MojoExecutionException If any artifact could not be installed.
*/
@Override
public void execute() throws MojoExecutionException {
getLog().info("[MAVEN-CORE-IT-LOG] Installing project artifacts");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class LatestMojo extends AbstractMojo {
/**
* Runs this mojo.
*/
@Override
public void execute() throws MojoExecutionException {
Versioning versioning = new Versioning();
versioning.setLatest(projectArtifact.getVersion());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public class ReleaseMojo extends AbstractMojo {
/**
* Runs this mojo.
*/
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
Artifact artifact = project.getArtifact();
artifact.setRelease(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public class ResolveMojo extends AbstractMojo {
*
* @throws MojoExecutionException If the artifact could not be resolved
*/
@Override
public void execute() throws MojoExecutionException {
getLog().info("[MAVEN-CORE-IT-LOG] Resolving artifacts");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public class ResolveTransitiveMojo extends AbstractMojo {
*
* @throws MojoExecutionException If the artifacts couldn't be resolved.
*/
@Override
public void execute() throws MojoExecutionException {
getLog().info("[MAVEN-CORE-IT-LOG] Resolving artifacts");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public class SetMojo extends AbstractMojo {
*
* @throws MojoFailureException If the artifact file has not been set.
*/
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
getLog().info("[MAVEN-CORE-IT-LOG] Setting main artifact file: " + mainFile);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public class AssignmentCompatibleMojo extends AbstractMojo {
*
* @throws MojoExecutionException If the output file could not be created.
*/
@Override
public void execute() throws MojoExecutionException {
ClassLoader coreRealm = Mojo.class.getClassLoader();
ClassLoader pluginRealm = getClass().getClassLoader();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public class InstanceofMojo extends AbstractMojo {
*
* @throws MojoExecutionException If the output file could not be created.
*/
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
Class type;
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public class LoadDependenciesMojo extends AbstractLoadMojo {
*
* @throws MojoExecutionException If the output file could not be created.
*/
@Override
public void execute() throws MojoExecutionException {
URL[] urls = new URL[classPath.size()];
for (int i = 0; i < urls.length; i++) {
Expand Down
Loading