-
Notifications
You must be signed in to change notification settings - Fork 2k
Fix Maven build warnings and minor doc issues #2675
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 warnings and minor doc issues #2675
Conversation
Welcome @loffing! |
@@ -1,5 +1,5 @@ | |||
# This workflow will build a Java project with Maven | |||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |||
# For more information see: https://docs.github.com/actions/automating-builds-and-tests/building-and-testing-java-with-maven |
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.
Noticed that this URL was broken and just redirects to the support landing page
@@ -6,9 +6,6 @@ | |||
<name>client-java-fluent-gen</name> | |||
<url>https://github.com/kubernetes-client/java</url> | |||
<description>Client Java Fluent Generator</description> | |||
<prerequisites> |
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.
Replaced the prerequisites
tag with maven-enforcer-plugin
to eliminate warnings like the following:
[WARNING] The project io.kubernetes:client-java-parent:pom:18.0.0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
@@ -392,6 +388,16 @@ | |||
<artifactId>gmavenplus-plugin</artifactId> | |||
<version>2.1.0</version> | |||
</plugin> | |||
<plugin> | |||
<groupId>org.jacoco</groupId> | |||
<artifactId>jacoco-maven-plugin</artifactId> |
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.
Defined version for jacoco-maven-plugin
in parent pom to eliminate warnings like the following:
[WARNING] Some problems were encountered while building the effective model for io.kubernetes:client-java:bundle:18.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.jacoco:jacoco-maven-plugin is missing. @ line 123, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.kubernetes:client-java-spring-integration:bundle:18.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.jacoco:jacoco-maven-plugin is missing. @ line 77, column 15
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.kubernetes:client-java-spring-aot-integration:bundle:18.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.jacoco:jacoco-maven-plugin is missing. @ line 52, column 21
[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.
I believe this issue was introduced in #2493 when the jacoco-maven-plugin
dependency was moved to the parent pom, but not added to the pluginManagement
block.
@@ -568,7 +593,6 @@ limitations under the License. | |||
<plugin> | |||
<groupId>org.jacoco</groupId> | |||
<artifactId>jacoco-maven-plugin</artifactId> | |||
<version>0.8.10</version> |
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.
Version now defined in parent pom
/easycla |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brendandburns, loffing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@brendandburns Do you know why the Looks like the
|
prerequisites
tag (replaced bymaven-enforcer-plugin
)jacoco-maven-plugin
(introduced by Chore: Merge jacoco maven plugin declaration to parent pom #2493)