Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6579015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:50:42+00:00 2026-05-25T15:50:42+00:00

I have a rather large project (with quite a large stack including Spring and

  • 0

I have a rather large project (with quite a large stack including Spring and Hibernate) that I build through Netbeans using Maven.

Unfortunately, every time I make a change to a class, I need to rebuild. This means

  • Save All & Compile
  • Run all the tests
  • Build a Massive WAR
  • Undeploy from Tomcat
  • Redeploy from Tomcat
  • Start up the Application (Spring = Zzzzzzz / Hibernate = Zzzzzzz)

This can take up to 5 minutes to check if a small change made a difference. Perhaps I have the wrong approach?

Please advise…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:50:43+00:00Added an answer on May 25, 2026 at 3:50 pm

    Okay, I’m also working on quite similar setup so here are my 2 cents.

    First off, get your feet wet with Maven-Jetty Plugin. Make it scan the files for changes so that you don’t have to rebuild/deploy the entire project for every changes. Also configure it to store session so that with every (automatic) deploy you don’t have to relogin and get to the state you were at before making changes:

        <plugin>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>maven-jetty-plugin</artifactId>
            <version>6.1.24</version> 
            <configuration>
                <stopPort>9669</stopPort>
                <stopKey>myapp</stopKey>
                <!-- Redeploy every x seconds if changes are detected, 0 for no automatic redeployment -->
                <scanIntervalSeconds>3</scanIntervalSeconds>
                <connectors>
                    <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
                        <port>8080</port>
                        <maxIdleTime>60000</maxIdleTime>
                    </connector>
                </connectors>
                <webAppConfig>
                    <contextPath>/myapp</contextPath>
                    <sessionHandler implementation="org.mortbay.jetty.servlet.SessionHandler">
                        <sessionManager implementation="org.mortbay.jetty.servlet.HashSessionManager">
                            <storeDirectory>${project.build.directory}/sessions</storeDirectory>
                        </sessionManager>
                    </sessionHandler>
                </webAppConfig>
            </configuration>
        </plugin>
    

    Now, go to project Properties (by right clicking project)> Build > Compile > Compile on save and select For both application and text execution.

    Also go to Options > Miscellaneous > Maven > and check/select Skip Tests for any build executions not directly related to testing, so that test are only run when you actually Run ‘Test’.

    Following these simple steps, I can code and test changes live, quickly and without needing a redeploy. That said, I have faced a few minor issues/annoyances:

    1. You still have to clean-build at times when something does not work (for example, you deleted something and changes do not reflect)

    2. Keeping it running long time can give PermGen exception (Out of space), which is reasonable and you can always increase the memory using jvm opts

    3. you will hate to develop/test projects on containers like jboss/websphere once you get used to this setup

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rather large project involving spring and hibernate. Right now, I'm backing
I have a rather large (freeware) project written with Delphi 2007 which is using
We are using CMake to manage our builds and have a rather large project
I have a resource that is quite large (over 100 MB). I would rather
I have a rather large program that uses Hibernate for its ORM needs. Due
We're considering using Maven for a large multi project build, to give you an
I have a rather large project which contains a number of third-party dependencies which
I have a rather large project developed on Sharepoint and Project Server, designed as
I have rather large input XML files that must be converted to a given
I have a rather large (many gigabytes) table of data in SQL Server that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.