So, our new webapp project is based on maven. I really like dependency management and an agnostic IDE, but I have problems compiling and debugging.
Here's how I could get a clean copy of a project working
- Check out the main project from SVN
- Open project in IDE (I tried in eclipse 3.4 and netbeans 6.7)
- The IDE will automatically open two subprojects, one of which is webapp, and the other is a supporting utils bank.
- From the command line, run mvn war: inplace in the webapp module, which creates a working copy of webapp with all the dependencies in WEB-INF / lib /
This works fine, but whenever I change the java class I have to clear and create / reload the application context.
I googled high and low, but no one seems to be complaining about it, so I think there must be something really obvious that I went missing. How does everyone else handle incremental compilation and hot deployment using maven?
To clarify everything I'm looking for is to repeat the behavior that I used before maven, where I could make simple changes to java classes and they would be instantly compiled and hotly deployed to running webapp. I don't need anything like jRebel etc. I just want the new tool to give me the same functionality that I liked my old tools with.
source share