Error Creating Assembly Archive Bin
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more error creating assembly archive null about Stack Overflow the company Business Learn more about hiring developers or posting ads
Error Creating Assembly Manifest
with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow maven-assembly-plugin you must set at least one file is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Creating an archive of all jars and source jars for a multi-module
Org.codehaus.plexus.archiver.archiverexception: You Must Set At Least One File.
project up vote 6 down vote favorite 2 I'm building a Maven project which has half a dozen modules. I'm fine with importing it myself using either Maven or Ivy, but other teams would like to use those jars as well, but their practice is to commit the jars and source jars to version control. I'd like to generate a zip/tar assembly of all modules and their sources which you must specify at least one file to upload. cpanel they can use however they like. I've read Maven Assembly Plugin: Including Module Binaries but I'm shy of using it because: The linked FAQ entry returns a 404; I need to manually specify all modules. Is there an alternative? Update: I've tried using the built-in assembly descriptors mvn assembly:assembly -DprojectModulesOnly=true mvn assembly:assembly and both failed with [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to create assembly: Error creating assembly archive bin: You must set at least one file. right after all the module builds have run. maven-2 share|improve this question edited Sep 11 '09 at 10:41 asked Sep 11 '09 at 10:18 Robert Munteanu 42k23156232 I have this exact same problem (and exactly 1 year, 2 days later the linked FAQ still is 404) –Justin Sep 14 '10 at 17:53 add a comment| 4 Answers 4 active oldest votes up vote 4 down vote I think you're on the right lines, the moduleSets options of the assembly plugin handles what you're after. If you're looking for some useful documentation, the Module Selection section of the Maven book covers it quite thoroughly, including how to configure includes and excludes, handle binaries and sources, and exclude external dependencies. share|improve this answer answered Sep 11
you are a software developer (for example in Java) you might have heard about code
Maven Assembly Add Dependency Jar
smells which indicate not really bugs, but usually are
The Following Patterns Were Never Triggered In This Artifact Inclusion Filter:
a kind of indicator for problems in the future. It´s usually a good practice to cannot include project artifact it doesn't have an associated file or directory fix such code smells. But sometimes if I take a deeper look into a Maven build I can observe things like Build Smells which http://stackoverflow.com/questions/1410141/creating-an-archive-of-all-jars-and-source-jars-for-a-multi-module-project could produce problems in future but not need to. So the best practice for Code Smells as well as Build Smells is to fix such things as soon as possible. Let us start with simple example on the first glance. The Distribution It´s often the case that you http://blog.soebes.de/blog/2013/09/28/build-smells-maven-assembly-plugin like to create a kind of distribution package which contains the created artifacts. Apart from that it is sometimes also usefull having supplemental files into such distribution packages as well. The Obvious Solution Let us assume having two modules which you like to package into the final zip distribution archive. This will bring you to use the maven-assembly-plugin with an appropriate assembly descriptor like this: Assembly Descriptor 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Maven Assembly Plugin Hi, I am trying to create a zip file containing all static web content, to be put on a separate Apache server. The Maven Assembly plugin seems to be meant http://maven.40175.n5.nabble.com/Maven-Assembly-Plugin-td124702.html to be used for such a task - http://maven.apache.org/plugins/maven-assembly-plugin/According to the instructions given, I added: Distribution LaTeX Linux Shell Ubuntu Mac OS X Misc BPM Intalio Eclipse Events Google App Engine Jokes LibreOffice MS Office 2007 REST/ROA Wiki WordPress Software Engineering Build-Management Continuous Integration Security Testing Uncategorized Windows Windows 7 Windows 8 Windows XP Home > Build-Management, Software Engineering > Maven Assembly Plugin: You must set at least onefile. Maven Assembly Plugin: You must set at least onefile. January 23, 2013 Christian Wirsching Leave a comment Go to comments If you got an error message like this, check if your directory really exists. ...