次のエラーが発生します:
Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
web.xml
私は正しい場所にいますprojectname\src\main\webapp\WEB-INF\web.xml
何が原因なのでしょうか?
ベストアンサー1
maven-war-pluginのコードスニペットを提供していただけると助かります。web.xml
正しい場所にあるようですが、場所を明示的に指定することもできます。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webXml>src\main\webapp\WEB-INF\web.xml</webXml>
</configuration>
</plugin>