Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven excluding dependencies from ear

 
Shane Lee
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry my fault, i do not need parent element in ear pom.xml.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic