• 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

Update already generated war with plugin created file

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

This is what happens with my build:-

1. When I run my pom.xml the first step that happens is building and creating the final .war file.
2. Then there are 2 plugins which I require to create a .html file runs afterwards.
3. Can copy the resource to target/PROJECT folder.

Requirement :-

I need to update the .war file created in step 1 with the .html file created in step 2.

So far I am able to copy the .html file in project's target/PROJECT folder with maven-resources-plugin's copy-resources goal. But my final requirement is still pending.
Please help.
 
Sheriff
Posts: 6033
157
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only solution I can think of is to build the HTML file first and then the war file.
 
Sheriff
Posts: 21759
102
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree.

What process is creating this HTML file? Can you change the life cycle phase of that process? You can perhaps use process-classes or prepare-package.
 
Kousik Majumder
Ranch Hand
Posts: 244
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your suggestion Rob and Knute. It suddenly started working after I changed the phase from 'package' to 'compile' in all my plugins.
Now first files are compiled then with the plugins are running with which .html is generated and copied to target/PROJECT sequentially and at last the .war is being created out of that target/PROJECT folder. So I am good now.

Thank you very much again for your quick reply.
 
Rob Spoor
Sheriff
Posts: 21759
102
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!