From 93d7b1e3f20f3de0000d76b4dc34d391edeb0f96 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 04:40:28 +0000 Subject: [PATCH 1/2] Bump org.apache.maven.shared:maven-shared-components from 41 to 42 Bumps [org.apache.maven.shared:maven-shared-components](https://github.com/apache/maven-parent) from 41 to 42. - [Release notes](https://github.com/apache/maven-parent/releases) - [Commits](https://github.com/apache/maven-parent/commits) --- updated-dependencies: - dependency-name: org.apache.maven.shared:maven-shared-components dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4a535a0..dfcea01 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ under the License. org.apache.maven.shared maven-shared-components - 41 + 42 From f65a3ff6487c5e8e8195d3c829cee636f565d25f Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Fri, 3 May 2024 20:08:28 +0200 Subject: [PATCH 2/2] Cleanups with new parent, fix tests --- pom.xml | 44 ++++--------------- .../shared/invoker/DefaultInvokerTest.java | 6 +-- .../test-build-should-timeout/pom.xml | 11 ----- .../resources/test-space-properties/pom.xml | 2 +- 4 files changed, 11 insertions(+), 52 deletions(-) diff --git a/pom.xml b/pom.xml index dfcea01..93b386f 100644 --- a/pom.xml +++ b/pom.xml @@ -68,18 +68,6 @@ under the License. 2022-04-05T18:45:23Z - - - - org.junit - junit-bom - 5.10.2 - pom - import - - - - org.apache.maven.shared @@ -99,6 +87,13 @@ under the License. + + + true + ${project.basedir}/src//test/resources + + + org.apache.maven.plugins @@ -108,6 +103,7 @@ under the License. ${maven.home} + ${settings.localRepository} test-build-should*/** @@ -120,28 +116,4 @@ under the License. - - - - maven-repo-local - - - maven.repo.local - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - - ${maven.repo.local} - - - - - - - diff --git a/src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java b/src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java index 303fb04..3335564 100644 --- a/src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java +++ b/src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java @@ -242,10 +242,8 @@ private File getBasedirForBuild() throws URISyntaxException { private Properties getProperties() { Properties properties = new Properties(); - if (!System.getProperty("java.version").startsWith("1.")) { - properties.put("maven.compiler.source", "1.7"); - properties.put("maven.compiler.target", "1.7"); - } + properties.put("maven.compiler.source", "1.8"); + properties.put("maven.compiler.target", "1.8"); String httpProtocols = System.getProperty("https.protocols"); if (httpProtocols != null) { diff --git a/src/test/resources/test-build-should-timeout/pom.xml b/src/test/resources/test-build-should-timeout/pom.xml index cd0f828..3c5d150 100644 --- a/src/test/resources/test-build-should-timeout/pom.xml +++ b/src/test/resources/test-build-should-timeout/pom.xml @@ -31,15 +31,4 @@ under the License. test - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.22.2 - - - - diff --git a/src/test/resources/test-space-properties/pom.xml b/src/test/resources/test-space-properties/pom.xml index b199951..e162450 100644 --- a/src/test/resources/test-space-properties/pom.xml +++ b/src/test/resources/test-space-properties/pom.xml @@ -28,7 +28,7 @@ under the License. org.apache.maven.plugins maven-antrun-plugin - 3.0.0 + ${version.maven-antrun-plugin}