Is there a way to deploy the EAR as an exploded archive to the app server ex. JBoss AS7 in Maven?
After some research found the way to handle this.
In the ear project pom.xml add the following pluig-in
<plugin>
<version>2.8</version>
<artifactId>maven-ear-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<configuration>
<unpackTypes>rar,war,ejb</unpackTypes>
</configuration>
</plugin>
Once this is done,
Now you can add any static files or java class which will get auto deployed
However, This is not reccommedned in the production environment.
Best practice is,
In the meven goal set the clean package and it will generate the .ear archive file. You can either copy in to the deployment folder or using maven jboss-as:deploy plugin you can deploy it automatically.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With