Problème maven SDK3 - archetype

cancel
Showing results for 
Search instead for 
Did you mean: 
livier
Active Member II

Problème maven SDK3 - archetype

Bonjour,

J'essaie de monter un environnement de développement via maven.

J'ai suivi les préconisation suivantes Getting started with Alfresco SDK 3.0 | Alfresco Documentation 

Lorsque je lance la création de l'archetype  via la commande 

 mvn archetype:generate -Dfilter=org.alfresco:

Je reçois le log suivant :

[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: alfresco-allinone-archetype:3.0.1
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.someco
[INFO] Parameter: artifactId, Value: tutoAlfresco
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: tuto
[INFO] Parameter: packageInPathFormat, Value: tuto
[INFO] Parameter: package, Value: tuto
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: groupId, Value: com.someco
[INFO] Parameter: artifactId, Value: tutoAlfresco
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.577 s
[INFO] Finished at: 2018-07-11T23:46:40+04:00
[INFO] Final Memory: 19M/981M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project standalone-pom: org.apache.maven.archetype.exception.ArchetypeGenerationFailure: Error merging velocity templates: /usr/local/src/apache-maven/bin/tutoAlfresco/pom.xml (Aucun fichier ou dossier de ce type) -> [Help 1]
[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]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Je travaille sous centos 7

D'avance merci pour votre aide

1 Reply
ymeunier
Active Member II

Re: Problème maven SDK3 - archetype

Bonjour,

En recherchant un peu on trouve beaucoup de cas similaires lorsque  l'on veut créer une application dans un répertoire ou l'on ne possède pas tout les droits.

As-tu testé de créer un répertoire dédié, puis relancer la commande à partir de ce répertoire ?

Cordialement,

Yann