简体   繁体   English

在中央maven项目中定义webapp样式

[英]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? 是否有可能在可重用的maven项目中放置Web应用程序样式(CSS文件和图像)? To use this "style-projects" with other WAR projects. 将此“style-projects”与其他WAR项目一起使用。

Best regards 最好的祝福

Stefan 斯特凡

It is possible to use a war-packaged project as a dependency in maven. 可以使用war-packaged项目作为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: 这意味着生成的war文件是依赖项中的文件和复制它们的项目的组合:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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