From 5d5e760d14cec6df52d0aa946250bfae8c9c1e14 Mon Sep 17 00:00:00 2001 From: "jose.pereda" Date: Tue, 15 Oct 2024 12:26:33 +0200 Subject: [PATCH] Remove unneeded maven version check --- src/main/java/com/gluonhq/NativeBaseMojo.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/main/java/com/gluonhq/NativeBaseMojo.java b/src/main/java/com/gluonhq/NativeBaseMojo.java index 72e19c3..3d1b62e 100644 --- a/src/main/java/com/gluonhq/NativeBaseMojo.java +++ b/src/main/java/com/gluonhq/NativeBaseMojo.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019, 2023, Gluon + * Copyright (c) 2019, 2024, Gluon * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -36,14 +36,12 @@ import com.gluonhq.substrate.SubstrateDispatcher; import com.gluonhq.substrate.model.Triplet; import com.gluonhq.substrate.target.WebTargetConfiguration; -import com.gluonhq.substrate.util.Version; import com.gluonhq.utils.MavenArtifactResolver; import org.apache.commons.exec.ProcessDestroyer; import org.apache.commons.exec.ShutdownHookProcessDestroyer; import org.apache.maven.artifact.Artifact; import org.apache.maven.execution.MavenSession; import org.apache.maven.model.Dependency; -import org.apache.maven.model.Repository; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.BuildPluginManager; import org.apache.maven.plugin.MojoExecutionException; @@ -77,8 +75,6 @@ public abstract class NativeBaseMojo extends AbstractMojo { private static final List ALLOWED_DEPENDENCY_TYPES = Collections.singletonList("jar"); - private static final Version MAX_SUPPORTED_MAVEN_VERSION = new Version(3, 9, 9); - Path outputDir; @Parameter(defaultValue = "${project}", readonly = true) @@ -177,12 +173,6 @@ public abstract class NativeBaseMojo extends AbstractMojo { private ProcessDestroyer processDestroyer; public SubstrateDispatcher createSubstrateDispatcher() throws IOException, MojoExecutionException { - String mavenVersion = runtimeInformation.getMavenVersion(); - Version version = new Version(mavenVersion); - if (version.compareTo(MAX_SUPPORTED_MAVEN_VERSION) > 0) { - throw new MojoExecutionException("Maven version " + mavenVersion + " is not currently supported by the GluonFX Maven Plugin.\n" + - "Please downgrade your Maven version to " + MAX_SUPPORTED_MAVEN_VERSION + " and then try again.\n"); - } if (getGraalvmHome().isEmpty()) { throw new MojoExecutionException("GraalVM installation directory not found." + " Either set GRAALVM_HOME as an environment variable or" +