Reputation: 16531
Here an snippet pom.xml
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.2</version>
<configuration>
<webappDirectory>C:/Users/Tom/Desktop</webappDirectory>
</configuration>
</plugin>
</plugins>
</build>
It creates the war file to my target
folder inside eclipse workspace.
It should put the war folder to my desktop, but it only puts WEB-INF, META-INF
folders there. Why?
Upvotes: 1
Views: 1519
Reputation: 8160
You should use the outputDirectory
option, not the webappDirectory
see http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html
Upvotes: 4