[ http://jira.codehaus.org/browse/MEAR-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=199206#action_199206 ]
Stephane Nicoll edited comment on MEAR-115 at 11/24/09 7:44 AM: ---------------------------------------------------------------- maven 2.0.9 has a lock down on core plugins (EAR plugin included) which means you upgraded to a more recent version of the EAR plugin. Putting ear resources in src/main/resources is deprecated for a long time now (see the linked issue). You should put these in src/main/application. If you don't want to do this however, you can redefined the default directory to be src/main/resources. If you have multiple projects, just make sure your corporate pom / parent pom has a pluginManagement section with this setting. was (Author: sni): maven 2.0.9 has a lock down on core plugins (EAR plugin included) which means you upgraded to a more recent version of the EAR plugin. Putting ear resources in src/main/resources is deprecated for a long time now (see the linked issue). You should put these in src/main/application. If you don't want to do this however, you can redefined the default directory to be src/main/resources. If you have hundreds of projects, just make sure your corporate pom / parent pom has a pluginManagement section with this setting. > Resources didn't get packaged in EAR > ------------------------------------ > > Key: MEAR-115 > URL: http://jira.codehaus.org/browse/MEAR-115 > Project: Maven 2.x Ear Plugin > Issue Type: Bug > Environment: "linux" version: "2.6.5-7.244-smp" arch: "i386" > Reporter: Deepak Chavan > Assignee: Stephane Nicoll > Priority: Minor > > While building an enterprise application, resources folder didn't get > packaged in ear file since apache-maven-2.0.9. > ---------------------------------------------------------------------------------- > [INFO] Copying artifact[jar:org.apache.axis:axis-ant:1.4] > to[lib/axis-ant-1.4.jar] > [INFO] Copying artifact[jar:com.sun.xml:saaj-impl:1.6] > to[lib/saaj-impl-1.6.jar] > ... > ... > ... > [INFO] Copy ear resources to /home/project/........ > ---------------------------------------------------------------------------------- > Now i have to provide an extra parameter in pom.xml (maven-ear-plugin-2.3.1) > <resourcesDir>${project.build.outputDirectory}/classes</resourcesDir> > this resolves my issue. > But our application contains multiple corporate projects and I have to change > every pom.xml to resolve this issue. > Thanks, > Deepak -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira