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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:51:51+00:00 2026-06-18T00:51:51+00:00

Dealing with a legacy project, I have the need to load text resources from

  • 0

Dealing with a legacy project, I have the need to load text resources from a jar at an URL.
The text resources will be then filtered and included in the output; those resources come from a released artifact.

From resource-plugin I see it is only possible to give a number of directories; would it be possible to load resources as I need?

I want to do somthing like this, but using a remote jar instead of the oher project in the workspace:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
    <execution>
    <id>copy-resources</id>
    <phase>process-resources</phase>
    <goals>
        <goal>copy-resources</goal>
    </goals>
    <configuration>
        <outputDirectory>${project.build.directory}/${project.build.finalName}</outputDirectory>
                        <resources>
                            <resource>
                                <directory>../<another project on the same workspace>/src/main/filtered-resources</directory>
                                <filtering>true</filtering>
                            </resource>
                        </resources>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>

Remote resource plugin, as suggested in one of the answer doesn’t work because no file from the imported bundle ends up in target; there is no way I can produce the original bundle using remote resource plugin (it’s a legacy projetc still in use and completely out of my control).

  • 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-18T00:51:52+00:00Added an answer on June 18, 2026 at 12:51 am

    I think the Maven Remote Resources Plugin will suit your needs.

    EDIT:

    Snippet obtained from the usage page of the plugin. That XML fragment will attach the plugin to the generate-sources phase (choose a different one if it doesn’t fit your needs), will download the apache-jar-resource-bundle artifact and uncompress its contents into ${project.build.directory}/maven-shared-archive-resources.

    For better results is recommended that the resources artifact had been created using the bundle goal of the same plugin.

    <!-- Turn this into a lifecycle -->
    <plugin>
      <artifactId>maven-remote-resources-plugin</artifactId>
      <version>1.4</version>
      <executions>
        <execution>
          <id>process-remote-resources</id>
          <phase>generate-sources</phase>
          <goals>
            <goal>process</goal>
          </goals>
          <configuration>
            <resourceBundles>
              <resourceBundle>org.apache:apache-jar-resource-bundle:1.0</resourceBundle>
            </resourceBundles>
          </configuration>
        </execution>
      </executions>
    </plugin>
    

    EDIT 2: Alternative Solution using AntRun

    If your artifacts don’t suit Maven needs and you need something more customized, then using AntRun plugin you could get it somehow:

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-antrun-plugin</artifactId>
      <version>1.7</version>
      <executions>
        <execution>
          <id>download-remote-resources</id>
          <goals>
            <goal>run</goal>
          </goals>
          <configuration>
            <target>
              <get src="URL of the resource" dest="${project.build.directory}" />
              <unzip src="${project.build.directory}/filename.[jar|zip|war]" dest="${project.build.directory}/${project.build.finalName}" />
            </target>
          </configuration>
        </execution>
      </executions>
    </plugin>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm dealing with a legacy system where I need to identify some bad records
When dealing with a denormalised (legacy) database table, whereby you have columns such as:
We have this legacy image viewer component in our project that's working fine but
UPDATE I am dealing with a legacy database where the datetime values have been
I am receiving a SOAP request from some legacy code, and dealing with it
In a legacy project that I'm on, we have several processing that are preformed
I frequently have problems dealing with DataRows returned from SqlDataAdapters . When I try
Dealing with some legacy code and in trying to get a poorly designed database
I'm dealing with a legacy database that has date and time fields as char(8)
I am dealing with a complex legacy javascript code base, and it's difficult 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.