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

Protobuf-shaded package can not update version #7228

Merged
merged 5 commits into from Jun 11, 2020

Conversation

zymap
Copy link
Member

@zymap zymap commented Jun 10, 2020


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-''-''

---

*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-''-''
```
@zymap zymap changed the title Protobuf-shaeded package can not udpate version Protobuf-shaeded package can not udpated version Jun 10, 2020
@zymap zymap changed the title Protobuf-shaeded package can not udpated version Protobuf-shaeded package can not updated version Jun 10, 2020
@zymap zymap changed the title Protobuf-shaeded package can not updated version Protobuf-shaeded package can not update version Jun 10, 2020
@zymap zymap changed the title Protobuf-shaeded package can not update version Protobuf-shaded package can not update version Jun 10, 2020
@zymap zymap closed this Jun 10, 2020
@zymap zymap reopened this Jun 10, 2020
@zymap
Copy link
Member Author

zymap commented Jun 10, 2020

/pulsarbot run-failure-checks

@@ -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`
Copy link
Contributor

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

Copy link
Member Author

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.

@zymap
Copy link
Member Author

zymap commented Jun 11, 2020

/pulsarbot run-failure-checks

@merlimat merlimat merged commit 47f57b0 into apache:master Jun 11, 2020
@merlimat merlimat added this to the 2.7.0 milestone Jun 11, 2020
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
* 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
@wolfstudy
Copy link
Member

need to cherry-pick 2.6.2.

wolfstudy pushed a commit that referenced this pull request Oct 30, 2020
* 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants