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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:55:09+00:00 2026-06-13T21:55:09+00:00

I have some Domain classes such as Student , User etc which are used

  • 0

I have some Domain classes such as Student, User etc which are used on server and client (gwt) sides.

Can I exclude this domain classes to separate maven-module, so I can add this module as dependency to other maven-modules (i.e. add this module as dependency to maven-module which contains gwt related stuff, so this domain classes will be generated to JavaScript, and add this module as dependency to “normal” (not gwt) Java maven-modules, so this domain classes won’t be generated to JavaScript)?

  • 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-06-13T21:55:11+00:00Added an answer on June 13, 2026 at 9:55 pm

    Yes sure, why not? Consider the following structure:

    root-pom--->common
            |
            +-->frontend
            |
            +-->backend
    

    Have frontend and backend depend on common and put your domain objects in common.

    You should remember to have *.gwt.xml file exposing your VO’s in the common project and include that in your frontend‘s gwt.xml descriptor, eg.

    <module>
        <source path="your.vo.package" />
    </module>
    

    And – as Thomas Broyer points out – remember to make the source code available to frontend, this does not necessarily have to be in a separate jar, though. You can package the source with the .class files. The gwt-maven-plugin‘s gwt:resources goal is useful for this purpose:

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>resources</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            ...
        </plugins>
    </build>
    

    Cheers,

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

Sidebar

Related Questions

I have to do some object to object mapping between domain classes used in
I have a Client Server app in the following way. In the domain some
I have some pdf files located on a http server: Like: http://domain.com/files/file1.pdf http://domain.com/files/file1.pdf http://domain.com/files/file1.pdf
Some of my PHP domain objects have properties which should be set from outside
I have a url which has some get variables in it like: domain.com/recover?email=my@email.com&token=abc123 inside
In a grails project, some of the domain classes have a region field (not
I have a Java\Spring\Hibernate application - complete with domain classes which are basically Hibernate
I have 2 domain classes which are mapped by many-to-many relationship. I followed the
I have some domain classes that look something like this, that I want to
I've got a rich domain model, where most classes have some behaviour and some

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.