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

  • Home
  • SEARCH
  • 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 6984281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:31:45+00:00 2026-05-27T18:31:45+00:00

I have a multimodule maven setup for my project, made of 5 modules, which

  • 0

I have a multimodule maven setup for my project, made of 5 modules, which includes a GWT webapp.
It is also an eclipse multiproject workspace, so I created an additional project, only containing a pom, which lists the other projects (sibling on the file system) as children modules.
I’m also a new maven user, so I might be doing something wrong. =)

The gwt module uses the following plugin

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.4.0</version>
<executions>
    <execution>
        <goals>
            <goal>generateAsync</goal>
            <goal>compile</goal>
        </goals>
    </execution>
</executions>
<configuration>
    <hostedWebapp>war</hostedWebapp>
    <runTarget>GWT.html</runTarget>
</configuration>
</plugin>

When I run mvn package on the pom project I get the expected behaviour: projects are build in the correct order, and the war is fine.
When I run mvn gwt:run, though, maven tries to find a gwt app on each module, failing on the first one (the parent) which doesn’t even declare nor manage the gwt plugin.
If I run mvn -fn gwt:run, the build fails on each other project, finally finding a gwt app on the gwt module, and displaying it.

  • How do I correctly run the app on hosted mode? Is this the correct behavior?

I do not want the GWT module to be the parent module (if it’s possible), because the project has multiple target platforms, producing the gwt web frontend, a Java executable jar backend and in the future also an Android app, and shares most parts of the code (not only the model). Is a single pom structure recommended for such a setup, or am I failing at maven?

Are profiles what I need? If I do, should I declare the same profile id on each module? How would I prevent the trigger of gwt:run command on them anyway?

  • What should the setup of such a project be? Is this the correct setup?

Additional information

Modules are

  • pom: declares modules model, logic, analyze, gwt, tests
  • model: no dependencies
  • logic: no dependencies
  • analyze: depends on model, logic
  • gwt: depends on model, logic
  • tests: depends on model, logic, analyze, gwt (contains global tests,
    not unit tests)

If I run gwt:run on the gwt module i get the error

Could not resolve dependencies for project
djjeck.gwt:djjeck.gwt:war:0.0.1-SNAPSHOT:
Could not find artifact djjeck.model:djjeck.model:jar:0.0.1-SNAPSHOT

This is from djjeck.gwt/pom.xml

<dependency>
    <groupId>djjeck.model</groupId>
    <artifactId>djjeck.model</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <scope>compile</scope>
</dependency>

A com.model-0.0.1-SNAPSHOT.jar is inside the war lib folder, both packed and unpacked, and also inside djjeck.model/target.

  • 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-27T18:31:45+00:00Added an answer on May 27, 2026 at 6:31 pm

    Go to the webapp module and then run mvn gwt:run.

    You may use profiles to speed up compilation time: one profile could only gwt compile for gecko and english +draftCompile for example.

    Have a look at maven GWT plugin multi-module setup if you’re still having problems.

    • 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
We have a rather complicated multi-module Maven project. There are Flex modules, GWT modules,
I have a problem related to subversion and a maven multimodule project in eclipse.
I have a Maven project multimodule project. Some of the modules create custom packaging
I have a maven multimodule project. What the best practices for creating groupId? Can
I have a multi-module Maven project A. There are two modules: B and C,
I have multimodule maven project like this myproject framework1 f1-presentation *.java f1-core *.java f1-tag
I have a multimodule maven project. the service module depends on domain module using
I have a multimodule maven project like : Main Module Module A Module B
I have a multimodule maven project, when dependencymanagament tag is provided in parent pom,

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.