File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven EAR Explode rather than package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven EAR Explode rather than package" Watch "Maven EAR Explode rather than package" New topic
Author

Maven EAR Explode rather than package

Niall Loughnane
Ranch Hand

Joined: Dec 07, 2006
Posts: 208
Hi,

I use the Maven plug-in "maven-ear-plugin" to create an EAR that consists of a WAR and a JAR,

I can unpack the WAR and JAR using:
[code=java]
<unpackTypes>war,jar</unpackTypes>
<modules>
<webModule>
...
<unpack>true</unpack>
...
</webModule>
<ejbModule>
...
<unpack>true</unpack>
...
</ejbModule>
</modules>
[/code]

But how can i set the plug-in to explode the EAR, to a directory, rather than package the EAR to .ear file?

Thanks in Advance,

Niall
E Armitage
Rancher

Joined: Mar 17, 2012
Posts: 892
    
    9
Doesn't the plugin already create an exploded folder containing your ear content in the target folder?
Niall Loughnane
Ranch Hand

Joined: Dec 07, 2006
Posts: 208
Yes, you are right :)

Thanks for the reply :)

I should have seen that :)
 
wood burning stoves
 
subject: Maven EAR Explode rather than package
 
Similar Threads
Ear Building in Maven
JBOSS DeploymentException : Not able to find module file : .war in a .ear file
Problem with the "mvn test" command missing EJB client jar artifact
Eclipse + JBoss - some JAR files not deployed.
maven ear plugin question