All, I figured it out, this does exactly what I need:
<?xml version="1.0"?> <assembly xmlns=" http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 " xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance " xsi:schemaLocation=" http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> <!-- http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html --> <id>bin</id> <formats> <format>tar.bz2</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <moduleSets> <moduleSet> <includes> <include>mygroup:*</include> </includes> <binaries> <outputDirectory>mygroup</outputDirectory> <unpack>false</unpack> <outputFileNameMapping>${artifact.artifactId}</outputFileNameMapping> <includeDependencies>true</includeDependencies> </binaries> </moduleSet> </moduleSets> </assembly> Then you call 'mvn package assembly:assembly' Regards, --Jose -----Original Message----- From: Nunez Zuleta, Jose V: IT (NYK) Sent: Wednesday, February 08, 2012 11:28 AM To: users@maven.apache.org Subject: How to create a tar distribution of binary modules and dependencies using Assembly Greetings, I've tried to setup the Assembly plug-in to create a master tar file with both my application jars and the dependencies used during compilation (stripping the version numbers from the resulting jars) without much success. Based on the documentation (http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_binaries, http://maven.apache.org/plugins/maven-assembly-plugin/advanced-module-set-topics.html) I set my assembly file as follows: <?xml version="1.0"?> <assembly xmlns=" http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 " xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance " xsi:schemaLocation=" http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> <!-- http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html --> <id>bin</id> <formats> <format>tar</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <moduleSets> <moduleSet> <includes> <include>mygroup:*</include> </includes> <binaries> <outputDirectory>mygroup</outputDirectory> <includeDependencies>true</includeDependencies> <dependencySets> <dependencySet> <outputFileNameMapping>${artifact.artifactId}</outputFileNameMapping> <unpack>false</unpack> <useProjectArtifact>true</useProjectArtifact> <scope>compile</scope> </dependencySet> </dependencySets> </binaries> </moduleSet> </moduleSets> </assembly> But when I call mvn assembly:single I get the following error: To refactor, move this assembly into a child project and use the flag <useAllReactorProjects>true</useAllReactorProjects> in each moduleSet. [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] mygroup .......................................... FAILURE [1.582s] [INFO] BLAH ...................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.115s [INFO] Finished at: Tue Feb 07 16:25:45 EST 2012 [INFO] Final Memory: 10M/233M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2:single (default-cli) on project mygroup: Failed to create assembly: Artifact: mygroup:BLAH:jar:20120120-PRODUCTION (included by module) does not have an artifact with a file. Please ensure the package phase is run before the assembly is generated. -> [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 Any ideas on how to accomplish this? Thanks in advance, --Jose _______________________________________________ This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing. Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays Group. _______________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org