unpacked dependency in assembly question
Is it possible to change the name of the folder into which the dependency is unpacked? Seems like there is no equivalent to the non-unpacked outputFileNameMapping?
RE: unpacked dependency in assembly question
My question wasn't all that clear. My problem is this. I have a zip dependency that I'm unpacking into my assembly. I'd like to trim out the root folder of that zip's contents, so I can just dump the contents of that root folder into my output directory. I'm having trouble figuring anyway to do this. Ideas? -Original Message- From: chad.da...@emc.com [mailto:chad.da...@emc.com] Sent: Friday, May 25, 2012 9:12 AM To: users@maven.apache.org Subject: unpacked dependency in assembly question Is it possible to change the name of the folder into which the dependency is unpacked? Seems like there is no equivalent to the non-unpacked outputFileNameMapping? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: unpacked dependency in assembly question
So your problem is with the unzip stage where it is creating a top level directory and putting the files in it instead of exporting just the files into the output directory? Perhaps you want to share your current method of doing that? Ron On 25/05/2012 2:51 PM, chad.da...@emc.com wrote: My question wasn't all that clear. My problem is this. I have a zip dependency that I'm unpacking into my assembly. I'd like to trim out the root folder of that zip's contents, so I can just dump the contents of that root folder into my output directory. I'm having trouble figuring anyway to do this. Ideas? -Original Message- From: chad.da...@emc.com [mailto:chad.da...@emc.com] Sent: Friday, May 25, 2012 9:12 AM To: users@maven.apache.org Subject: unpacked dependency in assembly question Is it possible to change the name of the folder into which the dependency is unpacked? Seems like there is no equivalent to the non-unpacked outputFileNameMapping? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: unpacked dependency in assembly question
So your problem is with the unzip stage where it is creating a top level directory and putting the files in it instead of exporting just the files into the output directory? Perhaps you want to share your current method of doing that? Hey Ron. It's not that it's creating a top level directory, the zip contains a top level directory. My method is nothing more than this: dependencySet useProjectArtifactfalse/useProjectArtifact includes includeorg.apache.tomcat:apache-tomcat/include /includes unpacktrue/unpack outputDirectorycatalina_base/myApp/outputDirectory /dependencySet So, what happens here is that the tomcat distribution is a zip, and it's root folder is apache-tomcat-5.5.35. I'd like the contents of that folder dumped into my target output directory, but it, of course, just unzips the archive into that folder, leaving me with an extra folder I want to eliminate. FYI: I'm trying to create an assembly that prepares a zip of my tomcat app deployment following best practice separation of CATALINA_HOME from CATALINA_BASE. This requires me create a pure version of the dist, under CATALINA_HOME, and a modified version of the dist, under CATALINE_BASE. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven assembly question
Hi I use maven for the creation of my jars and it works very well. Now I want to create a zip file containing for example 2 jar (these jars are maven projects having many dependencies ). To do that, I use maven assembly plugin (i use jar-with-dependencies as descriptorRef, but in my zip, the dependencies of these projects are splitted. I have tried many configurations in my pom, i tried also a separate assembly descriptor referenced by my pom.xml but it doesn't work! Is it possible to get a zip file that contains the 2 jars, and that every jar contains only its dependencies? Any help is appreciated. Regards. -- Amin Sakka
Re: Maven Assembly Question
BumpAnybody have some suggestions? -- View this message in context: http://www.nabble.com/Maven-Assembly-Question-tp23833852p24205262.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven Assembly Question
I previously was building a zip file with Ant. I have now moved on to Maven. I haven't been able to figure out how I can traverse directories copying all files found into one location like Ant's flatten. For instance : --TestDir1 TestDir2 --TestFile1.xml TestDir3 --TestDir4 TestFile2.xml I want to traverse TestDir1 and get all the *.xml files and copy them into a new location. All I have been able to get Maven to do is copy all the directories and files. Here is my assembly snippet : fileSet directorysrc/main/resources/test/integrations/directory outputDirectoryintegrations/outputDirectory includes include**/**.xml/include /includes /fileSet In Ant I used this syntax to copy : copy todir=${INTEGRATIONS_DIR} flatten=true overwrite=true fileset dir=src/conf/integrations includes=**/**.xml,**/**.properties / /copy Thanks -- View this message in context: http://www.nabble.com/Maven-Assembly-Question-tp23833852p23833852.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Assembly question
I have a multi-module project. One of the modules inside of it has multiple source directories using build-helper-maven-plugin. I need the source in one of those directories to be included in a special place in the assembly. I was able to get that to work. There are a couple java files in that dir and I need the compiled class files as well. However, whenever I try to add the binaries element, I get all the binaries in all the source folders instead of only the one source folder that I want. moduleSet includes includecom.c:Services/include /includes sources includeModuleDirectoryfalse/includeModuleDirectory fileSets fileSet directorysrc/main/user//directory outputDirectoryuser/outputDirectory /fileSet /fileSets /sources binaries includeDependenciesfalse/includeDependencies includesincludesrc/main/user/include/includes excludes excludecom/**/*.*/exclude excludesrc/main/*/com/**/*.*/exclude excludesrc/main/java/**/*.*/exclude excludesrc/main/java/exclude excludesrc//exclude excludesrc/main/**/*.*/exclude excludesrc/**/*.*/exclude /excludes outputDirectoryuser/outputDirectory /binaries /moduleSet The excludes clause is a mess because I was trying anything--even with all that, all the binaries were included in the output user directory. How can I get it to include only the binaries from a certain source folder? Or, it is delineated by specific packages, so how could I do it by including only certain packages? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven assembly question
Nvm - slight oversight. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 04, 2007 1:44 PM To: users@maven.apache.org Subject: maven assembly question I'm trying to include just a few files from another projects output via the dependencySet feature of the maven assembly plugin. I keep seeing this: [WARNING] The following patterns were never triggered in this artifact inclusion filter: And obviously I'm not getting my warfile bits included. Anyone able to shed some light on this for me? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven assembly question
The includes/excludes in the dependencySet is for artifact patterns to be included/excluded. If you want to unpack a dependency and only include certain files, you'll need to use the latest snapshots of the assembly plugin, and then in your dependencySet: unpacktrue/unpack unpackOptions includes [...] /includes /unpackOptions HTH, -john On Dec 4, 2007, at 1:44 PM, EJ Ciramella wrote: I'm trying to include just a few files from another projects output via the dependencySet feature of the maven assembly plugin. I keep seeing this: [WARNING] The following patterns were never triggered in this artifact inclusion filter: And obviously I'm not getting my warfile bits included. Anyone able to shed some light on this for me? --- John Casey Committer and PMC Member, Apache Maven mail: jdcasey at commonjava dot org blog: http://www.ejlife.net/blogs/john rss: http://feeds.feedburner.com/ejlife/john
RE: assembly question
Haven't succeed too May be i've miss something in maven lifecycle, but i really don't understand why it's not possible ... You must attach your execution to a goal (e.g package) but don't know why ... EJ Ciramella-2 wrote: Yeah, I've been trying this: plugin artifactIdmaven-assembly-plugin/artifactId executions execution idassembler-dir/id phaseassembly:directory/phase goals goaldirectory/goal /goals configuration descriptors descriptorsrc/main/assembly/dep.xml/descriptor /descriptors outputDirectoryE:/testdirectory/outputDirectory /configuration /execution execution idassembler-bin/id phaseassembly:assembly/phase goals goalassembly/goal /goals configuration descriptors descriptorsrc/main/assembly/dep.xml/descriptor /descriptors /configuration /execution /executions /plugin But when maven runs, it can't find the descriptor: [INFO] [assembly:assembly] [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] No assembly descriptors found. [INFO] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tommy Knowlton Sent: Friday, March 23, 2007 11:59 AM To: Maven Users List Subject: Re: assembly question I'm not positive, but I believe where you said phase you should say goal. I haven't tried this in a POM of my own, but I've been using the maven-assembly-plugin alot lately, and I think you've got it exactly right, modulo that one change. HTH -- Tommy On 3/23/07, EJ Ciramella [EMAIL PROTECTED] wrote: Is it possible to do something like the following: plugins plugin artifactIdmaven-assembly-plugin/artifactId configuration descriptorsrc/main/assembly/dep.xml/descriptor /configuration executions execution idassembler-dir/id phaseassembly:directory/phase configuration outputDirectoryE:/testdirectory/outputDirectory /configuration /execution execution idassembler-bin/id phaseassembly:assembly/phase configuration/configuration /execution /executions /plugin /plugins Basically, I want the assembly:directory to output to one location and the zip output to go to the regular target directory... -- -- Tommy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/assembly-question-tf3454471s177.html#a13747046 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Assembly question
Hi, I have a project with 3 sub projects, one of which is an installer. I want to run assembly:directory on each of these projects, but I need a way of guaranteeing that installer runs last, since it is dependent on the other 2 projects. Anyone have any suggestions on how to do this? My structure currently is: project A B installer but I am open to rearranging this as necessary. I thought the invoker plugin would allow me to run the installer POM separately, but it seems to be tied to integration tests, despite the description it gives. Thanks, Grant -- Grant Ingersoll http://lucene.grantingersoll.com Lucene Boot Camp Training: ApacheCon Atlanta, Nov. 12, 2007. Sign up now! http://www.apachecon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
assembly question
Is it possible to do something like the following: plugins plugin artifactIdmaven-assembly-plugin/artifactId configuration descriptorsrc/main/assembly/dep.xml/descriptor /configuration executions execution idassembler-dir/id phaseassembly:directory/phase configuration outputDirectoryE:/testdirectory/outputDirectory /configuration /execution execution idassembler-bin/id phaseassembly:assembly/phase configuration/configuration /execution /executions /plugin /plugins Basically, I want the assembly:directory to output to one location and the zip output to go to the regular target directory...
Re: assembly question
I'm not positive, but I believe where you said phase you should say goal. I haven't tried this in a POM of my own, but I've been using the maven-assembly-plugin alot lately, and I think you've got it exactly right, modulo that one change. HTH -- Tommy On 3/23/07, EJ Ciramella [EMAIL PROTECTED] wrote: Is it possible to do something like the following: plugins plugin artifactIdmaven-assembly-plugin/artifactId configuration descriptorsrc/main/assembly/dep.xml/descriptor /configuration executions execution idassembler-dir/id phaseassembly:directory/phase configuration outputDirectoryE:/testdirectory/outputDirectory /configuration /execution execution idassembler-bin/id phaseassembly:assembly/phase configuration/configuration /execution /executions /plugin /plugins Basically, I want the assembly:directory to output to one location and the zip output to go to the regular target directory... -- -- Tommy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: assembly question
Yeah, I've been trying this: plugin artifactIdmaven-assembly-plugin/artifactId executions execution idassembler-dir/id phaseassembly:directory/phase goals goaldirectory/goal /goals configuration descriptors descriptorsrc/main/assembly/dep.xml/descriptor /descriptors outputDirectoryE:/testdirectory/outputDirectory /configuration /execution execution idassembler-bin/id phaseassembly:assembly/phase goals goalassembly/goal /goals configuration descriptors descriptorsrc/main/assembly/dep.xml/descriptor /descriptors /configuration /execution /executions /plugin But when maven runs, it can't find the descriptor: [INFO] [assembly:assembly] [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] No assembly descriptors found. [INFO] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tommy Knowlton Sent: Friday, March 23, 2007 11:59 AM To: Maven Users List Subject: Re: assembly question I'm not positive, but I believe where you said phase you should say goal. I haven't tried this in a POM of my own, but I've been using the maven-assembly-plugin alot lately, and I think you've got it exactly right, modulo that one change. HTH -- Tommy On 3/23/07, EJ Ciramella [EMAIL PROTECTED] wrote: Is it possible to do something like the following: plugins plugin artifactIdmaven-assembly-plugin/artifactId configuration descriptorsrc/main/assembly/dep.xml/descriptor /configuration executions execution idassembler-dir/id phaseassembly:directory/phase configuration outputDirectoryE:/testdirectory/outputDirectory /configuration /execution execution idassembler-bin/id phaseassembly:assembly/phase configuration/configuration /execution /executions /plugin /plugins Basically, I want the assembly:directory to output to one location and the zip output to go to the regular target directory... -- -- Tommy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: assembly question
So is anyone doing anything like this or is there a better way to install outside of your target directory with AND have an option to build a jar with the same series of parameters? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Friday, March 23, 2007 12:06 PM To: Maven Users List Subject: RE: assembly question Yeah, I've been trying this: plugin artifactIdmaven-assembly-plugin/artifactId executions execution idassembler-dir/id phaseassembly:directory/phase goals goaldirectory/goal /goals configuration descriptors descriptorsrc/main/assembly/dep.xml/descriptor /descriptors outputDirectoryE:/testdirectory/outputDirectory /configuration /execution execution idassembler-bin/id phaseassembly:assembly/phase goals goalassembly/goal /goals configuration descriptors descriptorsrc/main/assembly/dep.xml/descriptor /descriptors /configuration /execution /executions /plugin But when maven runs, it can't find the descriptor: [INFO] [assembly:assembly] [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] No assembly descriptors found. [INFO] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tommy Knowlton Sent: Friday, March 23, 2007 11:59 AM To: Maven Users List Subject: Re: assembly question I'm not positive, but I believe where you said phase you should say goal. I haven't tried this in a POM of my own, but I've been using the maven-assembly-plugin alot lately, and I think you've got it exactly right, modulo that one change. HTH -- Tommy On 3/23/07, EJ Ciramella [EMAIL PROTECTED] wrote: Is it possible to do something like the following: plugins plugin artifactIdmaven-assembly-plugin/artifactId configuration descriptorsrc/main/assembly/dep.xml/descriptor /configuration executions execution idassembler-dir/id phaseassembly:directory/phase configuration outputDirectoryE:/testdirectory/outputDirectory /configuration /execution execution idassembler-bin/id phaseassembly:assembly/phase configuration/configuration /execution /executions /plugin /plugins Basically, I want the assembly:directory to output to one location and the zip output to go to the regular target directory... -- -- Tommy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]