Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven web resources question

I have a Maven web project and I have some CSS and Javascript files under the src\main\webapp\ folder. I constantly make changes to those files and would like to see my changes quickly. If I run maven install, it takes ages due to project dependencies. Sometimes all I want to change is one line of code in my CSS file and do not want to recompile everything else. I have a maven plugin that publishes my output war file to my JBoss instance. Ideally, I would like to run a maven execution script that will quickly copy my web resources to the output folder and reploy the changed war file without recompiling everything else.

I tried invoking the generate-resources goal but that doesn't seem to look in the src\main\webapp directory as it is expecting my resources to be under the src\main\resources folder. What am I missing here?

Thanks

like image 942
Ayyoudy Avatar asked Sep 08 '11 20:09

Ayyoudy


1 Answers

I think you could accomplish this by using the war:war goal. This should generate a war file in the output folder for you without re-compiling the source.

like image 65
Ryan Gross Avatar answered Oct 18 '22 14:10

Ryan Gross