когда я создаю пакет war с maven, файлы и каталоги в каталоге "src / main / resources" копируются в / WEB-INF / classes вместо / WEB-INF.Как я могу скопировать их в / WEB-INF?
спасибо, rand
ОБНОВЛЕНИЕ: в моем pom сейчас я использую это:
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
<executions>
<execution>
<id>copy-resources</id>
<!-- here the phase you need -->
<phase>war</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>myapp/target/WEB-INF</outputDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
и запускаю mvnс:
mvn -Dmaven.test.skip = true чистые ресурсы пакета: copy-resources
но я получил:
[INFO] One or more required plugin parameters are invalid/missing for 'resources:copy-resources'
[0] Inside the definition for plugin 'maven-resources-plugin' specify the following:
<configuration>
...
<outputDirectory>VALUE</outputDirectory>
</configuration>.
[1] Inside the definition for plugin 'maven-resources-plugin' specify the following:
<configuration>
...
<resources>VALUE</resources>
</configuration>.
Iя использую Maven 2.2 и фрагмент в основном то же самое из документации, любая идея?