【发布时间】:2019-01-16 19:35:46
【问题描述】:
我正在使用 maven 资源插件通过在 war 文件中进行过滤来生成纯文件。我在文件夹 src/main/webapp/app 中有带有变量的模板文件
<build>
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<phase>process-resources</phase>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/webapp/app</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
问题是生成的文件位于 WEB-INF/classes 文件夹中,我需要它位于战争根目录的 app 文件夹中。 战争结构应该是
*.jsf
app/<generated_file>
WEB-INF/
我该怎么做?
【问题讨论】:
-
可能与this question 相关,但不重复。那里的答案之一可能会有所帮助。
标签: maven maven-resources-plugin