Spring Roo 2.0.0M2 示例脚本主页 & tomcat 问题

Spring Roo 2.0.0M2 sample script home page & tomcat issues

我正在 Spring Roo 2.0.0M2 released 测试示例脚本。该脚本生成良好,但是在发出 mvn tomcat:run 时它会中断。 最终没有本地网站。

如何解决这个问题以获得项目运行?

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building foo 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> tomcat-maven-plugin:1.1:run (default-cli) > compile @ foo >>>
[INFO] 
[INFO] --- apt-maven-plugin:1.1.3:process (default) @ foo ---
[INFO] 
[INFO] --- aspectj-maven-plugin:1.8:compile (default) @ foo ---
[INFO] Showing AJC message detail for messages of types: [error, warning, fail]
[WARNING] incorrect classpath: D:\Tools\maven_repo\org\springframework\roo\org.springframework.roo.annotations.0.0.M2\org.springframework.roo.annotations-2.0.0.M2.pom
    <unknown source file>:<no line information>

[INFO] 
[INFO] --- aspectj-maven-plugin:1.8:test-compile (default) @ foo ---
[WARNING] No sources found skipping aspectJ compile
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ foo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 62 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ foo ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] <<< tomcat-maven-plugin:1.1:run (default-cli) < compile @ foo <<<
[INFO] 
[INFO] --- tomcat-maven-plugin:1.1:run (default-cli) @ foo ---
[INFO] Skipping non-war project
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.312 s
[INFO] Finished at: 2016-05-27T12:54:41+02:00
[INFO] Final Memory: 43M/602M
[INFO] ------------------------------------------------------------------------

记住 Spring Roo 2.x 生成 Spring 启动应用程序。它在您的 pom.xml 文件中包含一些启动程序,为您提供嵌入式 tomcat 服务器。此外,您生成的项目包括 spring-boot-maven-plugin 允许您 运行 您的应用程序执行以下 maven 命令:

mvn clean compile spring-boot:run

有关 Spring 引导项目的更多信息,请阅读 the official documentation

希望这对您有所帮助,