From 4385bd4e59706a4b74cbc1174dcdc9018560155b Mon Sep 17 00:00:00 2001 From: Shai Almog <67850168+shai-almog@users.noreply.github.com> Date: Fri, 29 May 2026 16:25:54 +0300 Subject: [PATCH] scripts/initializr: sync template with cn1app-archetype The initializr-served project template drifted from the cn1app-archetype: - common/pom.xml and javase/pom.xml both lacked the org.junit.jupiter:junit-jupiter:5.9.3 test-scope dependency, so the JUnit 5 test that ships in common/src/test/java fails to compile ("package org.junit.jupiter.api does not exist") in any generated project. - common/pom.xml was missing the codenameone-maven-plugin transcode-svg execution and the process-annotations goal on cn1-process-classes, so generated apps had no SVG transcoding and no @Route dispatcher generation. Co-Authored-By: Claude Opus 4.7 (1M context) --- scripts/initializr/common/pom.xml | 34 +++++++++++++++++++++++++++++++ scripts/initializr/javase/pom.xml | 6 ++++++ 2 files changed, 40 insertions(+) diff --git a/scripts/initializr/common/pom.xml b/scripts/initializr/common/pom.xml index 6a217c55cc..f5d3085e3c 100644 --- a/scripts/initializr/common/pom.xml +++ b/scripts/initializr/common/pom.xml @@ -22,6 +22,12 @@ codenameone-javase test + + org.junit.jupiter + junit-jupiter + 5.9.3 + test + initializr-ZipSupport @@ -355,6 +361,19 @@ codenameone-maven-plugin + + + transcode-svg + generate-sources + + transcode-svg + + generate-gui-sources process-sources @@ -368,6 +387,12 @@ bytecode-compliance css + + process-annotations @@ -384,6 +409,15 @@ org.apache.maven.plugins maven-surefire-plugin + true diff --git a/scripts/initializr/javase/pom.xml b/scripts/initializr/javase/pom.xml index 9d2ee89d50..61f4d324f9 100644 --- a/scripts/initializr/javase/pom.xml +++ b/scripts/initializr/javase/pom.xml @@ -72,6 +72,12 @@ codenameone-javase provided + + org.junit.jupiter + junit-jupiter + 5.9.3 + test +