简体   繁体   中英

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM