I have a need to run the compile goal multiple time during the compile
phase. Also each of this run has to use different dependencies. Is
this doable? I couldn't find documentation on this topic. I need
something like this -

        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <executions>

            <!-- first pass -->
             <execution>
                <configuration>
                    <excludes>
                        <exclude>some/sources/*.java</exclude>
                    </excludes>
                   <dependencies>
                     <dependency> ...</dependency>
                </configuration>
               <goals>
                 <goal>compile</goal>
               </goals>
           </execution>

            <!-- second pass -->
           <execution>
                <configuration>
                    <excludes>
                        <exclude>othersources/*.java</exclude>
                    </excludes>
                   <dependencies>
                     <dependency> ...</dependency>
                </configuration>
               <goals>
                 <goal>compile</goal>
               </goals>
            </execution>
          </executions>
         </plugin>


Thanks for the attention,
Venkat

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to