mvn spring:在Mac OS X上运行yo jhipster后启动失败

时间:2014-06-22 20:45:09

标签: jhipster

mvn spring:boot run在下面给出了这个错误。

在Mac OS X Lion上第一次运行jhipster之后。 我没有改变任何文件,只使用生成的pom。

mvn 3.0.4和3.1.1都尝试过,java 1.7

Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 11:22:22-0400)
Maven home: /Users/admin/installs/maven311
Java version: 1.7.0_60, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.7.5", arch: "x86_64", family: "mac"

错误日志:

[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'spring' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/admin/.m2/repository), spring-snapshots (http://repo.spring.io/libs-snapshot), spring-milestones (http://repo.spring.io/milestone), central (http://repo.maven.apache.org/maven2)] -> [Help 1]

1 个答案:

答案 0 :(得分:5)

尝试使用以下命令运行:

  

mvn spring-boot:run

(注意弹簧和靴子之间的划线以及靴子和跑步之间的冒号)