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
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
Author

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:

<groupId>org.codehaus.mojo</groupId>
<artifactId>axistools-maven-plugin</artifactId>

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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create two separate jars with wsdl2java?