On Thu, 2007-06-14 at 10:35 +0100, Kevin Stembridge wrote:
> Hi all,
> I need to use the dependency plugin for two separate tasks in a project.
> I don't understand how to define multiple executions of a plugin. The 
> relevant portion of my pom.xml and the error message are below.
> 
> Also, what is the purpose of the <id> element in an execution? Can I use 
> it from the command line to invoke a specific execution?
> 
> 
> Thanks for any help.
> Kevin
> 
> <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-dependency-plugin</artifactId>
>                 <executions>
>  
>                     <execution>
>                         <id>copy-dependencies</id>
>                         <phase>process-resources</phase>
>                         <goals>
>                             <goal>copy-dependencies</goal>
>                         </goals>
>                         <configuration>
>                             <outputDirectory>
> ${project.build.directory}/dependencies</outputDirectory>
>                             <overWriteReleases>false</overWriteReleases>
>                             <overWriteSnapshots>false</overWriteSnapshots>
>                             <overWriteIfNewer>true</overWriteIfNewer>
>                             <stripVersion>true</stripVersion>
>                         </configuration>
>                     </execution>
>  
>                     <execution>
>                         <id>update-server</id>
>                         <goals>
>                             <goal>copy</goal>
>                         </goals>
>                         <configuration>
>                             <artifactItems>
>                                 <artifactItem>
>                                     <groupId>com.db.abfo</groupId>
>                                     <artifactId>abfo-webstart-web</
> artifactId>
>                                     <version>${project.version}</version>
>                                     <overWrite>true</overWrite>
>                                     <outputDirectory>
> ${jboss.server.abfo.deploy.dir}</outputDirectory>

Don't know if this helps, but according to the docu, the
<outputDirectory> should be directly below <configuration>, at the same
level as <artifactItems>. It's worth a try.

>                                 </artifactItem>
>                             </artifactItems>

*** put <outputDirectory> here

>                         </configuration>
>                     </execution>
>  
>                 </executions>
>             </plugin>
> 
> 


- Henry




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to