hangc0276 opened a new pull request #3069:
URL: https://github.com/apache/bookkeeper/pull/3069


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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to