[ http://jira.codehaus.org/browse/MNG-1461?page=comments#action_50352 ]
Stephane Nicoll commented on MNG-1461: -------------------------------------- You are right, it's not used anywhere. As a workaround: #1 Check the documentation: http://maven.apache.org/plugins/maven-ear-plugin/generate-application-xml-mojo.html You can disable application.xml generation: <generateApplicationXml>false</generateApplicationXml> #2 Make sure that your custom application.xml is located in a resources directory picked up by the EAR plugin. A good example is: src/main/application/META-INF/application.xml Thanks for reporting the issue. > EAR plugin ignores application XML setting > ------------------------------------------ > > Key: MNG-1461 > URL: http://jira.codehaus.org/browse/MNG-1461 > Project: Maven 2 > Type: Bug > Components: maven-ear-plugin > Versions: 2.0 > Reporter: mike perham > Assignee: Stephane Nicoll > > > In EarMojo.java: > /** > * The location of the application.xml file to be used within the ear > file. > * > * @parameter > expression="${basedir}/src/main/application/META-INF/application.xml" > */ > private File applicationXmlFile; > I set this and Maven still generates an application.xml file anyways. > Checking the code, this variable is never actually referenced anywhere so it > appears impossible to use the EAR plugin with a pre-written application.xml. -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]