I think the outputDirectory is ignored because of the ArtifactItem
(whatever that may be... ;) )

>From the documentation:

outputDirectory :

Default location used for mojo unless overridden in ArtifactItem

    * Type: java.io.File
    * Since: 1.0
    * Required: No
    * Expression: ${outputDirectory}
    * Default: ${project.build.directory}/dependency

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Mon, Sep 29, 2008 at 3:01 PM, Norbert Lazzeri <[EMAIL PROTECTED]> wrote:
> using the maven-dependency-plugin with:
>                  <plugin>
>                   <groupId>org.apache.maven.plugins</groupId>
>                   <artifactId>maven-dependency-plugin</artifactId>
>                   <executions>
>                     <execution>
>                       <id>copy-dependencies</id>
>                       <phase>package</phase>
>                       <goals>
>                         <goal>copy-dependencies</goal>
>                       </goals>
>                       <configuration>
>
> <outputDirectory>${project.build.directory}/lib</outputDirectory>
>                         <overWriteReleases>false</overWriteReleases>
>                         <overWriteSnapshots>false</overWriteSnapshots>
>                         <overWriteIfNewer>true</overWriteIfNewer>
>                       </configuration>
>                     </execution>
>                   </executions>
>                 </plugin>
>
> like suggested on the plugin-homepage all dependencies are copied to
> targed/dependencies. why is the outputDirectory ignored?
>
> cheers,
> Norbert
>
> Norbert Lazzeri schrieb:
>>
>> Hi,
>>
>> is it possible to let maven copy all dependencies to my classpath?
>>
>> my jar-configuration looks like:
>>           <plugin>
>>               <groupId>org.apache.maven.plugins</groupId>
>>               <artifactId>maven-jar-plugin</artifactId>
>>               <configuration>
>>                   <archive>
>>                       <manifest>
>>                         <addClasspath>true</addClasspath>
>>                         <classpathPrefix>lib/</classpathPrefix>
>>                                         <mainClass>uboot.App</mainClass>
>>                       </manifest>
>>                   </archive>
>>               </configuration>
>>            </plugin>
>>
>> so it would be nice if maven would create a lib-directory and copy all
>> jars in to it since there are plenty of them and doing this by hand is
>> troublesome
>>
>> cheers,
>> Norbert
>>
>> ---------------------------------------------------------------------
>> 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]

Reply via email to