aspose file tools*
The moose likes Web Services and the fly likes How to create two separate jars with wsdl2java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to create two separate jars with wsdl2java?" Watch "How to create two separate jars with wsdl2java?" New topic

How to create two separate jars with wsdl2java?

R Naijat
Ranch Hand

Joined: Nov 01, 2011
Posts: 40
Hi all,
I’m very new to maven. I’m using wsdl2java to get the Java files and then create the jar file I need. The problem is that my urls comes from different sources and eventually I need to have 4 different jar files.

So far, I tried to create the first two jar files and deal with the next two later... So I created two different <execution> blocks in the <build> block; each <execution> block downloads each own wsdl files, so far so good. The following plugin:


Works this way: it first compiles all the generated Java files and then generates the jar file out of all the files, meaning it creates only one jar file.

Is there anyway, I ask wsdl2java to compile and then create the jar files right after each <execution> block? That I can get two different jar file each relating only to the wsdl files I downloaded in that <execution> block?

Following is pom.xml. At this point the generated jar file consists of the Java files generated from: file1, file2, file3, file4 and file5.

Where I want one jar from: file1, file2 and file3 and the other from: file4 and file5.

Any help would be greatly appreciated.

It is sorta covered in the JavaRanch Style Guide.
subject: How to create two separate jars with wsdl2java?
Similar Threads
Strange problem - works on maven glassfish but not on Tomcat
Could not resolve dependencies for maven project
Filtering problem using maven-read-properties plugin in pom.xml file
[Newbie Issue] hibernate.cfg.xml and hbm.xmls are not packaged by Maven?
Tomcat and Axis2