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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:30:19+00:00 2026-05-31T21:30:19+00:00

So I created a new maven pom based webapp using intelliJ 11. Now I

  • 0

So I created a new maven pom based webapp using intelliJ 11.

Now I want to separate out my various layers of the application, so I currently I have:

/myproj
/myproj-common (maven module)
/myproj-services (maven module)
/src/main/webapp  (spring mvc application)

So I am using the following:

spring mvc
hibernate

So I will create Dao for each entity, and then a service layer that will use the Dao’s and wrap other business logic etc.

How should I setup my maven modules properly without making it too complicated?

Should I create a separate interface module that my other modules will use?

Looking for some practical advice.

I’m using maven to build this also.

I tried this before and moving things into separate modules can’t be a little tricky, so looking for some guidance on how to do this.

Update

Should I have a separate module for my entities also?

  • 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-31T21:30:21+00:00Added an answer on May 31, 2026 at 9:30 pm

    The simplest way is use only one maven module and do separation on package level.

    If you need more I can recomend this setup:

    myproj-services – entity classes, service interfaces
    myproj-services-impl – implementation dao and services
    myproj-ui – your spring mvc classes

    Ui depends only on services and services-impl depends only on services.

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

Sidebar

Related Questions

I created a Maven project in Eclipse using the webapp artifact and put the
I'm developing projects in Eclipse and I'm using maven, so I've created a new
I just created a new Maven project using the default archetype and added the
I created a new SharePoint portal for testing purposes using a manually added HOSTS
I created a new ASP.NET MVC application. The home page looks like this: I
I created a new ASP.NET website using Visual Web Developer 2008 Express edition and
I'm very new to Maven and am just now trying to set up my
I installed maven and configured based on their 5 minute tutorial Created a eclipse
I've used a Maven archetype ( webapp-javaee6 ) to create a new Java EE
I'm developing my application as a set of OSGi bundles using Maven 2. 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.