I have a maven project and when built it is an EAR. I need create a folder inside EAR structure so it will be “APP-INF/classes” and place a file inside. What plugin or tag in ear plugin should I use? Thank you in advance.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use the maven-assembly-plugin. Write your own descriptor to package the
.earjust as you want.As a side note, The
APP-INF/classes/folder is a proprietary feature (from Weblogic I believe). If you want to be cross-platform and compliant with the Java EE spec, You should package all theclasses/contents in a.jar. See this and Section 8.2.1 of the Java EE 6 Spec