我正在尝试使用maven-war-plugin的war:exploded goal在我的tmp
文件夹中的target
目录中展开我的war文件。在我的pom中,我有
<plugin>
<groupId>org.apache.maven</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<webappDirectory>${project.build.directory}/tmp</webappDirectory>
</configuration>
</plugin>
我运行mvn clean war:exploded
来执行我的构建。但是,我的webapp仍然会爆炸为默认${project.build.directory}/${project.build.finalName}
。我也尝试使用workDirectory
,但这也不起作用。我错过了什么?