Skip to content

Commit 6dbbd75

Browse files
author
TheSnoozer
committed
add workaround so the release plugin can work with git submodules
1 parent 6fdff19 commit 6dbbd75

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

pom.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,5 +528,42 @@
528528
</plugins>
529529
</build>
530530
</profile>
531+
<profile>
532+
<id>clone-git-submodules</id>
533+
<activation>
534+
<file>
535+
<missing>${basedir}/src/test/resources/README.md</missing>
536+
</file>
537+
</activation>
538+
<build>
539+
<plugins>
540+
<!-- https://sumit-jha.medium.com/how-to-make-maven-release-plugin-work-with-git-submodules-917825a253f2 -->
541+
<plugin>
542+
<groupId>org.codehaus.mojo</groupId>
543+
<artifactId>exec-maven-plugin</artifactId>
544+
<version>1.3</version>
545+
<inherited>false</inherited>
546+
<executions>
547+
<execution>
548+
<id>clone git submodule</id>
549+
<phase>initialize</phase>
550+
<configuration>
551+
<executable>git</executable>
552+
<arguments>
553+
<argument>submodule</argument>
554+
<argument>update</argument>
555+
<argument>--init</argument>
556+
<argument>--recursive</argument>
557+
</arguments>
558+
</configuration>
559+
<goals>
560+
<goal>exec</goal>
561+
</goals>
562+
</execution>
563+
</executions>
564+
</plugin>
565+
</plugins>
566+
</build>
567+
</profile>
531568
</profiles>
532569
</project>

0 commit comments

Comments
 (0)