Add profile checking out submodules during release plugin execution
</activation>
</profile>
+ <profile>
+ <!-- fix submodule in release plugin -->
+ <id>submodule-update</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <inherited>false</inherited> <!-- only execute these in the parent -->
+ <executions>
+ <execution>
+ <id>git submodule update</id>
+ <phase>initialize</phase>
+ <configuration>
+ <executable>git</executable>
+ <arguments>
+ <argument>submodule</argument>
+ <argument>update</argument>
+ <argument>--init</argument>
+ <argument>--recursive</argument>
+ </arguments>
+ </configuration>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
<profile>
<id>ci</id>
<reporting>
<tagNameFormat>@{project.version}</tagNameFormat>
<localCheckout>true</localCheckout>
<goals>deploy</goals>
+ <releaseProfiles>submodule-update</releaseProfiles>
</configuration>
</plugin>
