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

Fix annoying "split package" build warnings #849

Open
adutra opened this issue Jan 22, 2025 · 0 comments
Open

Fix annoying "split package" build warnings #849

adutra opened this issue Jan 22, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@adutra
Copy link
Contributor

adutra commented Jan 22, 2025

Is your feature request related to a problem? Please describe.

When building Polaris, we often see an annoying message printed many times to the console, e.g.:

Detected a split package usage which is considered a bad practice and should be avoided. Following packages were detected in multiple archives: 
- "org.apache.polaris.service.quarkus.catalog.io" found in [org.apache.polaris:polaris-quarkus-service:1.0.0-incubating-SNAPSHOT]
- "org.apache.polaris.service.quarkus.metrics" found in [org.apache.polaris:polaris-quarkus-service:1.0.0-incubating-SNAPSHOT]
- "org.apache.polaris.service.quarkus.legacy" found in [org.apache.polaris:polaris-quarkus-service:1.0.0-incubating-SNAPSHOT]
- "org.apache.polaris.service.quarkus.persistence" found in [org.apache.polaris:polaris-quarkus-service:1.0.0-incubating-SNAPSHOT]
- "org.apache.polaris.service.quarkus.storage" found in [org.apache.polaris:polaris-quarkus-service:1.0.0-incubating-SNAPSHOT]
- "org.apache.polaris.service.quarkus.config" found in [org.apache.polaris:polaris-quarkus-service:1.0.0-incubating-SNAPSHOT]
- "org.apache.polaris.service.quarkus.tracing" found in [org.apache.polaris:polaris-quarkus-service:1.0.0-incubating-SNAPSHOT]
- "org.apache.polaris.service.quarkus.logging" found in [org.apache.polaris:polaris-quarkus-service:1.0.0-incubating-SNAPSHOT]
- "org.apache.polaris.service.quarkus.context" found in [org.apache.polaris:polaris-quarkus-service:1.0.0-incubating-SNAPSHOT]
- "org.apache.polaris.service.quarkus.ratelimiter" found in [org.apache.polaris:polaris-quarkus-service:1.0.0-incubating-SNAPSHOT]
- "org.apache.polaris.service.quarkus.auth" found in [org.apache.polaris:polaris-quarkus-service:1.0.0-incubating-SNAPSHOT]
- "org.apache.polaris.service.quarkus.task" found in [org.apache.polaris:polaris-quarkus-service:1.0.0-incubating-SNAPSHOT]

I don't think we have truly split packages in Polaris. The above is likely a false positive. This can be seen by the number of conflicting artifacts: there is always only one artifact. This probably hints at 2 or more artifacts produced by the same module, having the same name. One possible culprit would be the artifacts created by the distribution plugin.

Related discussion: quarkusio/quarkus#19030 (comment)

Describe the solution you'd like

No more annoying messages.

Describe alternatives you've considered

No response

Additional context

No response

@adutra adutra added the enhancement New feature or request label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant