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 gradle publishToMavenLocal failed #3069

Conversation

hangc0276
Copy link
Contributor

Motivation

When run command ./gradlew publishToMavenLocal to publish jars to local maven repository, it failed with the following exception.

Maven publication 'maven' pom metadata warnings (silence with 'suppressPomMetadataWarningsFor(variant)'):
  - Variant testFixturesApiElements:
      - Declares capability bookkeeper:bookkeeper-common-test-fixtures:unspecified which cannot be mapped to Maven
  - Variant testFixturesRuntimeElements:
      - Declares capability bookkeeper:bookkeeper-common-test-fixtures:unspecified which cannot be mapped to Maven
These issues indicate information that is lost in the published 'pom' metadata file, which may be an issue if the published library is consumed by an old Gradle version or Apache Maven.
The 'module' metadata file, which is used by Gradle 6+ is not affected.
> Task :generateMetadataFileForMavenPublication FAILED

FAILURE: Build failed with an exception.

Changes

Disable the validation errors.
Refer to: https://docs.gradle.org/7.3.3/userguide/publishing_setup.html#sec:suppressing_validation_errors

@hangc0276
Copy link
Contributor Author

rerun failure checks

1 similar comment
@hangc0276
Copy link
Contributor Author

rerun failure checks

@hangc0276 hangc0276 force-pushed the chenhang/fix_gradle_publishToMavenLocal_failed branch from 5f091a6 to 49e058a Compare February 21, 2022 02:02
@hangc0276
Copy link
Contributor Author

rerun failure checks

1 similar comment
@hangc0276
Copy link
Contributor Author

rerun failure checks

@hangc0276 hangc0276 force-pushed the chenhang/fix_gradle_publishToMavenLocal_failed branch from 49e058a to 6c89693 Compare February 22, 2022 03:45
@hangc0276
Copy link
Contributor Author

rerun failure checks

1 similar comment
@hangc0276
Copy link
Contributor Author

rerun failure checks

@pkumar-singh pkumar-singh merged commit 5b9b06f into apache:master Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants