Hi,

I will give you the same answer as on StackOverflow.

The way you are going sounds wrong...

As I already suggested is the way to go creating a multi module build
which comprises of several modules which is located within a single Git
repository. this can be build by using a single command.


mvn clean package

from the root location..

https://github.com/khmarbaise/javaee
https://github.com/khmarbaise/supose

Kind regards
Karl Heinz Marbaise

On 24.03.19 00:35, Gary M wrote:
Hi,

I need some help with scm checking out multiple modules and building them.
I have several projects I'm consolidating into  a single jar.  Reactor
checks for module poms before generate-sources executes.

How do I fix this issue ?

thanks..
g

POM sample to give you an idea of what I've done.
   <plugins>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-scm-plugin</artifactId>
       <version>1.9.4</version>
       <executions>
         <execution>
           <id>mod-1</id>
           <phase>generate-sources</phase>
           <configuration>
             <connectionUrl>${mod-1.url}</connectionUrl>
             <scmVersionType>${mod-1.versionType}</scmVersionType>
             <scmVersion>${mod-1.version}</scmVersion>
             <checkoutDirectory>${mod-1.directory}</checkoutDirectory>
           </configuration>
           <goals>
             <goal>checkout</goal>
           </goals>
         </execution>
         <execution>
           <id>mod-2</id>
           <phase>generate-sources</phase>
           <configuration>
             <connectionUrl>${mod-2.url}</connectionUrl>
             <scmVersionType>${mod-2.versionType}</scmVersionType>
             <scmVersion>${mod-2.version}</scmVersion>
             <checkoutDirectory>${mod-2.directory}</checkoutDirectory>
           </configuration>
           <goals>
             <goal>checkout</goal>
           </goals>
         </execution>
       </executions>

.....

</build>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to