Skip to content

Conversation

@romain-grecourt
Copy link
Contributor

@romain-grecourt romain-grecourt commented Aug 20, 2025

Fixes #1135
Fixes #1137
Fixes #1138

Changes

Split the helidon-archetype-maven-plugin goals:

  • archetype:compile (compile only, produces target/archetype
  • archetype:jar (jar only, archives target/archetype into target/finalName.jar)
  • archetype:stage (stages target/cli-data)
  • archetype:integration-test (unchanged)

Misc

  • Add the splash message from Helidon directly in archetype:jar
  • Add a new option stageCli to create the cli-data directly in archetype:jar
  • Add a new option invokerId to choose how to invoke the archetype
  • Replace .mustache with .hbs in integration tests
  • Replace usage of org.apache.maven.plugin.logging.Log with io.helidon.build.common.logging.Log
  • Fix a model whitespace issue in ScriptCompiler
  • Fix empty model value handling in TemplateModel, add a test
  • Cleanup cli tests

@romain-grecourt romain-grecourt added this to the 4.0.21 milestone Aug 20, 2025
@romain-grecourt romain-grecourt self-assigned this Aug 20, 2025
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 20, 2025
Fixes helidon-io#1135

- Add the slash message from Helidon directly in archetype:jar
- Add the cli-data stagign directly in archetype:jar
- Add a new option invokerId to choose how to invoke the archetype
- Fix a model whitespace issue in ScriptCompiler.
@romain-grecourt romain-grecourt force-pushed the archetype-plugin-integration-test-exec-mode branch from 0e04d61 to 16c0706 Compare August 20, 2025 03:05
- Replace --cli-debug with HELIDON_CLI_DEBUG to avoid parsing command line arguments
- Rename all environment variables to HELIDON_CLI_ (to avoid future potential conflicts)
- Simplify the scripts to reduce risks since it is distributed to end users

Fix an issue in TemplateModel
- model values can be empty without CDATA
- use asString().orElse("") to retrieve value

Fix PathFinder to strictly look for windows executables when on windows.

Use the current cli distribution in helidon-archetype-maven-plugin it tests
Remove dev scripts
Cleanup functional tests
@romain-grecourt romain-grecourt merged commit 8adb5f2 into helidon-io:master Aug 25, 2025
24 checks passed
@romain-grecourt romain-grecourt deleted the archetype-plugin-integration-test-exec-mode branch August 25, 2025 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.x archetype OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

2 participants