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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:15:36+00:00 2026-06-08T22:15:36+00:00

When m2e(1.1.0) in eclipse(indigo) updates project configuration it changes the entry for my resources

  • 0

When m2e(1.1.0) in eclipse(indigo) updates project configuration it changes the entry for my resources folder to exclude all.

<classpathentry excluding="**" kind="src" output="target/classes" path="conf"/>

But I need the following for tests to run successfully:

<classpathentry kind="src" output="target/classes" path="conf"/>

I want to exclude some resources from my jar (e.g., license.foo) but I need many of these files to be on the eclipse classpath to enable test execution.

What’s the right approach to resolve this problem?

  • Are there settings to org.eclipse.m2e in my pom to change the behavior?
  • Can I add text to the .project/.classpath to inform m2e that this must remain?
  • Should I use profiles to alter what gets stored in the jars?

How have you approached this class of problem?
(FYI this is similar to MNGECLIPSE-864)

Thanks

Peter

  • 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-08T22:15:39+00:00Added an answer on June 8, 2026 at 10:15 pm

    You should place resources that you need at runtime to

    src/main/resources
    

    and resources that you only need for testing to

    src/test/resources
    

    This is the Maven Standard Directory layout and the resources will be on the classpath.

    If you have not standard directories you should use the Maven Build Helper Plugin to add additional (test) resource directories.

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

Sidebar

Related Questions

I have set up my maven project using the m2e plugin in eclipse indigo,
I have an existing Dynamic Web Project in Eclipse Indigo and the m2e plugin
I have a problem with checkout Maven project in Eclipse Indigo. I've installed m2e
I have a webapp project generated with m2e maven plugin in eclipse indigo .
Have upgraded to eclipse.indigo using a new installation. Added m2e. Maven shows up under
I am using Eclipse Maven (m2e) inside Eclipse and I am running my project
I am using eclipse with m2e plugin and I have in my home folder
I am importing a maven project into Eclipse. I have the m2e plugin installed
I'm using m2e (1.0.100), Eclipse (Indigo SR1) and hibernate-jpamodelgen (1.1.1.Final). I want to have
I'm using m2e 1.0.0.20110607-2117 bundled with Eclipse Indigo. I'm referencing external maven installation from

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.