2009-06-03 8 views
0

J'essaye de créer un jsf + spring + hibernate d'un projet de ressort. Voici les étapes que j'ai prises. J'ai réussi à créer des projets dans le passé en utilisant la même méthode. Je n'ai aucune idée d'où je fais l'erreur.mvn archetype: générer erreur POM de construction (peut ne pas être POM de ce projet)

Vous cherchez tous les conseils, où je vais mal.

NB: J'ai mis les entrées et les messages d'erreur en gras.

M: \ Scholion \ PRINTEMPS \ maven>mvn archetype: générer

Choose a number: (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41/42/43/ 
**Define value for groupId: : com.unibz 
Define value for artifactId: : springacltutorial 
Define value for version: 1.0-SNAPSHOT: : 1.0 
Define value for package: : springacltutorial 
Confirm properties configuration: 
groupId: com.unibz 
artifactId: springacltutorial 
version: 1.0 
package: springacltutorial** 
Y: : y 
[INFO] ---------------------------------------------------------------------------- 
[INFO] Using following parameters for creating OldArchetype: appfuse-basic-jsf:2.0 
[INFO] ---------------------------------------------------------------------------- 
[INFO] Parameter: groupId, Value: com.unibz 
[INFO] Parameter: packageName, Value: springacltutorial 
[INFO] Parameter: package, Value: springacltutorial 
[INFO] Parameter: artifactId, Value: springacltutorial 
[INFO] Parameter: basedir, Value: M:\SCHOLION\SPRING\maven 
[INFO] Parameter: version, Value: 1.0 
********************* End of debug info from resources from generated POM *********************** 
[INFO] OldArchetype created in dir: M:\SCHOLION\SPRING\maven\springacltutorial 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD SUCCESSFUL 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 2 minutes 1 second 
[INFO] Finished at: Wed Jun 03 11:15:59 CEST 2009 
[INFO] Final Memory: 8M/15M 
[INFO] ------------------------------------------------------------------------ 

M:\SCHOLION\SPRING\maven>cd springacltutorial 

M:\SCHOLION\SPRING\maven\springacltutorial>dir 
Volume in drive M is Data 
Volume Serial Number is 76A4-1C35 

Directory of M:\SCHOLION\SPRING\maven\springacltutorial 

03.06.09 11:15 <DIR>   . 
03.06.09 11:15 <DIR>   .. 
03.06.09 11:15   32.930 pom.xml 
03.06.09 11:15    826 README.txt 
03.06.09 11:15 <DIR>   src 
       2 File(s)   33.756 bytes 
       3 Dir(s) 8.521.940.992 bytes free 

M:\SCHOLION\SPRING\maven\springacltutorial>**mvn compile** 

[INFO] ------------------------------------------------------------------------ 
[ERROR] BUILD ERROR 
[INFO] ------------------------------------------------------------------------ 
[INFO] **Error building POM (may not be this project's POM).** 


Project ID: org.appfuse:maven-warpath-plugin 

Reason: POM 'org.appfuse:maven-warpath-plugin' not found in repository: Unable to download the artifact from any repository 

    org.appfuse:maven-warpath-plugin:pom:2.0-SNAPSHOT 



[INFO] ------------------------------------------------------------------------ 
[INFO] For more information, run Maven with the -e switch 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 1 second 
[INFO] Finished at: Wed Jun 03 11:16:12 CEST 2009 
[INFO] Final Memory: 1M/4M 
[INFO] ------------------------------------------------------------------------ 
+0

La réponse d'OMax at-elle résolu votre problème? – bouncingHippo

Répondre

2

Votre projet généré dépend de org.appfuse: maven-plugin-warpath que vous devez installer ou fournir dépôt pour aller chercher du premier.

Dans repo central il y a 2.0.2 dernière version de ce plugin: http://repo1.maven.org/maven2/org/appfuse/maven-warpath-plugin/

Essayez de préciser cette version explicitement dans la déclaration maven-plugin-warpath si elle est pas là.

Questions connexes