Upgrade to Maven 3.9.4

Closes gh-36717
pull/37018/head
Andy Wilkinson 1 year ago
parent 63a94f762a
commit 0457519fab

@ -87,12 +87,13 @@ bom {
] ]
} }
} }
library("Maven", "3.6.3") { library("Maven", "3.9.4") {
group("org.apache.maven") { group("org.apache.maven") {
modules = [ modules = [
"maven-core",
"maven-model-builder",
"maven-plugin-api", "maven-plugin-api",
"maven-resolver-provider", "maven-resolver-provider"
"maven-settings-builder"
] ]
} }
} }

@ -16,10 +16,12 @@ dependencies {
compileOnly("org.apache.maven.plugin-tools:maven-plugin-annotations") compileOnly("org.apache.maven.plugin-tools:maven-plugin-annotations")
compileOnly("org.sonatype.plexus:plexus-build-api") compileOnly("org.sonatype.plexus:plexus-build-api")
compileOnly("org.apache.maven.shared:maven-common-artifact-filters") { compileOnly("org.apache.maven.shared:maven-common-artifact-filters") {
exclude(group: "javax.annotation", module: "javax.annotation-api")
exclude(group: "javax.enterprise", module: "cdi-api") exclude(group: "javax.enterprise", module: "cdi-api")
exclude(group: "javax.inject", module: "javax.inject") exclude(group: "javax.inject", module: "javax.inject")
} }
compileOnly("org.apache.maven:maven-plugin-api") { compileOnly("org.apache.maven:maven-plugin-api") {
exclude(group: "javax.annotation", module: "javax.annotation-api")
exclude(group: "javax.enterprise", module: "cdi-api") exclude(group: "javax.enterprise", module: "cdi-api")
exclude(group: "javax.inject", module: "javax.inject") exclude(group: "javax.inject", module: "javax.inject")
} }
@ -40,6 +42,7 @@ dependencies {
intTestImplementation("org.testcontainers:junit-jupiter") intTestImplementation("org.testcontainers:junit-jupiter")
mavenOptionalImplementation("org.apache.maven.plugins:maven-shade-plugin") { mavenOptionalImplementation("org.apache.maven.plugins:maven-shade-plugin") {
exclude(group: "javax.annotation", module: "javax.annotation-api")
exclude(group: "javax.enterprise", module: "cdi-api") exclude(group: "javax.enterprise", module: "cdi-api")
exclude(group: "javax.inject", module: "javax.inject") exclude(group: "javax.inject", module: "javax.inject")
} }

@ -30,7 +30,6 @@ import java.util.Set;
import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.DefaultArtifact; import org.apache.maven.artifact.DefaultArtifact;
import org.apache.maven.artifact.handler.DefaultArtifactHandler; import org.apache.maven.artifact.handler.DefaultArtifactHandler;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.artifact.resolver.ArtifactResolutionRequest; import org.apache.maven.artifact.resolver.ArtifactResolutionRequest;
import org.apache.maven.artifact.resolver.ArtifactResolutionResult; import org.apache.maven.artifact.resolver.ArtifactResolutionResult;
import org.apache.maven.artifact.resolver.ResolutionErrorHandler; import org.apache.maven.artifact.resolver.ResolutionErrorHandler;
@ -101,14 +100,16 @@ public class ProcessTestAotMojo extends AbstractAotMojo {
/** /**
* Local artifact repository used to resolve JUnit platform launcher jars. * Local artifact repository used to resolve JUnit platform launcher jars.
*/ */
@SuppressWarnings("deprecation")
@Parameter(defaultValue = "${localRepository}", required = true, readonly = true) @Parameter(defaultValue = "${localRepository}", required = true, readonly = true)
private ArtifactRepository localRepository; private org.apache.maven.artifact.repository.ArtifactRepository localRepository;
/** /**
* Remote artifact repositories used to resolve JUnit platform launcher jars. * Remote artifact repositories used to resolve JUnit platform launcher jars.
*/ */
@SuppressWarnings("deprecation")
@Parameter(defaultValue = "${project.remoteArtifactRepositories}", required = true, readonly = true) @Parameter(defaultValue = "${project.remoteArtifactRepositories}", required = true, readonly = true)
private List<ArtifactRepository> remoteRepositories; private List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories;
@Component @Component
private RepositorySystem repositorySystem; private RepositorySystem repositorySystem;

Loading…
Cancel
Save