I think, therefore I blog

Faster Builds with Maven in Netbeans

By , 2 August 2008

Faster Builds with Maven in Netbeans

An often expressed lament of Java developers is the slowness of compile/deploy round-tripping. Here are a few tips to help alleviate the condition in Netbeans.

  1. Change your maven build action to compile war:exploded. The default target for the run action is package, which unnecessarily zips up the war, and copies it to your repository. You can change the build action by right clicking on the project and selecting properties.
  2. Skip tests. Even if you haven't got any actual test cases, it can still take a second or two for the build to figure that out. There is a skip tests checkbox just below where you set the build actions.
  3. Debug instead of run. It takes a little longer initially, but the debugger can compile and deploy changes to a single class with the Apply Code Changes button. It doesn't seem to allow adding, renaming, or removing methods, but still pretty handy nevertheless.
Faster Builds with Maven in Netbeans

About Roger Keays

Faster Builds with Maven in Netbeans

Roger Keays is an artist, an engineer, and a student of life. Since he left Australia in 2009, he has been living as a digital nomad in over 40 different countries around the world. Roger is addicted to surfing. His other interests are music, psychology, languages, and finding good food. Click here to subscribe to his weekly blog, or stalk him on Facebook and Twitter.

Leave a Comment

Please visit https://RogerKeays.com/blog/faster-builds-with-maven-in-netbeans to add your comments.

Comment posted by: Evgeniy Fitsner, 2 years ago

Thanks a lot, I'm trying to use Netbeans instead of Eclipse and it's looks amazing. Thanks for helpfull post.

Join Over 1000 Subscribers

I write every Sunday about travel, psychology, and technology. Thousands of people just like you have already subscribed—and for good reason. It'll change your life. And it's free :)

Read a Good Book

“A spellbinding true story of love, passion and adventure. One can’t help but be swept away by 100% Love Guaranteed.” —Dr Tammie Matson, author of Elephant Dance.

Chat For A While

Your Vote Matters

Which animal will take over when humans go extinct?