cancel
Showing results for 
Search instead for 
Did you mean: 

Cant create alfresco amp archetype 2.1

drisschelouati
Champ on-the-rise
Champ on-the-rise
Hi, when i try to setup an alfresco amp archetype version 2.1, Eclipse never finishes the project creation and i get the following message:

<cite>Could not calculate build plan: Plugin org.alfresco.maven.plugin:alfresco-maven-plugin:2.1.0 or one of its dependencies could not be resolved: Failure to transfer org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.1.0 from http://oss.sonatype.org/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-public has elapsed or updates are forced. Original error: Could not transfer artifact org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.1.0 from/to sonatype-public (http://oss.sonatype.org/content/groups/public😞 Network is unreachable: connect
Plugin org.alfresco.maven.plugin:alfresco-maven-plugin:2.1.0 or one of its dependencies could not be resolved: Failure to transfer org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.1.0 from http://oss.sonatype.org/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-public has elapsed or updates are forced. Original error: Could not transfer artifact org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.1.0 from/to sonatype-public (http://oss.sonatype.org/content/groups/public😞 Network is unreachable: connect</cite>

My internet connection is fine, so i dont know what goes wrong.
4 REPLIES 4

gravitonian
Star Collaborator
Star Collaborator
Hi,

Can you verify the tools installation according to: http://docs.alfresco.com/5.0/tasks/alfresco-sdk-install-verify-install.html
Then follow these instructions (Eclipse is not involved yet): http://docs.alfresco.com/5.0/tasks/alfresco-sdk-tutorials-amp-archetype.html
And finally, if all is fine, then import into Eclipse: http://docs.alfresco.com/5.0/tasks/alfresco-sdk-rad-eclipse-import-projects.html

Hello Martin, i watched some presentations and tech talks involving you and i also bought your book about CMIS, you are awesome!

I did everything you said:

1- CHECK MAVEN

mvn commands work fine on my machine (windows 7 version 6.1). I have Apache Maven 3.3.3 and environment variables are set correctly. I have a jdk-8u51 install with environment variables set and working (i also have java 7 installed).

2- Create a project from Maven command line

To do that, i run the 
mvn archetype:generate -Dfilter=org.alfresco:

Then i choose Alfresco amp archetype version 2.1. After prompting me for group ID and other parameters and saying "YES", the build is started and succeeds : The maven project ends up in the target directory.

3- Import into Eclipse:
I have an eclipse Luna install. In eclipse, i click import existing maven project. I select the project previously created with maven, the import begins then fails and i get the same message i showed you in my first post.

Really strange, any clues? Thank you Martin!

ycoulon
Employee
Employee
Hi,

Try using an apache-maven version 3.2.*
I recently faced some issues with maven version 3.3.*

Regards

Yann

drisschelouati
Champ on-the-rise
Champ on-the-rise
Hi, i finally resolved my problem. As i Yann said, i have no problem using Maven 3.2.5 to generate archetypes. I also upgraded Eclipse from luna to mars and have no more problems, wether with SDK 2.1 or 2.1.1.