Maven build is failing to include struts-config.xml or web.xml file to target../../WEB-INF directory
Maven build is failing to include
struts-config.xml or web.xml file to target../../WEB-INF directory due to
‘WebContent ‘ as maven needs ‘ webapps ‘
Add this plugin to pom.xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.2</version>
<configuration>
<webResources>
<resource>
<directory>${basedir}/WebContent</directory>
</resource>
</webResources>
<warSourceDirectory>WebContent</warSourceDirectory>
<warSourceExcludes>WebContent/WEB-INF/lib/*.jar</warSourceExcludes>
<archiveClasses>false</archiveClasses>
</configuration>
</plugin>
Comments
Post a Comment