This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven excluding dependencies from ear
 
Similar Threads
maven ear plugin question
Maven: deploy application to server
JBOSS DeploymentException : Not able to find module file : .war in a .ear file
maven java:compile
maven error