gpt4 book ai didi

java - Spring Roo 2.0.0M2示例脚本主页和tomcat问题

转载 作者:行者123 更新时间:2023-12-02 03:35:37 24 4
gpt4 key购买 nike

我正在测试 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\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] ------------------------------------------------------------------------

最佳答案

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

mvn clean 编译 spring-boot:run

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

希望这有帮助,

关于java - Spring Roo 2.0.0M2示例脚本主页和tomcat问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37483854/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com