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 excluding dependencies from ear Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Maven excluding dependencies from ear" Watch "Maven excluding dependencies from ear" New topic
Author

Maven excluding dependencies from ear

Shane Lee
Ranch Hand

Joined: Mar 19, 2005
Posts: 63
Maven 2.2.0
Eclipse Galileo
M2Eclipe plugin

I have three projects:
Ebusiness (parent pom)
Eagent(child of ebusiness, war)

I created a new project to deploy eagent in an ear called EbusEAR01. Below is my pom.xml for ear project:


Eagent pom.xml:


Now the ear contains all dependencies/jars at the root level not just inside the war. is there anyway using maven ear plugin i can exclude the jar files at the root level? i understand that all dependencies should not be at the parent level in ebusiness with scope provided but this is the way its setup and im just trying to add ear functionality. Any ideas?

Thanks,
Shane.
Shane Lee
Ranch Hand

Joined: Mar 19, 2005
Posts: 63
Sorry my fault, i do not need parent element in ear pom.xml.
 
 
subject: Maven excluding dependencies from ear
 
Threads others viewed
maven ear plugin question
Maven: deploy application to server
maven error
maven java:compile
JBOSS DeploymentException : Not able to find module file : .war in a .ear file
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture