• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to create two separate jars with wsdl2java?

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
Those are the largest trousers in the world! Especially when next to this ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic