2016-05-27 7 views
0

Ich teste das Beispielskript unter Spring Roo 2.0.0M2 released. Das Skript erzeugt gut, aber bei der Ausgabe von mvn tomcat: run bricht es ab. Am Ende gibt es keine lokale Website.Spring Roo 2.0.0M2 Beispielskript Startseite & Tomcat Probleme

Wie löst man das, um das Projekt zum Laufen zu bringen?

[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] ------------------------------------------------------------------------ 

Antwort

2

Denken Sie daran, dass Spring Roo 2.x Spring Boot-Anwendungen generiert. Es enthält einige Starter auf Ihrer pom.xml Datei, die Ihnen einen eingebetteten Tomcat-Server zur Verfügung stellt. Außerdem enthält die generierte Projekt der spring-boot-maven-plugin, die Sie Ihre Anwendung die Ausführung der folgenden Maven Befehl ausführen können:

mvn clean compile spring-boot:run

Weitere Informationen zu Spring-Boot-Projekt lesen the official documentation

hoffe, das hilft,

+0

Du liegst absolut richtig. Vielen Dank! ** Komplimente **: nette Schnittstelle/GUI. Sieht großartig aus! Ich habe Spring Boot vergessen. Ich habe ein Projekt mit 2.0.0.M1 gemacht und diese Version hat noch keinen Spring Boot, also bin ich an mvn tomcat gewöhnt: run – dhmc

Verwandte Themen