Description of problem: When building from sources, build fails on missing files to be included into assembly: changelog.txt lgpl.txt How reproducible: Always. Steps to Reproduce: 1. mvn -s /proper/settings.xml clean package Actual results: [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.871s [INFO] Finished at: Thu May 10 10:15:10 CEST 2012 [INFO] Final Memory: 19M/483M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2.1-redhat-1:single (make-assembly) on project hibernate-search-distribution: Failed to create assembly: Error adding file to archive: /home/kpiwko/installations/wfk/2.0.0.ER5/jboss-wfk-2.0.0.ER5/src/hibernate-search-4.1.1.ER1-redhat-1/hibernate-search-distribution/../lgpl.txt isn't a file. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Expected results: Assembly is done. Additional info: Workaround is to do following: touch changelog.txt touch lgpl.txt
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: To build Hibernate Search Distribution from sources, user is required to do following steps before executing Maven: 1/ Open hibernate-search-4.1.1.ER1-redhat-1/hibernate-search-distribution/src/main/assembly/dist.xml file 2/ Comment out following lines <file> <source>../changelog.txt</source> <outputDirectory>/</outputDirectory> </file> <file> <source>../lgpl.txt</source> <outputDirectory>/</outputDirectory> </file>
I don't think you should remove those files? Are they not part of the distribution?
changelog.txt should be removed, we have release note for product checking lgpl.txt
fixed in ER6
Verified in WFK ER6.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,14 +1 @@ -To build Hibernate Search Distribution from sources, user is required to do following steps before executing Maven: +Previously, missing files required to be in assembly caused the build to fail when building from source. The missing files are now created by default (?) and the build succeeds.- -1/ Open hibernate-search-4.1.1.ER1-redhat-1/hibernate-search-distribution/src/main/assembly/dist.xml file - -2/ Comment out following lines - - <file> - <source>../changelog.txt</source> - <outputDirectory>/</outputDirectory> - </file> - <file> - <source>../lgpl.txt</source> - <outputDirectory>/</outputDirectory> - </file>
Deleted Technical Notes Contents. Old Contents: Previously, missing files required to be in assembly caused the build to fail when building from source. The missing files are now created by default (?) and the build succeeds.