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.