AnsweredAssumed Answered

Maven - create new directory at same level as WEB-INF

Question asked by rs0048203 on Oct 24, 2016
Latest reply on Oct 25, 2016 by rs0048203

Starting with existing directory WebContent/module containing JSP files, need to copy this directory (and JSP files within) to module directory at same level as WEB-INF directory

tried:

<plugin>

   <artifactId>maven-resources-plugin</artifactId>

   <version>2.6</version>

   <executions>

   <execution>

   <id>copy-resources-1</id>

   <phase>validate</phase>

   <goals>

   <goal>copy-resources</goal>

   </goals>

   <configuration>

   <outputDirectory>module</outputDirectory>

   <resources>

   <resource>

   <directory>WebContent/module</directory>

   </resource>

   </resources>

   </configuration>

   </execution>

 

But, module directory is not in the generated .war file

Outcomes