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

  • Home
  • SEARCH
  • 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 developed a Java server using Eclipse that accepts TCP socket connection from
I have a java-project that is developed with help of maven. Part of the
I have a question about the Maven Release plugin. According to the plugin documentation,
I have a Maven project that uses the jaxb2-maven-plugin to compile some xsd files.
I have developed a web site that requires user registration and authentication for some
I have developed an app that in testing has worked fine but when it
Say I have developed a plugin which I don't believe has been developed before.
I have developed an Eclipse plugin project. Now I need to convert it to
While trying to use Maven for building Android projects I recognized that the maven-android-plugin
I have developed few Maven plugins for Maven 2, but I am wondering what

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.