Maven project src/main/resources/myfolder not being created on deployment

1k views Asked by At

I have this set, and everything working fine on a Windows box during tests, Deployment to unix box for testing, the folder is missing and is not created :

<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>

Its location is conventional here:

src/main/resources/myfolder

It's deployed as a war, and the directory is not created in WEB-INF/classes.

The rest of my pom looks like this:

<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

There are 0 answers