[
https://issues.apache.org/jira/browse/FLINK-31161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17692462#comment-17692462
]
Ran Tao commented on FLINK-31161:
---------------------------------
hi, guys. i got same issue. in my company, we have a extended project inherit
from flink, we can not use mvn versions:set to change version cause by
[ERROR] Failed to execute goal
org.codehaus.mojo:versions-maven-plugin:2.15.0:set (default-cli) on project
flink-plus: Project version is inherited from parent. -> [Help 1].
because current plugin can not change inherited parent version.
> upgrade MojoHaus Versions Maven Plugin to 2.14.2
> ------------------------------------------------
>
> Key: FLINK-31161
> URL: https://issues.apache.org/jira/browse/FLINK-31161
> Project: Flink
> Issue Type: Bug
> Components: Build System
> Affects Versions: 1.18.0
> Reporter: jackylau
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.18.0
>
> Attachments: image-2023-02-21-12-17-20-195.png
>
>
> when we use multiple project, the parrent struct like this
> [https://stackoverflow.com/questions/39449275/update-parent-version-in-a-maven-projects-module.]
> when i use
> mvn org.codehaus.mojo:versions-maven-plugin:2.8.1:update-parent
> -DparentVersion=[1.15.2.1] -DallowSnapshots
> could not change parrent version.
> !image-2023-02-21-12-17-20-195.png!
>
> it is fixed added by skipResolution by upgrading to 2.14.2
> [https://www.mojohaus.org/versions/versions-maven-plugin/update-parent-mojo.html]
> {code:java}
> mvn org.codehaus.mojo:versions-maven-plugin:2.14.2:update-parent
> -DparentVersion=[1.15.2.1] -DallowSnapshots -DskipResolution{code}
> [https://github.com/mojohaus/versions/tree/2.14.2]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)