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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:32:53+00:00 2026-05-14T02:32:53+00:00

When creating a project with the webapp archetype in Maven, they subtly advise not

  • 0

When creating a project with the webapp archetype in Maven, they subtly advise not putting any Java source in the webapp project by not including the “src/main/java” folder.

What do you name your Maven projects?

project-webapp for the project that contains the JSP, CSS, Images, etc.
project for the project that contains domain specific entities
? for the project that contains the web application files like Servlets, Listeners, etc.

My first inclination would be to use “webapp” for the project containing the web application files (Servlets/Listeners), however the archetype uses “webapp” to convey the JSP/CSS/Images project and would cause confusion to other developers.

  • 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-14T02:32:54+00:00Added an answer on May 14, 2026 at 2:32 am

    When creating a project with the webapp archetype in Maven, they subtly advise not putting any Java source in the webapp project by not including the “src/main/java” folder.

    That’s not really true. When you create a project with the maven-archetype-quickstart, you don’t get a src/main/resources directory. Would that mean you should not put resources in this project? No.

    What do you name your Maven projects?

    There is no general rules, nor conventions. Use something that makes sense for your organization and your team. But as I said above, your initial assumption is not true and putting Java code inside a maven war module is a common practice (except for code you want to share between modules).

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

Sidebar

Related Questions

I want to deploy my src/main/webapp folder from Maven project as an application in
I have been busy in my project creating a webapp (in struts) that manages
When creating a new project in netbeans, if i select JAVA Desktop application, it
I am creating a project using maven with spring and hibernate. I added a
I am creating a project that only uses client side languages. I want to
When I'm creating new project with GWT plug in it creates a skeleton project
I'm creating a project to house an iPhone library for common code for the
I'm creating a project from the book Sanderson Pro ASp.net mvc3. But I have
When creating a CodeIgniter project, what is the best way to handle relations between
I'm creating an iOS project for school and it works with chemical reactions. The

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.