Hi,
Here is how we invoke the WAS WSDL2Java tool for generating web
services. I'm sure that you can use a similar strategy for ejbdeploy:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>MyWebServiceWSDL2Java</id>
<goals>
<goal>exec</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<executable>${was-home}\bin\WSDL2Java</executable>
<arguments>
<argument>-role</argument>
<argument>server</argument>
<argument>-container</argument>
<argument>web</argument>
<argument>-deployScope</argument>
<argument>Application</argument>
<argument>-introspect</argument>
<argument>-genJava</argument>
<argument>IfNotExists</argument>
<argument>-javaSearch</argument>
<argument>Both</argument>
<argument>-NStoPkg</argument>
<argument>ns://resolvesw.com/MyApp/MyService/
V1=com.resolvesw.myapp.myservice</argument>
<argument>-o</argument>
<argument>${project.build.directory}/myservice-src</
argument>
<argument>-classpath</argument>
<classpath />
<argument>file:///${basedir}/src/main/webapp/WEB-INF/
wsdl/MyWebService.wsdl</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
Note:
1. ${was-home} is a property set in the user's settings.xml to suit
their particular environment.
2. See the <classpath/> element?
3. You will probably need to run ejbdeploy in the package phase.
You're not alone in WAS land!
Cheers.
Steve Coy
On 17/01/2008, at 7:22 PM, Jeff Mutonho wrote:
On Jan 17, 2008 9:51 AM, Jeff Mutonho <[EMAIL PROTECTED]> wrote:
I've commented everything else in the maven-antrun-plugin and only
left
with :
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<configuration>
<tasks>
<property name="was6.home" value="C:/Program
Files/IBM/Rational/SDP/6.0/runtimes/base_v6" />
<echo message="was6.home: ${was6.home}"/>
<tasks>
</configuration>
</execution>
</executions>
</plugin>
which prints :
[INFO] Executing tasks
[echo] was6.home: null
How can that property be null , when I've just set its value to "C:/
Program
Files/IBM/Rational/SDP/6.0/runtimes/base_v6" ?
--
"Don't take the name of root in vain."
Jeff Mutonho
Cape Town
South Africa
GoogleTalk : ejbengine
Skype : ejbengine
Registered Linux user number 366042
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]