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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:10:50+00:00 2026-06-09T12:10:50+00:00

I am having a difficulty to understand the difference between the maven-resources-plugin and the

  • 0

I am having a difficulty to understand the difference between the maven-resources-plugin and the project.build.resources tag, in maven.

Both seem to have the same purpose. The different goals of the maven-resources-plugin [resources, testResources and copy-resources] can also be achieved using the resources tag as:

<resources>
  <resource>  
    <directory>src/dir</directory>
    <targetPath>dest/dir</targetPath>
  </resource>  
</resources>

<testResources>
  <testResource>
  <directory>src/test/dir</directory>
  </testResource>

And using <resources> tag will effectively copy the specified files in source directory to destination directory, similar to copy-resources goal of maven-resources-plugin.

Then, is there any difference between them?
Will they differ in their functionality in any particular scenario?

  • 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-09T12:10:52+00:00Added an answer on June 9, 2026 at 12:10 pm

    The maven-resources-plugin is the one which handles the resources area in your pom.xml file.

    The definition of the resources plugin is done in the super pom of maven. You can check which version is used by using:

    mvn help:effective-pom
    

    Furthermore the resources goal of the maven-resources-plugin is related to the resources tag in you pom whereas testResources tag is related to testResources goal of the maven-resources-plugin.

    The copy-resources goal can be used to separetely copying resources etc. to an output folder if needed.

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

Sidebar

Related Questions

I have been reading: http://static.springsource.org/spring/docs/2.5.x/reference/resources.html But am having difficulty understanding how to specify classpath
I'm essentially having difficulty pass dynamic variables to a view. I have php functions
I am having difficulty getting multiple jPicker instances of the same type to display
I'm trying to understand some flash animation, and am having difficulty working out the
In a project that uses make and bison , I'm having difficulty specifying that
I am having difficulty figuring out how to number my subreport's records. I have
I'm writing a plugin and having difficulty getting it to instantiate for multiple elements.
I believe I understand TransactionScopeOption.Suppress and TransactionScopeOption.Required but am having difficulty understanding what TransactionScopeOption.RequiresNew
I'm having difficulty understanding the syntax of C++ Template Template parameters. I understand why
Being a beginner I am having difficulty to understand the following statement a)If in

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.