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
Protobuf-shaded package can not update version #7228
Conversation
--- *Motivation* Using `set-project-version.sh` always failed with updating protobuf-shaded parent version. error log: ``` [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for org.apache.pulsar:protobuf-shaded:2.6.0-SNAPSHOT: Could not find artifact org.apache.pulsar:pulsar:pom:2.6.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 26, column 11 @ [ERROR] The build could not read 1 project > [Help 1] [ERROR] [ERROR] The project org.apache.pulsar:protobuf-shaded:2.6.0-SNAPSHOT (/home/zhangyong/actions-runner/_work/streamnative-ci/streamnative-ci/pulsar/protobuf-shaded/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.apache.pulsar:protobuf-shaded:2.6.0-SNAPSHOT: Could not find artifact org.apache.pulsar:pulsar:pom:2.6.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 26, column 11 > [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException-''-'' ```
56a1a91
to
e54cdc0
Compare
/pulsarbot run-failure-checks |
src/set-project-version.sh
Outdated
@@ -30,12 +30,13 @@ NEW_VERSION=$1 | |||
# Go to top level project directory | |||
pushd $(dirname "$0")/.. | |||
|
|||
# Get the current version | |||
OLD_VERSION=`mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec` |
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.
There's already a script that we use in multiple places to get the version: ./src/get-project-version.py
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.
Thanks for reminding me. I change to use the script to get the version. PTAL. Thanks.
/pulsarbot run-failure-checks |
* Protobuf-shaeded package can not udpate version --- *Motivation* Using `set-project-version.sh` always failed with updating protobuf-shaded parent version. error log: ``` [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for org.apache.pulsar:protobuf-shaded:2.6.0-SNAPSHOT: Could not find artifact org.apache.pulsar:pulsar:pom:2.6.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 26, column 11 @ [ERROR] The build could not read 1 project > [Help 1] [ERROR] [ERROR] The project org.apache.pulsar:protobuf-shaded:2.6.0-SNAPSHOT (/home/zhangyong/actions-runner/_work/streamnative-ci/streamnative-ci/pulsar/protobuf-shaded/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.apache.pulsar:protobuf-shaded:2.6.0-SNAPSHOT: Could not find artifact org.apache.pulsar:pulsar:pom:2.6.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 26, column 11 > [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException-''-'' ``` * Using 'sed' to replace the old version * Fix scripts * Address comments
need to cherry-pick 2.6.2. |
* Protobuf-shaeded package can not udpate version --- *Motivation* Using `set-project-version.sh` always failed with updating protobuf-shaded parent version. error log: ``` [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for org.apache.pulsar:protobuf-shaded:2.6.0-SNAPSHOT: Could not find artifact org.apache.pulsar:pulsar:pom:2.6.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 26, column 11 @ [ERROR] The build could not read 1 project > [Help 1] [ERROR] [ERROR] The project org.apache.pulsar:protobuf-shaded:2.6.0-SNAPSHOT (/home/zhangyong/actions-runner/_work/streamnative-ci/streamnative-ci/pulsar/protobuf-shaded/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.apache.pulsar:protobuf-shaded:2.6.0-SNAPSHOT: Could not find artifact org.apache.pulsar:pulsar:pom:2.6.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 26, column 11 > [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException-''-'' ``` * Using 'sed' to replace the old version * Fix scripts * Address comments (cherry picked from commit 47f57b0)
Motivation
Using
set-project-version.sh
always failed with updatingprotobuf-shaded parent version.
error log: