AEM 6.1 Maven Dependency Resolution

假如想象 提交于 2019-12-20 03:07:40

问题


I'm using AEM6.1 with Maven as build manager.

I want to extend the com.day.cq.dam.core.process.ThumbnailProcess class. Using the AEM buit-in dependency resolver

system/console/depfinder

it seems that the class should be contained in

<dependency> 
  <groupId>com.day.cq.dam</groupId> 
  <artifactId>cq-dam-core</artifactId> 
  <version>5.8.172</version> 
  <scope>provided</scope> 
</dependency>

Anyway the Adobe nexus repo does not contain this version and all the older do not provide the above class.

I wish to know how to manage this problem. Thanks for any advice.


回答1:


In the latest version Adobe pushed everything into a giant dependencies jar.

Put this at the end of your POM:

<depen­dency>
   <groupId>com.adobe.aem</groupId>
   <arti­fac­tId>uber-jar</arti­fac­tId>
   <ver­sion>6.1.0</ver­sion>
   <scope>pro­vided</scope>
   <clas­si­fier>obfuscated-apis</clas­si­fier>
</depen­dency>


来源:https://stackoverflow.com/questions/33675700/aem-6-1-maven-dependency-resolution

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!