Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Grails 2.1.3 中有一个项目,我正在尝试将静态资源(如 javascripts 和 css 文件)从战争依赖项复制到我的 Grails 应用程序的 web-app/ 目录。我正在尝试实现类似战争覆盖的东西。我尝试生成 pom 并使用 maven-war-plugin 的覆盖功能,但它似乎不起作用。请提出解决方案。
您可以下载 WAR 文件,然后使用 WinZip/WinRAR/7zip(甚至使用命令行)提取内容。
然后只需将您需要的文件复制到项目的 web-app 目录中。
当然,这是假设您只需要复制这些文件一次,而不是每次运行应用程序时。