wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Websphere's ant from Maven. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Websphere Watch "Websphere New topic
Author

Websphere's ant from Maven.

Gaurav Upadhyay
Greenhorn

Joined: Oct 11, 2012
Posts: 10
Greetings.

I am trying to invoke Websphere Application Server(WAS) specific ant tasks(wsdl2java) from Maven. Websphere ships with it's own ant distribution that is packed with the signed jars and other classpath elements. I've tried the following:

1) third party plugin (http://mojo.codehaus.org/was6-maven-plugin/wsdl2java-mojo.html), but this does not produce the right source files
2) tried maven-antrun plugin, does not work as we need to use WAS version of ant.

I can manually invoke the WAS ant distribution with an ant build.xml file(comes as ws_ant.bat for windows and ws_ant.sh for unix), but is there a way to invoke this from Maven?

Please advice.
thanks
Gary
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

I can think of two ways:
1) Maven provides the ability to run Ant tasks
2) Maven provides the ability to run a command line task

I think you'll have more luck with the second because it will use WebSphere's special Ant contexts.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
 
subject: Websphere's ant from Maven.
 
Similar Threads
Maven Integration With Subversion
WAR file creation from Eclipse dynamic web project!!
Maven script for wsdl2java
Seeing properties
maven calling an ant target