开发者社区> 问答> 正文

运行generate-project.bat报错?报错

@江南白衣 你好,想跟你请教个问题:

[INFO] Generating project in ./generated-projects
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>
>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<
<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom --
-
[INFO] Generating project in Interactive mode
[INFO] Archetype repository missing. Using the one from [org.springside.examples
:quickstart-archetype:4.3.0-SNAPSHOT] found in catalog local
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 59.136s
[INFO] Finished at: Fri Jan 24 09:09:45 CST 2014
[INFO] Final Memory: 7M/17M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2
.2:generate (default-cli) on project standalone-pom: The desired archetype does
not exist (org.springside.examples:quickstart-archetype:4.1.1-SNAPSHOT) -> [Help
 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
请按任意键继续. . .

展开
收起
爱吃鱼的程序员 2020-06-22 13:12:48 658 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    跑了quickstart没有?谢谢

    [INFO]Archetyperepositorymissing.Usingtheonefrom[org.springside.examples
    :quickstart-archetype:4.3.0-SNAPSHOT]foundincataloglocal

    我跑了<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">quickstart,再跑generate-project.bat还是报上面的错呃编辑generate-project.bat,将-DarchetypeVersion=4.1.1-SNAPSHOT改为 4.3.0-SNAPSHOT

    我也遇到相同问题,最终解决了。

    报错信息的意思就是没找着脚本<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">generate-project.bat中指定版本“<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">4.1.1-SNAPSHOT”的<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">archetype。

    <spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">你只要先去确认自己本机当前安装的<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">archetype,然后修改<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">generate-project.bat中的版本号即可。

    <spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">确认自己本机当前<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">安装的<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">archetype的办法是,运行你自己下载的springside中的support\maven-archetype\install.bat,如果运行成功的话,其中就标明了你成功安装的<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">archetype版本号

    <spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">【例子】

    <spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">[INFO]InstallingC:\tools\dev\springside4-x.x.x.xx\support\maven-archetype\pom.xmltoC:\Users\ted.m2\repository\org\springside\examples\quickstart-archetype<br/>x.x.x.xx\quickstart-archetype-x.x.x.xx.pom

    <spanstyle="font-size:14px;line-height:normal;">把你本机的“<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">x.x.x.xx”这段版本号,替换到<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">generate-project.bat中即可。

    <spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">

    我也遇到了这个问题。我用的是4.2.2.GA 版本。已经把<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">generate-project.bat改成了4.2.2.GA版本。.m2下面的版本也是4.2.2.GA,但还是报找不到@江南白衣<divclass='ref'>

    引用来自“anying”的评论

    我也遇到了这个问题。我用的是4.2.2.GA 版本。已经把<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">generate-project.bat改成了4.2.2.GA版本。.m2下面的版本也是4.2.2.GA,但还是报找不到@江南白衣

    2020-06-22 13:13:07
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Build Your Next ApacheSparkJob 立即下载
Project Fortis 立即下载
Sparklint a Tool for Identifyi 立即下载