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

[Bug][build] maven package -Dmaven.test.skip is broken #22724

Open
3 tasks done
khac opened this issue May 16, 2024 · 2 comments
Open
3 tasks done

[Bug][build] maven package -Dmaven.test.skip is broken #22724

khac opened this issue May 16, 2024 · 2 comments
Labels
type/bug The PR fixed a bug or issue reported a bug

Comments

@khac
Copy link

khac commented May 16, 2024

Search before asking

  • I searched in the issues and found nothing similar.

Read release policy

  • I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

Current java version is 17,

OpenJDK Runtime Environment Corretto-17.0.11.9.1 (build 17.0.11+9-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.11.9.1 (build 17.0.11+9-LTS, mixed mode, sharing)

OS: Macos 13, M1 chip
Pulsar version: 3.4.0-SNAPSHOT

Minimal reproduce step

I called the command

mvn package -Dmaven.test.skip

What did you expect to see?

I was expecting that pulsar-opentelemetry would install

[INFO] pulsar-opentelemetry ............................... FAILURE [  0.050 s]

What did you see instead?

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  35.411 s
[INFO] Finished at: 2024-05-16T13:56:31+05:30
[INFO] ------------------------------------------------------------------------
[INFO] 0 goals, 0 executed
[ERROR] Failed to execute goal on project pulsar-opentelemetry: Could not resolve dependencies for project 
org.apache.pulsar:pulsar-opentelemetry:jar:3.4.0-SNAPSHOT: The following artifacts could not be resolved: 
org.apache.pulsar:pulsar-broker-common:jar:tests:3.4.0-SNAPSHOT (absent): org.apache.pulsar:pulsar-broker-
common:jar:tests:3.4.0-SNAPSHOT was not found in https://repository.apache.org/snapshots during a previous attempt. This 
failure was cached in the local repository and resolution is not reattempted until the update interval of apache.snapshots has 
elapsed or updates are forced -> [Help 1]

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@khac khac added the type/bug The PR fixed a bug or issue reported a bug label May 16, 2024
@khac khac changed the title [Bug] [Bug] Failure to install pulsar-opentelemetry May 16, 2024
@khac
Copy link
Author

khac commented May 16, 2024

the installation worked fine on the tag released, 3.2.2

@lhotari
Copy link
Member

lhotari commented May 16, 2024

Unfortunately, mvn package -Dmaven.test.skip is broken for Pulsar. The workaround is to use -DskipTests.

@lhotari lhotari changed the title [Bug] Failure to install pulsar-opentelemetry [Bug][build] maven package -Dmaven.test.skip is broken May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

No branches or pull requests

2 participants