On Tue, Jul 15, 2008 at 7:14 PM, seanoc <[EMAIL PROTECTED]> wrote:
>
> I'm using maven 2.0.9
>
> using the pom attached I run the command, mvn exec:exec -Dserver
I'm not sure this tells maven which execution to run. I think you have
to either connect the executions to a phase or to a profile and then
activate the profile as needed.
You can also discard the "execution" directive and then run it with
'mvn exec:exec', but then it'll run only one of them :)


>
> The following error occurs:
>
>
> [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'
>
> the  http://www.nabble.com/file/p18469173/pom.xml pom.xml snippet is:
>
> <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>exec-maven-plugin</artifactId>
>                 <executions>
>                 <execution>
>                 <id>server</id>
>                 <configuration>
>                 <executable>java</executable>
>                 <arguments>
>                 <argument>-classpath</argument>
>                 <classpath/>
>                 <argument>demo.hw.server.Server</argument>
>                 </arguments>
>                 </configuration>
>                 <goals>
>                 <goal>exec</goal>
>                 </goals>
>                 </execution>
>                 <execution>
>                 <id>client</id>
>                 <configuration>
>                 <executable>java</executable>
>                 <arguments>
>                 <argument>-classpath</argument>
>                 <classpath/>
>                 <argument>demo.hw.client.Client</argument>
>                 <argument>./wsdl/hello_world.wsdl</argument>
>                 </arguments>
>                 </configuration>
>                 <goals>
>                 <goal>exec</goal>
>                 </goals>
>                 </execution>
>                 </executions>
>              </plugin>
>

Bye
-- 
Haim

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

Reply via email to