File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Websphere's ant from Maven.

Gaurav Upadhyay

Joined: Oct 11, 2012
Posts: 10

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 (, 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 for unix), but is there a way to invoke this from Maven?

Please advice.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33117

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Websphere's ant from Maven.
It's not a secret anymore!