You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's natural to think one might be able to change a value in server.xml and see the port change, and it's surprising to learn that this value is overridden by the Liberty variable generated from the pom.xml property.
The defaultValue serves a purpose in the Docker build, since we are not making use of the liberty-maven-plugin-generated values there.
This is a bit of an advanced point and maybe makes the "getting started" sample a bit too confusing, arguably.
Could we address with a comment?
Would it be just a bit less confusing to rename "default.http.port" => "http.port" ?
This applies to multiple guides too, not just this one.
The text was updated successfully, but these errors were encountered:
scottkurz
changed the title
Are the HTTP port defaultValues in server.xml more confusing than helpful?
Use of HTTP port value in pom.xml property and defaultValue in server.xml is confiusing
Mar 22, 2023
gkwan-ibm
transferred this issue from OpenLiberty/guide-getting-started
Aug 30, 2023
In pom.xml we set:
which we also pass to the test client via failsafe config.
In server.xml we have:
It's natural to think one might be able to change a value in server.xml and see the port change, and it's surprising to learn that this value is overridden by the Liberty variable generated from the pom.xml property.
The defaultValue serves a purpose in the Docker build, since we are not making use of the liberty-maven-plugin-generated values there.
This is a bit of an advanced point and maybe makes the "getting started" sample a bit too confusing, arguably.
Could we address with a comment?
Would it be just a bit less confusing to rename "default.http.port" => "http.port" ?
This applies to multiple guides too, not just this one.
The text was updated successfully, but these errors were encountered: