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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:50:32+00:00 2026-05-25T19:50:32+00:00

My need is pretty basic but I could not find any clean answer to

  • 0

My need is pretty basic but I could not find any clean answer to it: I simply need to be able to distribute a resource in a multi-module project.

Let us consider for example the LICENSE file, which I hereby assume to be the same for all modules. I prefer not to manually copy it into each and every module because the file could change over time. I also prefer not to statically link to resources (even if using relative paths) outside the project folder, because the modular structure can possibly change too.

Is there any plugin that can be used to robustly guarantee that each module is given the required file? It would be equally acceptable for such copy to be obtained by exploiting the POM of the parent project or directly performed by the super project in the modular hierarchy.

  • 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-25T19:50:32+00:00Added an answer on May 25, 2026 at 7:50 pm

    you could use the assembly and the dependency plugins.. did you stumble over that link?
    http://www.sonatype.com/people/2008/04/how-to-share-resources-across-projects-in-maven/

    it describes that option ..its from 2008, but maven is around for quite some time.. so I guess its more or less up to date

    edit regarding comment
    Another option is the maven-remote-resources-plugin.
    For a more detailed example see:
    http://maven.apache.org/plugins/maven-remote-resources-plugin/examples/sharing-resources.html

    Since their intro speaks actually for itself, I quote (maven.apache.org)

    This plugin is used to retrieve JARs of resources from remote repositories, process those resources, and incorporate them into JARs you build with Maven. A very common use-case is the need to package certain resources in a consistent way across your organization: at Apache it is required that every JAR produced contains a copy of the Apache license and a notice file that references all used software in a given project.

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

Sidebar

Related Questions

I hate to have to ask, but I'm pretty stuck here. I need to
I know this is pretty basic, but it is giving me hangups. I have
This seems like a pretty basic thing to do but although I've been using
I'm pretty basic with .net But basically I've been told that to have session
Alright, so I think I'm pretty close to having what I need, but I'm
There is a pretty strong need for us to design some workflows around various
I need to shorten this query and while I'm pretty good at SQL, I'm
The title pretty much says it all. Some caveats are: I need to be
I need a command to replace the hosts file on my machine. Seems pretty
I'm writing a pretty straightforward e-commerce app in asp.net , do I need to

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.