There's similar question: gradle-copy-war-to-tomcat-directory to use gradle-tomcat-plugin .
Is it possible not to use that plugin, but use the NetBeans' default installed tomcat?
I want to just right click on the project, and select 'Run' to run the project just like that NetBeans Web Application runs in NetBeans' tomcat.
or should I switch to maven? Because it looks like more fit into NetBeans?
Thanks.
You can try to install core Gradle plugin for NetBeans ( https://github.com/kelemen/netbeans-gradle-project ) and its addition for Java EE projects - https://github.com/hildo/netbeans-gradle-javaee-project . Both are available from https://github.com/hildo/netbeans-gradle-javaee-project so you should see them in Plugin manager in your IDE.
Basic Gradle support works but I haven't tried the Java EE functionality so I cannot comment how much help you will get with deployment to Tomcat. You can create an action/shortcut to run a task in your Gradle build to deploy your application.
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.