I recently changed my web.xml path from: src/main/webapp/WEB-INF/web.xml
to src/main/webapp/WEB-INF/webXml/italia/web.xml
the reason is I have to change for each profile the folder name for the country. The problem is java can't find the web.xml.
I added to pom.xml this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<!-- <warSourceDirectory>${project.basedir}/WebContent</warSourceDirectory> -->
<webXml>${project.basedir}/src/main/webapp/WEB-INF/webXml/italia/web.xml</webXml>
<failOnMissingWebXml>false</failOnMissingWebXml>
<!-- <warSourceExcludes>css/</warSourceExcludes> -->
<webResources>
<resource>
<directory>${jbossWeb.folder}/${current.jbossWeb}</directory>
<targetPath>WEB-INF</targetPath>
</resource>
</webResources>
</configuration>
</plugin>
It give me this error when I try to run:
: Failed to parse XML descriptor "/C:/Program Files/wildfly-18.0.0.Final/standalone/deployments/archiconEar.ear/archiconWeb.war/WEB-INF/web.xml" at [1,0]
and I found out it create me a web.xml folder with the folders oof countries inside but doesn't go to look the webXml folder
Did I miss something?