Skip to content

Bootable JAR creation migration guide - #916

Merged
rhusar merged 1 commit into
wildfly:mainfrom
jfdenise:migrate_bootable_jar
Oct 5, 2026
Merged

rhusar merged 1 commit into
wildfly:mainfrom
jfdenise:migrate_bootable_jar

Conversation

@jfdenise

Copy link
Copy Markdown
Contributor

No description provided.

@jfdenise
jfdenise requested a review from jmesnil June 12, 2026 08:08
@github-actions

Copy link
Copy Markdown

A preview of this PR is available at https://pr-916-wildfly-org.surge.sh

@rhusar

rhusar commented Jun 29, 2026

Copy link
Copy Markdown
Member

@jfdenise Can you find/nominate someone to review?

@jfdenise

Copy link
Copy Markdown
Contributor Author

@jmesnil would be a good candidate for this review.

</configuration>
----

NOTE: The `<feature-pack-location>` element as to be replaced by a nested location in the array of feature-packs.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
NOTE: The `<feature-pack-location>` element as to be replaced by a nested location in the array of feature-packs.
NOTE: The `<feature-pack-location>` element has to be replaced by a nested location in the array of feature-packs.

@rhusar

rhusar commented Jun 29, 2026

Copy link
Copy Markdown
Member

@jmesnil would be a good candidate for this review.

Excellent, please have a look @jmesnil whenever you have a minute.

Just left a typo I spotted now.

@hpehl

hpehl commented Sep 17, 2026

Copy link
Copy Markdown
Contributor
  • @hpehl Manually tear down the preview once this PR is merged or closed.

@jfdenise

Copy link
Copy Markdown
Contributor Author

@jmesnil , would you mind give a review? Thank-you.

@bstansberry

Copy link
Copy Markdown
Contributor

@jfdenise A general comment is I see a number of places where "WildFly ... Plugin" should be "the WildFly ... Plugin" -- i.e. "the" is missing. Maybe in the title if you are trying to be a short as possible that's ok, but in normal text it reads as ungrammatical.

I'm too lazy to point out the specifics. ;)

@jfdenise
jfdenise force-pushed the migrate_bootable_jar branch from 83e930b to 881e49b Compare October 2, 2026 07:34
@jfdenise

jfdenise commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

@bstansberry and @rhusar, thank-you. I have made the suggestions.

@rhusar

rhusar commented Oct 2, 2026

Copy link
Copy Markdown
Member

@jfdenise I don't have the capacity to assess this, but AI review found the following issues:

Wrong or misleading guidance

  1. Root context is lost (line 374): Step 3 says the old plugin deployed at / by default, but the "After" configs in Examples 1, 4 and 5 leave out ROOT.war. A user who copies them gets the app at //, and existing URLs and health probes return 404.
  2. run and dev goal mapping (line 339): the guide maps wildfly-jar:run → wildfly:run and wildfly-jar:dev → wildfly:dev. In 6.0.1, neither new goal has a bootable-JAR parameter, so they deploy to a regular server instead of running the bootable JAR.
  3. CLI script settings (line 282):
    • is now a list, and the guide doesn't say so.
    • resolve-expressions defaults to false in the new plugin (confirmed). If the old plugin defaulted it to true (not checked), ${env.X} expressions in CLI scripts stop resolving after migration.
  4. options (line 240): the guide calls the cloud feature-pack "identical" to , but child settings like and have no migration path and are silently dropped.
  5. ROOT.war only fits WAR projects (line 65): for EAR or JAR packaging, the deployment gets the wrong extension and fails to deploy.

Missing from the guide
6. dev-watch and runtime arguments (line 318): the goal table leaves out wildfly-jar:dev-watch and the wildfly.bootable.arguments / wildfly.bootable.jvmArguments properties. The guide should point users to the server-args / java-opts parameters of the new plugin's start-jar goal.
7. Rename table is incomplete (line 284): for example, install-artifact-classifier → bootable-jar-install-artifact-classifier and display-cli-scripts-output → stdout aren't listed. The old names are ignored with at most a warning, so nothing tells the user why the build changed.

Do you want to address any of this?

@jfdenise
jfdenise force-pushed the migrate_bootable_jar branch from 881e49b to a0c8d27 Compare October 5, 2026 09:17
@jfdenise

jfdenise commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

@rhusar , thank-you. I addressed them

Comment thread content/guides/wildfly-jar-migration.adoc Outdated
Comment thread content/guides/wildfly-jar-migration.adoc Outdated
Comment thread content/guides/wildfly-jar-migration.adoc
@rhusar

rhusar commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Few more comments that all cause the migrated setup to fail.

@jfdenise
jfdenise force-pushed the migrate_bootable_jar branch from a0c8d27 to 19bf29f Compare October 5, 2026 09:51
@jfdenise

jfdenise commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

@rhusar , thank-you. Fixed.

Comment thread content/guides/wildfly-jar-migration.adoc Outdated
@jfdenise
jfdenise force-pushed the migrate_bootable_jar branch from 19bf29f to 43d7f1e Compare October 5, 2026 11:08

@rhusar rhusar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All critical issues have been fixed, moving on with this.

@rhusar
rhusar merged commit 13d88c4 into wildfly:main Oct 5, 2026
1 check passed
@rhusar

rhusar commented Oct 5, 2026

Copy link
Copy Markdown
Member

Thanks @jfdenise !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants