Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Defining webapp styles in central maven project

Is there a possibility to place a web-app style (CSS files and images) in a reusable maven project? To use this "style-projects" with other WAR projects.

Best regards

Stefan

like image 896
Dangermouse Avatar asked Nov 13 '22 18:11

Dangermouse


1 Answers

It is possible to use a war-packaged project as a dependency in maven. This is called a "war overlay". It means that your resulting war file is a combination of the files from the dependency and your project copied over them:

http://maven.apache.org/plugins/maven-war-plugin/overlays.html

like image 92
Philipp Paland Avatar answered Dec 17 '22 17:12

Philipp Paland



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!