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 6977049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:34:33+00:00 2026-05-27T17:34:33+00:00

I have 2 Maven projects in Eclipse workspace, A and B. Project B is

  • 0

I have 2 Maven projects in Eclipse workspace, A and B.
Project B is a web project that depends on A. I have also made these projects child modules of a parent to enable transitive dependencies.

Now my approaches to deploy the web project B is

  1. Compile and build jar for Project A, say A.jar. Copy A.jar and its dependencies to webapp/WEB-INF/lib of project B.
  2. Compile B and build war for project B, say B.war
  3. Set the tomcat(eclipse embedded tomcat) docBase to the folder of
    B.war.

This works fine. But because Tomcat is not using my source code, it does not see my local code changes immediately.

My question is, how do I make tomcat use my source code? and how can I configure Tomcat & Eclipse such that in a local running web app, whenever I make code changes in Project A & B (B dependes on A), the changes take effects immediately(hot swap)?

Thank you in advance.

  • 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-27T17:34:33+00:00Added an answer on May 27, 2026 at 5:34 pm

    You can’t make Tomcat run source code. It has to be compiled first. The best you can do is make it notice when new versions of your classes get compiled. As your project A is bundled into B as a JAR, the only option I’m aware of to get Tomcat to hot-swap new code in for project A is JRebel. It’s not a free product, but there’s a free trial so you can see how awesome it is, and if this is a persistent problem for you, it’s probably worth the money. Also, your local Java User Group can give away two JRebel licenses each month. It might be worth attending.

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

Sidebar

Related Questions

I have a multi-module maven project made up of three sub-modules: web , service
I have created a Dynamic Web Project in my Eclipse workspace. It is also
I have two Eclipse Maven Java projects. A domain project that is laden with
I have a ejb project with 1 dependent project (also in my workspace) that
I have a multimodule maven setup for my project, made of 5 modules, which
I have imported an existing project built using Maven into my Eclipse workspace. Should
I have two maven-based eclipse projects, one being a project with common classes and
Right now, I have two Eclipse projects - they both use Maven 2 for
Suppose I have a war and jar projects defined in maven. The Jar project
I have a maven project that has a set of library dependancies that are

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.