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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:26:50+00:00 2026-05-13T22:26:50+00:00

I have developed a maven plugin that downloads the release notes from JIRA. It’s

  • 0

I have developed a maven plugin that downloads the release notes from JIRA.
It’s bound by default to the ‘generate-sources’ phase and creates a ‘release.txt’ file in the build folder (${project.build.directory}).

My question: how can I add this file in the ‘WEB-INF’ folder of the war file built by Maven ?

I know I can use the ‘maven-war-plugin’ to include additional external resources from the ‘src’ folder, but I don’t want my ‘release.txt’ file generated there (=not commitable to svn).

Thanks for your help. I wish you a nice day!

Maxence

  • 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-13T22:26:50+00:00Added an answer on May 13, 2026 at 10:26 pm

    I think this can be done using this feature of that plugin:

    Adding and Filtering External Web Resources:
    http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html

    Which would allow you to generate your release.txt into a separate folder (not src) and have the plugin treat it as an extra resources folder.

    Hope that helps.

    <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-war-plugin</artifactId> 
      <configuration> 
        <webResources> 
          <resource> 
            <directory>${project.build.directory}</directory> 
            <targetPath>WEB-INF</targetPath> <!-- introduced in plugin v 2.1 -->
            <includes> 
              <include>release.txt</include> 
            </includes> 
          </resource> 
        </webResources> 
      </configuration> 
    </plugin> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Maven project that uses the jaxb2-maven-plugin to compile some xsd files.
I have a question about the Maven Release plugin. According to the plugin documentation,
I have developed code on a m-file script in Matlab that communicates with a
Say you have a project that uses maven and a subversion repository. It consists
I have jar files that cannot be found on Maven Central repository. I would
I have a case that I have the following cyclic dependencies in maven: JAR
I have a Java Maven project which is developed by multiple people. As I
I have developed a simple library in Ruby and need to use this in
I have developed a web service and host it on my server and I
I have developed a window application in VS2005 using C#. I need to integrate

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.