cancel
Showing results for 
Search instead for 
Did you mean: 

Simple maven build fails

pkasson
Champ in-the-making
Champ in-the-making
I have generated the all in one archetype and when doing a simple maven clean install, I get this:

[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]  
[ERROR]   The project org.kasstek:alfresco:1.0-SNAPSHOT (/Users/pkasson/dev/alfresco/alfresco/pom.xml) has 2 errors
[ERROR]     Unresolveable build extension: Plugin org.alfresco.maven.plugin:alfresco-maven-plugin:2.2.0 or one of its dependencies could not be resolved: Failed to collect dependencies for org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.2.0 (): Failed to read artifact descriptor for org.alfresco:alfresco-mmt:jar:5.1.e: Could not transfer artifact org.alfresco:alfresco-mmtSmiley Tongueom:5.1.e from/to alfresco-plugin-public (https://artifacts.alfresco.com/nexus/content/groups/public😞 java.lang.RuntimeException: Could not generate DH keypair: Prime size must be multiple of 64, and can only range from 512 to 1024 (inclusive) -> [Help 2]
[ERROR]     Non-resolvable import POM: Could not transfer artifact org.alfresco:alfresco-platform-distributionSmiley Tongueom:5.1.e from/to alfresco-public (https://artifacts.alfresco.com/nexus/content/groups/public😞 java.lang.RuntimeException: Could not generate DH keypair @ line 69, column 25: Prime size must be multiple of 64, and can only range from 512 to 1024 (inclusive) -> [Help 3]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]

Thanks for any help in advance.
3 REPLIES 3

afaust
Legendary Innovator
Legendary Innovator
Please check your Java version. It looks like there is a certificate validation error when getting artifacts from the Alfresco repository, which can be due to limitations of an older Java version.
For Alfresco 5.1, you should use Java 8.

pkasson
Champ in-the-making
Champ in-the-making
Thanks for the insight … I wondered that as well .. here is my Java version info:

java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)

jego
Star Contributor
Star Contributor

Can you check the environment by running the following command?

mvn -version‍
javac -version

Maybe you are running a jre instead of a jdk?

Thanks

Jens