简体   繁体   中英

How to run Grails in Jetty?

How can I run Grails in Jetty? I've changed this in BuildConfig.groovy

//build ":tomcat:7.0.55"
build ':jetty:2.0.3'

When I do grails run-app ... it's still running in Tomcat. I can see it running in Tomcat because I'm using XAMPP. And when the app is started the tomcat in XAMPP is running. I'm expecting that the Tomcat will not run and the plugin Jetty is run instead. What am I doing wrong?

Have you made sure you've removed the tomcat dependency?

From the jetty plugin docs :

Installation

Remove the dependency in BuildConfig.groovy for the Tomcat plugin and add this in its place:

 build ':jetty:2.0.3'

If the problem persists, do

rm -rf target; grails clean; grails run-app

Hope that helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM