Skip to content
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 maven build ${version} deprecation warning #1209

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

cjcjameson
Copy link
Contributor

Signed-off-by: C.J. Jameson cjcjameson@gmail.com

opensearch-security pull request intake form

  1. Category:

maintenance

  1. Github Issue # or road-map entry, if available:

n/a

  1. Description of changes:

mvn package warns...

[WARNING] Some problems were encountered while building the effective model for org.opensearch:opensearch-security:jar:1.0.0.0-rc1
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[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.

  1. Why these changes are required?

make it easier to upgrade pom.xml dependencies

  1. What is the old behavior before changes and new behavior after changes? (Please add any example/logs/screen-shot if available)

  2. Testing done: (Please provide details of testing done: Unit testing, integration testing and manual testing)

  3. TO-DOs, if any: (Please describe pending items and provide Github issues# for each of them)

  4. Is it backport from main branch? (If yes, please add backport PR # and commits #)

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or

(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or

(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.

(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@cjcjameson cjcjameson requested a review from a team May 28, 2021 03:23
@vrozov
Copy link
Contributor

vrozov commented Jun 21, 2021

Please rebase and resolve conflicts

@cjcjameson cjcjameson force-pushed the mvn-project-warning branch from 53d725c to 31f7c79 Compare June 22, 2021 04:43
@cjcjameson
Copy link
Contributor Author

@vrozov rebased

@codecov-commenter
Copy link

codecov-commenter commented Jun 22, 2021

Codecov Report

Merging #1209 (6d0759a) into main (ea382b4) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #1209   +/-   ##
=========================================
  Coverage     64.75%   64.75%           
- Complexity     3194     3195    +1     
=========================================
  Files           247      247           
  Lines         17232    17232           
  Branches       3046     3046           
=========================================
  Hits          11159    11159           
  Misses         4523     4523           
  Partials       1550     1550           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ea382b4...6d0759a. Read the comment docs.

vrozov
vrozov previously approved these changes Jul 14, 2021
Copy link
Contributor

@vrozov vrozov left a comment

Choose a reason for hiding this comment

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

LGTM

@vrozov vrozov added the maintenance Project maintenance label Jul 14, 2021
cliu123
cliu123 previously approved these changes Jul 14, 2021
@cliu123
Copy link
Member

cliu123 commented Jul 14, 2021

@cjcjameson Would you please sign the commit and push it one more time?

@cjcjameson cjcjameson dismissed stale reviews from cliu123 and vrozov via 6d0759a July 15, 2021 00:07
@cjcjameson cjcjameson force-pushed the mvn-project-warning branch from 31f7c79 to 6d0759a Compare July 15, 2021 00:07
@cjcjameson
Copy link
Contributor Author

@vrozov @cliu123 signed and rebased, thanks!

cliu123
cliu123 previously approved these changes Jul 15, 2021
vrozov
vrozov previously approved these changes Jul 18, 2021
@cjcjameson
Copy link
Contributor Author

@vrozov all set for you to merge

@vrozov vrozov self-requested a review July 19, 2021 04:07
build.gradle Outdated Show resolved Hide resolved
@cjcjameson cjcjameson dismissed stale reviews from vrozov and cliu123 via 36e829f July 19, 2021 19:30
@cjcjameson cjcjameson force-pushed the mvn-project-warning branch from 6d0759a to 36e829f Compare July 19, 2021 19:30
`mvn package` warns...

[WARNING] Some problems were encountered while building the effective model for org.opensearch:opensearch-security:jar:1.0.0.0-rc1
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[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.

Signed-off-by: C.J. Jameson <cjcjameson@gmail.com>
@cjcjameson cjcjameson force-pushed the mvn-project-warning branch from 36e829f to 494db0a Compare July 19, 2021 21:10
@cjcjameson
Copy link
Contributor Author

Re-running CI system. Failure seems unrelated.

Error: 7-19T20:11:09,385][ERROR][org.opensearch.security.test.helper.file.FileHelper] Failed to load dlsfls/nodes_dn.yml
Error: 7-19T20:11:09,386][ERROR][org.opensearch.security.test.helper.file.FileHelper] Failed to load dlsfls/whitelist.yml

@vrozov vrozov changed the title address maven warning for version interpolation Fix maven build ${version} deprecation warning Jul 20, 2021
Copy link
Contributor

@vrozov vrozov left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for contribution.

@cjcjameson
Copy link
Contributor Author

@cliu123 can you be the one to merge? I cannot.

@vrozov vrozov merged commit 28c1b3a into opensearch-project:main Jul 20, 2021
AMoo-Miki pushed a commit to AMoo-Miki/security that referenced this pull request Aug 13, 2021
lbreinig pushed a commit to lbreinig/security that referenced this pull request Dec 23, 2021
wuychn pushed a commit to ochprince/security that referenced this pull request Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Project maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants