【发布时间】:2017-03-11 04:53:15
【问题描述】:
我已经使用了如下所示的maven archetype10,并创建了项目结构,一切都很好。
mvn archetype:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=10 -DarchetypeRepository=https://repo.adobe.com/nexus/content/groups/public/
现在我想添加 aem uber-jar 依赖项并分别在项目 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:bundle:0.1:无法传输 工件 com.adobe.aem:uber-jar:jar:6.2.0 from/to adobe-public-releases (http://repo.adobe.com/nexus/content/groups/public): 主机名 证书不匹配:
<repo.adobe.com>!=<devedge.day.com>或<devedge.day.com>-> [帮助1]
是否缺少任何添加额外的依赖项以成功编译和运行。
【问题讨论】:
-
repo.adobe.com/nexus/content/groups/public/com/adobe/aem/… 在那里。所以可能 证书中的主机名不匹配: 就是故事。
-
我在我的本地实例中运行它并指向尝试通过使用
mvn clean install -PautoInstallPackage部署到我的 localhost:4502 作者实例
标签: maven maven-3 maven-plugin aem uberjar