When trying to create a EAR file, you may encounter with the following error:
BUILD FAILED file:/users/a237185/confluence/confluence-2.7/build.xml:67: Warning: Could not find file /users/a237185/confluence/confluence-2.7/etc/ear-application.xml to copy.
This is due to the build.xml
file being incorrect for Confluence 2.6.x and 2.7.0. This problem will be fixed for future releases. However for these releases, please open the build.xml
file and change the following two lines:
From:
<copy preservelastmodified="true" file="${ant.confluence.etc}/ear-application.xml" tofile="${ant.confluence.build.ear}/META-INF/application.xml" overwrite="yes"/> <copy preservelastmodified="true" file="${ant.confluence.dist}/${ant.confluence.name}-${ant.confluence.version}.war" tofile="ant.confluence.nameild.ear}/Confluence War Distribution.war" overwrite="yes"/>
To:
<copy preservelastmodified="true" file="ear-application.xml" tofile="${ant.confluence.build.ear}/META-INF/application.xml" overwrite="yes"/> <copy preservelastmodified="true" file="${ant.confluence.dist}/${ant.confluence.name}-${ant.confluence.version}.war" tofile="${ant.confluence.build.ear}/Confluence War Distribution.war" overwrite="yes"/>