我已经使用了maven archetype10,如下所示,并创建了项目结构,并且一切正常。如何在maven build中添加aem Uber jar依赖项
mvn archetype:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=10 -DarchetypeRepository=https://repo.adobe.com/nexus/content/groups/public/
现在我想补充的AEM尤伯杯罐子依赖,并在项目的pom.xml分别在核心模块的pom.xml,也是我的仓库标签添加下面的依附关系卷标一样https://repo.adobe.com/
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<version>6.2.0</version>
<scope>provided</scope>
</dependency>
添加上面的依赖项标记后,当我编译它给我下面的错误。
[错误]未能就项目aemexample.core执行目标:无法 项目 com.krishh.example解决依赖关系:aemexample.core:包:0.1:无法转移 神器com.adobe。 AEM:尤伯杯的jar:罐子:6.2.0自/至 土坯公开发布版 (http://repo.adobe.com/nexus/content/groups/public):主机名 证书不匹配:
<repo.adobe.com>
=<devedge.day.com>
或<devedge.day.com>
- > [求助1]
是有什么缺少添加额外的依赖性来编译和成功运行。
https://repo.adobe.com/nexus/content/groups/public/com/adobe/aem/uber-jar/在那里。所以可能*证书中的主机名称不匹配:*是故事。 – nullpointer
在我的本地实例中运行它,并指向通过使用'mvn clean install -PautoInstallPackage'部署到我的本地主机:4502 **作者实例 – krish