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

时间:2016-05-27 12:40:55

标签: java spring-roo

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

如何解决这个问题才能使项目运行?

[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\2.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] ------------------------------------------------------------------------

1 个答案:

答案 0 :(得分:2)

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

mvn clean compile spring-boot:run

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

希望这有帮助,