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

The Archive Base Latest Questions

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

I have created a project using the following maven webapp project in eclipse: When

  • 0

I have created a project using the following maven webapp project in eclipse:

enter image description here

When adding a package to the project (right click project -> new -> package), the package gets added as a folder (I added a package named core). It does not have the usual package icon:

enter image description here

If I try to create a new class and select a package, there are no entries in the list box. I have tried creating packages in a normal eclipse dynamic web project and these work correctly.

How do I get packages in Maven enabled webapp projects?

  • 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-13T05:45:56+00:00Added an answer on June 13, 2026 at 5:45 am

    Your code should be in src/main/java. If it doesn’t exist already, create it, and then pick Maven -> Update Project from the context menu on the project.

    You’ll then see src/main/java alongside src/main/resources. Right click that, select New -> Package, and it should appear as you’d expect.

    Maven won’t compile sources under src/main/resources, which is why your code needs to be in src/main/java. The src/main/resources directory is for files that you want to appear on your classpath, which don’t need to be compiled. You might put properties files there, for example.

    Edit: The reason that ‘resources’ folders aren’t shown in the usual layout in Package Explorer is that m2e sets up resource folders in a different way to source folders. For an explanation of why it does that, see: Maven/Eclipse: The default build path for resources excluded everything

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

Sidebar

Related Questions

I have created a maven project in eclipse using the maven2eclipse plugin. I then
I just created a new Maven project using the default archetype and added the
I have recently just created Java project using Eclipse that requires 2 JAR files
I have recently created a web project in Java using eclipse. I have a
I have just created a new project in VS2010 using the Visual c# >
Consider the following situation. I have 3 tables in a resource planning project(created using
I have created a simple project in java using eclipse ide to test the
I have created a new ASP.NET MVC project using the MVC Project Template. According
I have created a google-app-engine java project in Eclipse using Google's Eclipse plugin. My
I have created SQL Server 2008 Database project using visual studio 2010. after build

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.