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
and in pom.xml I use key from the version.properties file like this:
<version>${application.version}</version>
But when I run package goal, I see following output:
[WARNING]
[WARNING] Some problems were encountered while building the effective model for my.project:server:jar:${application.version}
[WARNING] 'version' contains an expression but should be a constant. @ line 11, column 14
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] -------------------------< my.project:server >--------------------------
[INFO] Building server ${application.version}
[INFO] --------------------------------[ jar ]---------------------------------
I tried different phases, but result always is the same.
Why this warning appears and how to resolve it?
Thanks.
The text was updated successfully, but these errors were encountered:
[INFO] -------------------------< my.project:server >--------------------------
[INFO] Building server ${revision}
[INFO] --------------------------------[ jar ]---------------------------------
Here version still is not substituted for some reason.
But final artifact contains version number as expected.
I am trying to use this plugin to read version value from the properties file.
I took a sample from official site:
and in pom.xml I use key from the version.properties file like this:
But when I run package goal, I see following output:
I tried different phases, but result always is the same.
Why this warning appears and how to resolve it?
Thanks.
The text was updated successfully, but these errors were encountered: