Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to resolve dependency between files generated by maven plugin at compile time?
    primarykey
    data
    text
    <p>Ok, let me try to put my problem across as less confusing as I can.</p> <p>I have a standard maven project with a few Maven plugins - </p> <pre><code>1) maven-antrun-plugin 2) Custom maven plugin, say, my-maven-plugin 3) jaxws-maven-plugin </code></pre> <p>Now here's the complicated part.</p> <p>The 1st plugin generates a few .java files which I'm currently placing in "<em>${project.build.directory}/java</em>"</p> <p>The 2nd plugin generates another set of .java files all of which I'm placing again under "<em>${project.build.directory}/java</em>". However, they're placed under different package structures.</p> <p>Both of these plugins run during the "<strong>generate-sources</strong>" phase.</p> <p>Now my 3rd plugin, jaxws-maven-plugin, tries to use the class files for the files generated by 1st and 2nd plugins, as the SEI to generate WSDLs. But the class files won't be created by maven at that point during the compilation and the plugin errors out with a "Class Not found" message.</p> <p>So how do I go about trying to resolve this? Also, since I error out during the "generate-sources" phase, I don't see the .class files for any of the other source files from my project in the target/classes directory.</p> <p>And oh, here's another twist. Some of my source files import these compile time generated source files in the code (You have no idea how badly I'm searching for this developer right now!!)</p> <p>I have tried to describe my problem in the best possible way so please feel free to ask any other details or clarifications.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload