mvn archetype:生成错误构建POM(可能不是这个项目的POM)

时间:2009-06-03 09:39:49

标签: maven-2 pom.xml

我正在尝试从spring项目创建一个jsf + spring + hibernate。以下是我采取的步骤。我过去使用相同的方法成功创建了项目。 我不知道我在哪里弄错了。

寻找所有提示,我出错了。

注意:我已将输入和错误消息设为粗体。

M:\ SCHOLION \ SPRING \ maven> mvn原型:生成

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] ------------------------------------------------------------------------

1 个答案:

答案 0 :(得分:2)

您生成的项目依赖于org.appfuse:maven-warpath-plugin,您需要安装或提供存储库才能从中获取。

在Central repo中有2.0.2这个插件的最新版本: http://repo1.maven.org/maven2/org/appfuse/maven-warpath-plugin/

如果不存在,请尝试在maven-warpath-plugin声明中明确指定此版本。