Hi,

Your execution is attached to the lifecycle. You'll get the expected
behaviour if you type mvn package, not by calling directly the mojo from
command line.

2010/10/11 Steve Francolla <[email protected]>

> Help!  My dependencies only ever get written to the default
> ${basedir}/target/dependency dir.
>
> Usage:
> mvn dependency:copy-dependencies
>
> Pom.xml segment:
> ---------
>  <profiles>
>    <profile>
>      <build>
>        <plugins>
>          <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>${basedir}/war/WEB-INF/lib/</outputDirectory>
>                  <overWriteReleases>false</overWriteReleases>
>                  <overWriteSnapshots>false</overWriteSnapshots>
>                  <overWriteIfNewer>true</overWriteIfNewer>
>                  <excludeArtifactIds>gwt-user,gwt-dev</excludeArtifactIds>
>                </configuration>
>              </execution>
>            </executions>
>          </plugin>
>        </plugins>
>      </build>
>    </profile>
>  </profiles>
> ---------
>
>
> Thanks.
>
>
> SF
>



-- 
Vincent

Reply via email to