• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Update already generated war with plugin created file

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7111
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 22504
122
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 22504
122
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're welcome.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic