diff --git a/ui/pom.xml b/ui/pom.xml index 4dd835ba..434b70fe 100644 --- a/ui/pom.xml +++ b/ui/pom.xml @@ -43,11 +43,6 @@ - - rokon12 - A N M Bazlur Rahman - bazlur@jugbd.org - jeyvison Jeyvison Nascimento @@ -63,11 +58,6 @@ Ivar Grimstad ivar.grimstad@eclipse-foundation.org - - ivonet - Ivo Woltring - ivo@ivonet.nl - @@ -102,7 +92,7 @@ 3.9.4 - + org.apache.maven.resolver maven-resolver-connector-basic @@ -151,9 +141,9 @@ 3.11.0 - org.apache.maven.plugins - maven-resources-plugin - 3.3.1 + org.apache.maven.plugins + maven-resources-plugin + 3.3.1 org.apache.maven.plugins @@ -207,7 +197,7 @@ - + diff --git a/ui/src/main/java/org/eclipse/starter/ui/Project.java b/ui/src/main/java/org/eclipse/starter/ui/Project.java index ced1a4ea..2f9fbbec 100644 --- a/ui/src/main/java/org/eclipse/starter/ui/Project.java +++ b/ui/src/main/java/org/eclipse/starter/ui/Project.java @@ -147,14 +147,10 @@ public void onJakartaVersionChange() { LOGGER.log(Level.INFO, "Validating form for Jakarta EE version: {0}, Jakarta EE profile: {1}, Java SE version: {2}, Docker: {3}, runtime: {4}", new Object[] { jakartaVersion, profile, javaVersion, docker, runtime }); + runtimes.get("tomee").setDisabled(true); + if (jakartaVersion != 10) { javaVersions.get("8").setDisabled(false); - - if (profile.equals("web")) { - runtimes.get("tomee").setDisabled(false); - } - - profiles.get("core").setDisabled(true); if ((jakartaVersion == 9) || (jakartaVersion == 9.1)) { @@ -162,9 +158,13 @@ public void onJakartaVersionChange() { } else { runtimes.get("wildfly").setDisabled(false); } + + if (profile.equals("web") && + ((jakartaVersion == 8) || ((jakartaVersion == 9.1) && (javaVersion != 8)))) { + runtimes.get("tomee").setDisabled(false); + } } else { javaVersions.get("8").setDisabled(true); - runtimes.get("tomee").setDisabled(true); if (!runtime.equals("glassfish")) { profiles.get("core").setDisabled(false); @@ -180,13 +180,20 @@ public void onProfileChange() { new Object[] { jakartaVersion, profile, javaVersion, docker, runtime }); jakartaVersions.get("8").setDisabled(false); - if (!runtime.equals("wildfly")) { + if (!(runtime.equals("wildfly") || runtime.equals("tomee"))) { jakartaVersions.get("9").setDisabled(false); - jakartaVersions.get("9.1").setDisabled(false); } - if (jakartaVersion != 10) { + if (!(runtime.equals("wildfly") + || (runtime.equals("tomee") && (javaVersion == 8)))) { + jakartaVersions.get("9.1").setDisabled(false); + } + + if ((jakartaVersion != 10) && !((jakartaVersion == 9.1) && runtime.equals("tomee"))) { javaVersions.get("8").setDisabled(false); + } + + if ((jakartaVersion == 8) || ((jakartaVersion == 9.1) && (javaVersion != 8))) { runtimes.get("tomee").setDisabled(false); } @@ -212,13 +219,23 @@ public void onJavaVersionChange() { LOGGER.log(Level.INFO, "Validating form for Jakarta EE version: {0}, Jakarta EE profile: {1}, Java SE version: {2}, Docker: {3}, runtime: {4}", new Object[] { jakartaVersion, profile, javaVersion, docker, runtime }); + runtimes.get("tomee").setDisabled(true); + if (javaVersion == 8) { jakartaVersions.get("10").setDisabled(true); profiles.get("core").setDisabled(true); + + if (profile.equals("web") && (jakartaVersion == 8)) { + runtimes.get("tomee").setDisabled(false); + } } else { if (!runtime.equals("tomee")) { jakartaVersions.get("10").setDisabled(false); } + + if (profile.equals("web") && ((jakartaVersion == 8) || (jakartaVersion == 9.1))) { + runtimes.get("tomee").setDisabled(false); + } } } @@ -255,29 +272,48 @@ public void onRuntimeChange() { profiles.get("full").setDisabled(false); + if (jakartaVersion != 10) { + javaVersions.get("8").setDisabled(false); + } + dockerFlags.get("true").setDisabled(false); if (runtime.equals("none")) { dockerFlags.get("true").setDisabled(true); } else if (runtime.equals("payara")) { - if ((jakartaVersion != 8) && (javaVersion == 8)) { - javaVersion = 11; + if (jakartaVersion != 8) { + if (javaVersion == 8) { + javaVersion = 11; + } + + javaVersions.get("8").setDisabled(true); } } else if (runtime.equals("glassfish")) { dockerFlags.get("true").setDisabled(true); profiles.get("core").setDisabled(true); - if ((jakartaVersion != 8) && (javaVersion == 8)) { - javaVersion = 11; + if (jakartaVersion != 8) { + if (javaVersion == 8) { + javaVersion = 11; + } + + javaVersions.get("8").setDisabled(true); } } else if (runtime.equals("tomee")) { jakartaVersions.get("10").setDisabled(true); + jakartaVersions.get("9").setDisabled(true); profiles.get("core").setDisabled(true); profiles.get("full").setDisabled(true); - if ((jakartaVersion != 8) && (javaVersion == 8)) { - javaVersion = 11; - } + javaVersions.get("8").setDisabled(true); + + if (jakartaVersion != 8) { + if (javaVersion == 8) { + javaVersion = 11; + } + + javaVersions.get("8").setDisabled(true); + } } else if (runtime.equals("wildfly")) { jakartaVersions.get("9.1").setDisabled(true); jakartaVersions.get("9").setDisabled(true); diff --git a/ui/src/main/java/org/eclipse/starter/ui/VersionInfo.java b/ui/src/main/java/org/eclipse/starter/ui/VersionInfo.java index 6afef264..fb89e93f 100644 --- a/ui/src/main/java/org/eclipse/starter/ui/VersionInfo.java +++ b/ui/src/main/java/org/eclipse/starter/ui/VersionInfo.java @@ -14,7 +14,7 @@ public class VersionInfo { public static final String VERSION_PROPERTY = "version"; - public static final String COMPILE_DEFAULT_ARCHETYPE_VERSION = "2.2.0"; + public static final String COMPILE_DEFAULT_ARCHETYPE_VERSION = "2.3.0"; public static final String ARCHETYPE_VERSION_ENV_VAR = System.getenv("ARCHETYPE_VERSION"); public static final String ARCHETYPE_VERSION = ( ARCHETYPE_VERSION_ENV_VAR != null) ? System.getenv("ARCHETYPE_VERSION") @@ -37,12 +37,8 @@ public Response getProperties() { } private void loadPomProperties() throws IOException { - InputStream is = this.getClass().getClassLoader() .getResourceAsStream("version.properties"); pomProperties.load(is); } - - } - diff --git a/ui/src/main/webapp/index.xhtml b/ui/src/main/webapp/index.xhtml index b1909888..194c90fd 100644 --- a/ui/src/main/webapp/index.xhtml +++ b/ui/src/main/webapp/index.xhtml @@ -72,7 +72,7 @@ - +