Maven项目src / main / resources / myfolder未在部署时创建

时间:2013-12-17 12:41:43

标签: java maven maven-resources-plugin

我有这个设置,测试期间一切正常在Windows机箱上运行,部署到unix框进行测试,文件夹丢失且未创建:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-resources-plugin</artifactId>
  <version>2.3</version>
  <configuration>
    <includeEmptyDirs>true</includeEmptyDirs>
    <!-- specify UTF-8, ISO-8859-1 or any other file encoding -->
    <encoding>UTF-8</encoding>
  </configuration>
</plugin>

它的位置是传统的:

src/main/resources/myfolder

它部署为战争,并且不在WEB-INF / classes中创建目录。

我的其余部分看起来像这样:

<build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
            <resource>
                <directory>src/main/resources/myfolder</directory>
            </resource>
            <resource>
                <directory>src/main/webapp/WEB-INF</directory>
                <filtering>true</filtering>
            </resource>
        </resources>

0 个答案:

没有答案