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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:08:17+00:00 2026-05-30T18:08:17+00:00

I have a multi module project like this: gwt-app model webapp (depends on gwt-app

  • 0

I have a multi module project like this:

  • gwt-app
  • model
  • webapp (depends on gwt-app and model)

when I try to execute any goals in webapps, for example, launch jetty, build fails because maven can’t find its dependencies (I didn’t install modules into a local repo). Is there a possible way to reference the parent pom so that when I run any goals in a submodule, all its dependencies will be compiled (recompiled)?

  • 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-30T18:08:18+00:00Added an answer on May 30, 2026 at 6:08 pm

    An example of your pom files would be great but in multi module projects I always declare the dependencies in the parent pom in the dependencyManagement tag:

    <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>group-a</groupId>
            <artifactId>artifact-a</artifactId>
            <version>1.0</version>
          </dependency>
    ...
    

    In the module pom I just delcare the dependency without the version:

    <dependencies>
        <dependency>
          <groupId>group-a</groupId>
          <artifactId>artifact-a</artifactId>
        </dependency>
    ...
    

    That way were are sure each module uses the same version.

    The thing to remember is that modules in maven do not inherit dependencies from the parent. You must declare the dependencies used in the module itself.

    Another thing is, I believe that when you are running outside of an IDE (which searches the workspace for dependencies) you need to have each module installed in your local repo. I do not think maven will search for un-installed dependencies within a multi module project if you are not executing on the parent pom.

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

Sidebar

Related Questions

I've a multi-module GWT project and I'd like to use ServiceLocators. I have 3
I have a multi module maven project and I would like to use versions
I have a multi-module Maven project, and I would like to assemble together artifacts
I have a multi-module maven project (several levels of nesting). Normally, when I execute
I have a multi-module project that I'd like to consolidate when I release. More
I have a multi-module project and I would like to define a single filter
We have a rather complicated multi-module Maven project. There are Flex modules, GWT modules,
I have a multi module maven project which looks something like: main component_one subcomponent_bob
I have some multi-module project. Some modules are packaged as wars and some as
I have a multi-module project. I thought I can compile only a single module

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.