Man java rebel rocks!
By using Javarebel with struts 2 and velocity I can eliminate the whole compile deploy wait cycle!
Use these maven opts at startup.
MAVEN_OPTS="-Xmx712m -XX:MaxPermSize=256m -noverify -Drebel.spring_plugin=false -Drebel.velocity_plugin=true -Drebel.struts2-plugin=true -Drebel.aspectj_plugin=true -javaagent:javarebel203/javareb
el.jar -Drebel.dirs=target/classes,../target/classes
To refresh my struts file.
cp src/main/resources/*struts*.xml target/work/webapp/WEB-INF/classes
To reload any classes
mvn compile
To refresh any velocity files
cp src/main/webapp/*.vm target/work/webapp/
By using Javarebel with struts 2 and velocity I can eliminate the whole compile deploy wait cycle!
Use these maven opts at startup.
MAVEN_OPTS="-Xmx712m -XX:MaxPermSize=256m -noverify -Drebel.spring_plugin=false -Drebel.velocity_plugin=true -Drebel.struts2-plugin=true -Drebel.aspectj_plugin=true -javaagent:javarebel203/javareb
el.jar -Drebel.dirs=target/classes,../target/classes
To refresh my struts file.
cp src/main/resources/*struts*.xml target/work/webapp/WEB-INF/classes
To reload any classes
mvn compile
To refresh any velocity files
cp src/main/webapp/*.vm target/work/webapp/
2 comments:
If you configure rebel.xml as shown in the installation manual instead of -Drebel.dirs you'll be able to skip copying as well :)
How much time do you think you're saving per day?
Post a Comment