Open v-fnuab opened 2 months ago
central is a reserved id (https://maven.apache.org/ref/3.9.9/maven-model-builder/super-pom.html) and should be used only for Maven Central. Overriding is basically similar to mirroring and in your case obviously not intended as https://my-company-maven-pkg
doesn't seem to be a fully compliant Maven repository.
I am facing an issue with the aemanalyser-maven-plugin artifact. According to our security team, we need to use the central repository ID. However, during the build process, we receive the following error:
Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:1.5.8:project-analyse (aem-analyser) on project aem-quantumhub-project.all: Failed to resolve version for com.adobe.aem:aem-sdk-api:jar:RELEASE: Could not find metadata com.adobe.aem:aem-sdk-api/maven-metadata.xml in local (/root/.m2/repository) -> [Help 1]
Platform and Version
AEM as cloud service and Azure
Sample Code that illustrates the problem
Example POM Structure:
The build fails to resolve the version for com.adobe.aem:aem-sdk-api due to missing metadata in the local repository. We need assistance in resolving this issue. Specifically, we are looking to understand if there is any restriction on using the central repository ID for this plugin. If I am using any other ID then build is working fine.
Seems AEM Analyser Maven Plugin is open-source and not part of the official AEM product. Can someone provide guidance on how to address this issue or suggest any alternatives?