When i put in the following code, and run "mvn exec:exec" I receive
errors, do you know what is the issue? Do i need to run "mvn
exec:exec"? Can I incoroperate this into "mvn clean" so when i execute
clean, it will clean up specific directories for me?

Thanks. A.

 <build>
   <plugins>
     <plugin>
       <groupId>org.codehaus.mojo</groupId>
       <artifactId>exec-maven-plugin</artifactId>
       <executions>
         <execution>
           <goals>
             <goal>exec</goal>
           </goals>
         </execution>
       </executions>
       <configuration>
         <executable>rmdir</executable>
         <!-- optional -->
         <workingDirectory>"C:\tmp\.m2"</workingDirectory>
         <arguments>
           <argument>/Q</argument>
           <argument>/S</argument>
           <argument>com</argument>
         </arguments>
       </configuration>
     </plugin>
   </plugins>
 </build>

Errors:

---
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] One or more required plugin parameters are invalid/missing for 'exec:exec
'

[0] inside the definition for plugin: 'exec-maven-plugin'specify the following:

<configuration>
 ...
 <executable>VALUE</executable>
</configuration>

-OR-

on the command line, specify: '-Dexec.executable=VALUE'

On 4/26/07, Baz <[EMAIL PROTECTED]> wrote:
Thanks. :)

A.

On 4/26/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
> Google "maven exec". Its the first link.
>
> Wayne
>
> On 4/26/07, Baz <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > How can i execute a system command such as "del" from maven 2? Is
> > there any <exec> in maven 2 and what is the syntax? I dont seem to be
> > able to locate it.
> >
> > Thanks.
> >
> > A.
> >
> > ---------------------------------------------------------------------
> > 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