我曾经与CRXDE Eclipse一起工作,现在我正在将项目迁移到Maven。我列出了所有的依赖关系。并把它们放在bundle/pom.xml中。其中之一是无法从Maven Repository下载CQ DAM API JAR?
<dependency>
<groupId>com.day.cq.dam</groupId>
<artifactId>cq-dam-api</artifactId>
<version>5.5.0</version>
</dependency>
而且我还添加存储库信息在家长的pom.xml
<repository>
<id>adobe-releases</id>
<url>https://repo.adobe.com/nexus/content/groups/public/</url>
</repository>
如前所述Here
所有其他罐子除了下载这个罐子。 这是错误,当我尝试安装
[ERROR] Failed to execute goal on project hrportal-bundle: Could not resolve dep
endencies for project hrporatal:hrportal-bundle:bundle:1.1.0-SNAPSHOT: Failed to
collect dependencies at com.day.cq.dam:cq-dam-api:jar:5.5.0: Failed to read art
ifact descriptor for com.day.cq.dam:cq-dam-api:jar:5.5.0: Could not transfer art
ifact com.day.cq.dam:cq-dam-api:pom:5.5.0 from/to adobe (http://repo.adobe.com/n
exus/content/groups/public): java.lang.RuntimeException: Could not generate DH k
eypair: Prime size must be multiple of 64, and can only range from 512 to 1024 (
inclusive) -> [Help 1]
当我检查了文件夹的.m2我看不到下载的JAR,我只看到一个文件,它具有以下书面里面。
#NOTE: This is an Aether internal implementation file, its format can be changed without prior notice.
#Mon Jan 05 15:19:27 IST 2015
http\://repo.maven.apache.org/maven2/.lastUpdated=1420449912904
https\://code.lds.org/nexus/content/groups/main-repo/.error=
@default-https\://repo.adobe.com/nexus/content/groups/public/.lastUpdated=1420451367149
http\://repo.maven.apache.org/maven2/.error=
https\://code.lds.org/nexus/content/groups/main-repo/.lastUpdated=1420449911681
@default-http\://repo.adobe.com/nexus/content/groups/public/.lastUpdated=1420451366718
https\://repo.adobe.com/nexus/content/groups/public/.error=Could not transfer artifact com.day.cq.dam\:cq-dam-api\:pom\:5.5.0 from/to adobe-releases (https\://repo.adobe.com/nexus/content/groups/public/)\: java.lang.RuntimeException\: Could not generate DH keypair
http\://repo.adobe.com/nexus/content/groups/public/.error=Could not transfer artifact com.day.cq.dam\:cq-dam-api\:pom\:5.5.0 from/to adobe (http\://repo.adobe.com/nexus/content/groups/public)\: java.lang.RuntimeException\: Could not generate DH keypair
请帮我我是新来的Maven。 Maven提供的范围是什么?
什么版本的Java您使用的是?它看起来像你在java中遇到了一个错误,详细的答案如下:http://stackoverflow.com/a/6852095/1570834 – DB5
顺便提供了'provided'范围的详细信息,请参阅以下页面:http:/ /maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html。 – DB5
@ DB5我正在使用Java版本6. – Oliver