Reputation: 15274
I'm currently using maven war plugin to deploy my war to jboss dir :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>basic</warName>
<outputDirectory>${jboss.home}</outputDirectory>
</configuration>
</plugin>
When I do mvn clean install this deploys my war to jboss dir, but when trying to combine it with exploded war maven shell command mvn clean prepare-package war:exploded
my exploded war doesn't get deployed to jboss deploy directory.
Is it possible to have exploded war deployed to jboss directory directly from maven, rather than creating seperate script to copy exploded war dir from target to jboss deploy dir.
Upvotes: 2
Views: 6480
Reputation: 52635
From the Maven War plugin - Usage page
The default directory for the exploded WAR is target/<finalName>
. This default directory can be overridden by specifying the webappDirectory
parameter.
You could adding <webappDirectory>${jboss.home}</webappDirectory>
to <configuration>
and see if it works.
Upvotes: 4