• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Websphere's ant from Maven.

 
Gaurav Upadhyay
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34218
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic