diff --git a/.github/workflows/scaffolding-parity.yml b/.github/workflows/scaffolding-parity.yml
index 75724c17a1f..8b4240785ba 100644
--- a/.github/workflows/scaffolding-parity.yml
+++ b/.github/workflows/scaffolding-parity.yml
@@ -9,26 +9,37 @@ name: Scaffolding artifact integrity
# android.onDeviceDebug, ...) were added to the archetype but never to the initializr's
# common.zip, so they were silently missing from initializr projects.
#
-# The check only needs python3 + unzip, so it runs fast and is path-gated to the two
+# It also guards the Codename One repository declaration in the three generated root
+# POMs. Dropping it is invisible at generation time -- Maven Central still serves every
+# already-published version -- and only surfaces after the migration cutover, as newly
+# generated projects that cannot see new releases.
+#
+# The check only needs python3 + unzip, so it runs fast and is path-gated to the
# templates and the test harness itself.
on:
pull_request:
branches: [ master ]
paths:
- 'maven/cn1app-archetype/src/main/resources/archetype-resources/common/codenameone_settings.properties'
+ - 'maven/cn1app-archetype/src/main/resources/archetype-resources/pom.xml'
+ - 'maven/cn1lib-archetype/src/main/resources/archetype-resources/pom.xml'
- 'scripts/initializr/common/src/main/resources/common.zip'
- 'maven/integration-tests/scaffolding-settings-parity-test.sh'
- 'maven/integration-tests/normalize_cn1_settings.py'
- 'maven/integration-tests/validate_initializr_pom_coordinates.py'
+ - 'maven/integration-tests/validate_generated_repositories.py'
- '.github/workflows/scaffolding-parity.yml'
push:
branches: [ master ]
paths:
- 'maven/cn1app-archetype/src/main/resources/archetype-resources/common/codenameone_settings.properties'
+ - 'maven/cn1app-archetype/src/main/resources/archetype-resources/pom.xml'
+ - 'maven/cn1lib-archetype/src/main/resources/archetype-resources/pom.xml'
- 'scripts/initializr/common/src/main/resources/common.zip'
- 'maven/integration-tests/scaffolding-settings-parity-test.sh'
- 'maven/integration-tests/normalize_cn1_settings.py'
- 'maven/integration-tests/validate_initializr_pom_coordinates.py'
+ - 'maven/integration-tests/validate_generated_repositories.py'
- '.github/workflows/scaffolding-parity.yml'
concurrency:
@@ -43,5 +54,7 @@ jobs:
- uses: actions/checkout@v6
- name: Validate Initializr embedded Maven coordinates
run: python3 maven/integration-tests/validate_initializr_pom_coordinates.py
+ - name: Validate Codename One repository is declared by every scaffold
+ run: python3 maven/integration-tests/validate_generated_repositories.py
- name: Compare archetype vs initializr codenameone_settings.properties
run: bash maven/integration-tests/scaffolding-settings-parity-test.sh
diff --git a/maven/cn1app-archetype/src/main/resources/archetype-resources/pom.xml b/maven/cn1app-archetype/src/main/resources/archetype-resources/pom.xml
index dc25455e180..c659deb855e 100644
--- a/maven/cn1app-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/maven/cn1app-archetype/src/main/resources/archetype-resources/pom.xml
@@ -138,12 +138,36 @@
+
-
-
+
+ codenameone
+ https://repo.codenameone.com/maven2
+
+ true
+
+
+ false
+
+
-
+
+ codenameone-plugins
+ https://repo.codenameone.com/maven2
+
+ true
+
+
+ false
+
+
diff --git a/maven/cn1lib-archetype/src/main/resources/archetype-resources/pom.xml b/maven/cn1lib-archetype/src/main/resources/archetype-resources/pom.xml
index 094a899d493..48c8c146d32 100644
--- a/maven/cn1lib-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/maven/cn1lib-archetype/src/main/resources/archetype-resources/pom.xml
@@ -225,6 +225,37 @@
+
+
+
+ codenameone
+ https://repo.codenameone.com/maven2
+
+ true
+
+
+ false
+
+
+
+
+
+ codenameone-plugins
+ https://repo.codenameone.com/maven2
+
+ true
+
+
+ false
+
+
+