-
Notifications
You must be signed in to change notification settings - Fork 8.2k
fix(dashboard): ${user.home} is resolved when maven package #2046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(dashboard): ${user.home} is resolved when maven package #2046
Conversation
${user.home} should be resolve in dashboard runtime, not maven package.
cdfive
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
According the document the issue referred, the default delimiters are,
<delimiters>
<delimiter>${*}</delimiter>
<delimiter>@</delimiter>
</delimiters>So here need to specify the @ as the only delimiter.
I package it, and get the expected application.properties in the fat jar.
Run the jar, get the expected log file.
It works fine and must be very helpful for users, thanks! @Anilople
|
Thanks for contributing! |
… dashboard pom (alibaba#2046) `${user.home}` should be resolve in dashboard runtime, not in maven package goal
… dashboard pom (alibaba#2046) `${user.home}` should be resolve in dashboard runtime, not in maven package goal
… dashboard pom (alibaba#2046) `${user.home}` should be resolve in dashboard runtime, not in maven package goal
… dashboard pom (alibaba#2046) `${user.home}` should be resolve in dashboard runtime, not in maven package goal
… dashboard pom (alibaba#2046) `${user.home}` should be resolve in dashboard runtime, not in maven package goal
… dashboard pom (alibaba#2046) `${user.home}` should be resolve in dashboard runtime, not in maven package goal
Describe what this PR does / why we need it
${user.home} in
application.propertiesshould be resolved in dashboard runtime, not after maven package.Does this pull request fix one issue?
Fixes #2045
Describe how you did it
Change maven-resources-plugin's behavior by use delimiter
@Describe how to verify it
Run
mvn clean package -DskipTestson project, then checkBOOT-INF/classes/application.propertiesin filesentinel-dashboard/target/sentinel-dashboard.jarapplication.properties's content is changed.Only
sentinel.dashboard.version=@project.version@is changed to
sentinel.dashboard.version=1.8.2-SNAPSHOTAnd
logging.file=${user.home}/logs/csp/sentinel-dashboard.logkeep same as source code.
Special notes for reviews