What is the final solution then? How did it work?
Gregory Kick-2 wrote: > > When I read this thread it bothered me that people were recommending > the dependency plugin because it seemed like something that the > assembly plugin should be able to do on its own. I think that the > following ought to get you what you wanted without that plugin. > > <assembly xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/assembly-1.0.0.xsd"> > <id>mydist</id> > <formats> > <format>zip</format> > </formats> > <fileSets> > <fileSet> > <directory>target</directory> > <outputDirectory></outputDirectory> > <includes> > <include>*.jar</include> > </includes> > </fileSet> > </fileSets> > <dependencySets> > <dependencySet> > <outputDirectory>lib</outputDirectory> > <unpack>false</unpack> > <scope>runtime</scope> > </dependencySet> > </dependencySets> > </assembly> > > On 4/26/07, JavierL <[email protected]> wrote: >> >> Finally, it worked...thanks a lot ! >> >> >> >> Wayne Fay wrote: >> > >> > I could be wrong about that. Check the other examples. You might >> > actually want copy-dependencies. >> > >> > Wayne >> > >> > On 4/25/07, Wayne Fay <[email protected]> wrote: >> >> You probably want "dependency:unpack-dependencies". >> >> >> >> Wayne >> >> >> >> On 4/25/07, JavierL <[email protected]> wrote: >> >> > >> >> > >> >> > Wayne Fay wrote: >> >> > > >> >> > > Ah! In that case, you want to use the maven-dependency-plugin: >> >> > > http://maven.apache.org/plugins/maven-dependency-plugin/ >> >> > > >> >> > >> >> > >> >> > I've read docs and see this: >> >> > >> >> > ---------- >> >> > <artifactItems> >> >> > <artifactItem> >> >> > <groupId>[ groupId ]</groupId> >> >> > <artifactId>[ artifactId ]</artifactId> >> >> > <version>[ version ]</version> >> >> > <type>[ packaging ]</type> >> >> > <overWrite>[ true or false ]</overWrite> >> >> > <outputDirectory>[ output directory ]</outputDirectory> >> >> > <destFileName>[ filename ]</destFileName> >> >> > </artifactItem> >> >> > ----------- >> >> > >> >> > I wonder if it means every dependency to be copied should be write >> by >> >> hand >> >> > in such way. >> >> > >> >> > I hope to be wrong because I found this totally ilogical. I want >> >> something >> >> > to do the job automatically and not complicate the verbose maven pom >> >> > configuration. >> >> > >> >> > Thanks in advance >> >> > >> >> > J >> >> > >> >> > >> >> > J >> >> > >> >> > -- >> >> > View this message in context: >> >> >> http://www.nabble.com/jar-with-dependencies-in-a-folder-tf3644333s177.html#a10188383 >> >> > Sent from the Maven - Users mailing list archive at Nabble.com. >> >> > >> >> > >> >> > >> --------------------------------------------------------------------- >> >> > 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/jar-with-dependencies-in-a-folder-tf3644333s177.html#a10195552 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > > -- > Gregory Kick > http://kickstyle.net/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://www.nabble.com/jar-with-dependencies-in-a-folder-tp10177639p25029204.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
