You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Chull <dr...@yahoo.co.in> on 2009/08/18 19:00:06 UTC

Re: jar with dependencies in a folder

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 <xl...@gmail.com> 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 <wa...@gmail.com> wrote:
>> >> You probably want "dependency:unpack-dependencies".
>> >>
>> >> Wayne
>> >>
>> >> On 4/25/07, JavierL <xl...@gmail.com> 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: users-unsubscribe@maven.apache.org
>> >> > For additional commands, e-mail: users-help@maven.apache.org
>> >> >
>> >> >
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>> >
>>
>> --
>> 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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 
> -- 
> Gregory Kick
> http://kickstyle.net/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org