• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

files not copied to end war

 
Ranch Hand
Posts: 105
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear coderanch,

Thanks in advance for any help or advice.

I'm having problems getting files updated in the war. The war itself is generated (timestamp changes), but inside the war, the dirs and files are unchanged.

I discovered this as I have a "replace" task



... the file is changed, but not included in war.

I then realised i had "bigger" problems, in that the war is generated, but seems like not everything is copied over

my pom looks like



I've tried prepare-package / install etc.

Im confused as to what phase to execute or goal to attach to, in order to get files copied i to my war and updated every time.

Big thanks for any help.

Regards, Sam
 
Ranch Hand
Posts: 352
2
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dummy question: Do you do a "clean" and the a "package" ans still the files are not updated ?


 
sam wootton
Ranch Hand
Posts: 105
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
German Gonzalez-Morris,

Thanks for your help.

The issue I have is that I rely on target/launch.html (and other files) to be present, as this is the target for replacing values in. My structure is:

src/main/webapp/my_app/launch.html

target/main/webapp/my_app/launch.html


... src has the values that need to be replaced



if i run clean, then the file(s) are not there, and the replace task fails.

nonetheless - i ran clean, and then package, the war was generated, but still launch.hhtml had the old timsetamp, and values were not replaced.

If i open up target/launch.html (outside of war, and just from the directory) the values ARE replaced... but its like maven ignores that, and then copies over the src/launch.html (with unreplaced values).

Does that make sense?

Regards, Sam
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!