From bd82c070e853319c6739c3ebf0d339566bde7b05 Mon Sep 17 00:00:00 2001 From: dangohoshi <65542305+dangohoshi@users.noreply.github.com> Date: Fri, 10 Jan 2025 08:55:39 +0800 Subject: [PATCH] Modify gettingstarted - since 2025.1.2, maven archetype requires Java 17+ An upgrade of Jetty, the maven plugin requires Java 17+. Added an example of creating the first web application using Java 11, which uses the 2024.11.13 archetype. --- src/main/markdown/gettingstarted-v2.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/markdown/gettingstarted-v2.md b/src/main/markdown/gettingstarted-v2.md index 89307edde..c173a9b18 100644 --- a/src/main/markdown/gettingstarted-v2.md +++ b/src/main/markdown/gettingstarted-v2.md @@ -44,6 +44,16 @@ mvn archetype:generate \ -DarchetypeArtifactId=modular-webapp ``` +If you are using a Java version earlier than 17, consider using a previous Maven archetype. The recent upgrade of Jetty to version 12 +requires Java 17 or newer. + +```shell +mvn archetype:generate \ + -DarchetypeGroupId=net.ltgt.gwt.archetypes \ + -DarchetypeVersion=2024.11.13 \ + -DarchetypeArtifactId=modular-webapp +``` + The archetype will request values for: * **groupId**: com.mycompany.mywebapp