what kind of workarounds would you guys suggest if I want to run a spring mvc project in intellij (free version) and run it on tomcat?
How about a script to push compiled files to a running instance of tomcat?
how would this work?
what kind of workarounds would you guys suggest if I want to run a spring mvc project in intellij (free version) and run it on tomcat?
How about a script to push compiled files to a running instance of tomcat?
how would this work?
You should look into maven and it's deployment support and/or it's tomcat runtime support. You could also whip up a script using Ant, Groovy, Ruby or some other scripting language to push your files to the deployment directory.
I guess lastly you could use an IDE that does not tie your hands like that, or give in and pay JetBrain$.
Good luck.
Create an ant script that builds the contents of your war to a folder in your project like build/war
for example then create a my-app.xml
file in conf\Catalina\localhost
with contents like this:
<Context path="my-app" reloadable="true" docBase="C:\workspace\[projectname]\build\war" workDir="C:\workspace\[projectname]\work" >
<Logger className="org.apache.catalina.logger.SystemOutLogger" verbosity="4" timestamp="true"/>
</Context>