Skip to content

Commit

Permalink
add workaround so the release plugin can work with git submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSnoozer committed May 16, 2023
1 parent 6fdff19 commit 6dbbd75
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -528,5 +528,42 @@
</plugins>
</build>
</profile>
<profile>
<id>clone-git-submodules</id>
<activation>
<file>
<missing>${basedir}/src/test/resources/README.md</missing>
</file>
</activation>
<build>
<plugins>
<!-- https://sumit-jha.medium.com/how-to-make-maven-release-plugin-work-with-git-submodules-917825a253f2 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3</version>
<inherited>false</inherited>
<executions>
<execution>
<id>clone git submodule</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>
</profiles>
</project>

0 comments on commit 6dbbd75

Please sign in to comment.