默认部署描述符文件是:
如果您想提供自己的描述符文件或描述符文件位于其他位置,您可以在命令行上使用以下命令:
mvn idea:idea -DdeploymentDescriptorFile=src/webapp/WEB-INF/web.xml
对于多项目设置,您希望该参数为使用它的项目设置不同的值,您应该将配置值放在它们各自的 pom 中,如下所示:
<project>
[...]
<build>
[...]
<plugins>
[...]
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-idea-plugin</artifactId>
<version>2.2.1</version>
<configuration>
<deploymentDescriptorFile>src/webapp/WEB-INF/web.xml</deploymentDescriptorFile>
</configuration>
</plugin>
[...]
</plugins>
[...]
</build>
[...]
</project>