This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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.
 
wood burning stoves
 
subject: Maven excluding dependencies from ear
 
Similar Threads
JBOSS DeploymentException : Not able to find module file : .war in a .ear file
maven ear plugin question
maven java:compile
maven error
Maven: deploy application to server