On Dec 13, 2007 10:11 AM, Daniele Dellafiore <[EMAIL PROTECTED]> wrote: > it works! > The only problem is that include the main artifact in lib folder. I > just want the dependencies jars. > Now I have: > > <dependencySets> > <dependencySet> > <outputDirectory>/lib</outputDirectory> > <unpack>false</unpack> > <scope>runtime</scope> > <excludes> > <exclude>arte*</exclude> > </excludes> > </dependencySet> > </dependencySets> > > where arte-0.1.jar and "arte" is the name of the artifact I am > assembling is the name of the project artifact. Even with this, > arte-0.1.jar is in lib folder... any ideas?
I think this has to be not a file name, but a groupId:artifactId format. For example if arte-1.2.3.jar must be excluded I assume its artifactId=arte. And lets pretend its groupId=com.foo.bar to have this: <exclude>com.foo.bar:arte</exclude> > On Dec 13, 2007 1:19 PM, Daniele Dellafiore <[EMAIL PROTECTED]> wrote: > > Hi all. > > > > I am trying to accomplish this task. My target is to create a > > compressed archive with the jar of my app and all the jars it depends > > upon in a subfolder called lib. I am trying to customize the standard > > bin descriptor so I have > > > > <configuration> > > <descriptors> > > <descriptor>src/assembly/bin.xml</descriptor> > > </descriptors> > > [.....] > > > > > > and the bin.xml file is almost the same than the original. I just added a > > > > <include>lib/**</include> > > > > to include some native libraries I keep in lib folder. But the point > > is that of course the jars are handled by maven so I expect there is > > some automatic way to put all them in a custom output folder. I am > > trying to understand how to do but I am failing. > > I think the solutions is somewhere here: > > http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_binaries > > but I Cannot figure out how... > > > > Here is the bin.xml, thanks for any help. > > > > <assembly> > > <id>bin</id> > > <formats> > > <format>tar.gz</format> > > </formats> > > <moduleSets> > > <moduleSet> > > <binaries> > > <includeDependencies>true</includeDependencies> > > <outputDirectory>lib</outputDirectory> > > </binaries> > > </moduleSet> > > </moduleSets> > > <fileSets> > > <fileSet> > > <includes> > > <include>README*</include> > > <include>LICENSE*</include> > > <include>NOTICE*</include> > > <include>lib/**</include> > > </includes> > > </fileSet> > > <fileSet> > > <directory>target</directory> > > <outputDirectory></outputDirectory> > > <includes> > > <include>*.jar</include> > > </includes> > > </fileSet> > > </fileSets> > > </assembly> > > > > -- > > Daniele Dellafiore > > http://ildella.wordpress.com/ > > > > > > -- > Daniele Dellafiore > http://ildella.wordpress.com/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- ASCII ribbon campaign: () against HTML email /\ against Microsoft attachments Information: http://www.expita.com/nomime.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]