• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

maven-war-plugin not picking up modified files

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have progressed from this question (https://coderanch.com/t/679753/Altering-files-created-target-directory#3188261)

I have a maven project that runs in the following order:

1) maven-war-plugin: exploded

2 ) maven-antrun-plugin - Modifies file in {project.build}/target directory

3)maven-war-plugin:war.

This works and when I look at the modified file in {project.build}/target it has the correct changes. My antrun runs as part of the prepare-package phase, after the war plugin completes its pre-package.

However the war file that is created contains the file before the changes were made - as if its picking it up from somewhere else? Is this expected? My war plugin is set as follows:

 
reply
    Bookmark Topic Watch Topic
  • New Topic