我曾經與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