commerce-cif-graphql-client icon indicating copy to clipboard operation
commerce-cif-graphql-client copied to clipboard

Error with aemanalyser (no export for com.codahale.metrics)

Open anianweber opened this issue 3 years ago • 0 comments

Expected Behaviour

The Analyser "aemanalyser-maven-plugin" doesn't throw an error.

Actual Behaviour

The Analyser "aemanalyser-maven-plugin" throws a warning and an errors for this package:

  • Warning: Usage of deprecated package found : org.apache.commons.lang
  • Error: com.adobe.commerce.cif:graphql-client:1.7.7: Bundle graphql-client:1.7.7 is importing package(s) com.codahale.metrics in start level 20 but no bundle is exporting these for that start level.

I have checked the dependencies against the aem-cif-guides-venia project, but as far as i can tell it doesn't even include the aemanalyser.

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Run the project-analyse task for the "aemanalyser-maven-plugin"

Platform and Version

  • AEMaaCS lokal dev setup
  • frontend-maven-plugin.version: 1.12.0
  • core.wcm.components.version: 2.17.10
  • core.cif.components.version: 2.6.0
  • graphql.client.version: 1.7.7
  • magento.graphql.version: 9.0.0-magento242ee
  • aemanalyser.version: 1.4.0

Sample Code that illustrates the problem

none

Logs taken while reproducing problem

Logs for the local maven build (for mvn clean install -P autoInstallPackage:

[WARNING] [region-deprecated-api] com.adobe.commerce.cif:graphql-client:1.7.7: Usage of deprecated package found : org.apache.commons.lang : Commons Lang 2 is in maintenance mode. Commons Lang 3 should be used instead. Deprecated since 2021-04-30 (com.cusomerxxx:aem-cusomerxxx-project.all:0.0.1-SNAPSHOT)
[region-deprecated-api] com.adobe.commerce.cif:graphql-client:1.7.7: Usage of deprecated package found : org.apache.commons.lang : Commons Lang 2 is in maintenance mode. Commons Lang 3 should be used instead. Deprecated since 2021-04-30 (com.cusomerxxx:aem-cusomerxxx-project.all:0.0.1-SNAPSHOT)
[region-deprecated-api] com.adobe.commerce.cif:graphql-client:1.7.7: Usage of deprecated package found : org.apache.commons.collections : Commons Collections 3 is in maintenance mode. Commons Collections 4 should be used instead. Deprecated since 2021-04-30 (com.cusomerxxx:aem-cusomerxxx-project.all:0.0.1-SNAPSHOT)

[ERROR] The analyser found the following errors for author and publish : 
[ERROR] [api-regions-exportsimports] com.adobe.commerce.cif:graphql-client:1.7.7: Bundle graphql-client:1.7.7 is importing package(s) com.codahale.metrics in start level 20 but no bundle is exporting these for that start level. (com.cusomerxxx:aem-cusomerxxx-project.all:0.0.1-SNAPSHOT)

anianweber avatar Feb 28 '22 16:02 anianweber