adobe / aemanalyser-maven-plugin

A Maven plugin used by developers who develop Java components for AEMaaCS (AEM as a Cloud Service) during their local Java builds to ensure that their components work correctly in when deployed to AEM as a Cloud Service.
Apache License 2.0
23 stars 20 forks source link

How to specify artifact override rule #196

Open royteeuwen opened 1 year ago

royteeuwen commented 1 year ago

I am building an 'all' package that contains another package which has some of the same dependencies of different versions. When compiling the all package, I get the following exception:

[ERROR] Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:1.5.8:project-analyse (aem-analyser) on project daikin-aem-cloud.all: Execution aem-analyser of goal com.adobe.aem:aemanalyser-maven-plugin:1.5.8:project-analyse failed: Artifact override rule required to select between these two artifacts Artifact [id=io.wcm:io.wcm.caconfig.editor:jar:bundle:1.15.2] and Artifact [id=io.wcm:io.wcm.caconfig.editor:jar:bundle:1.12.2]. The rule must be specified for [io.wcm:io.wcm.caconfig.editor:jar:bundle:1.15.2] -> [Help 1]

How and where should I specify this artifact override rule?

cziegeler commented 1 month ago

Is this still a problem? It would be good to have a reproducible test case