Skip to content

Commit 04b1dab

Browse files
authored
Merge pull request #40 from spdx/addsubmodule
Fix issue where the submodules are not getting fetch during the release plugin execution
2 parents 712a9ce + ae01e5e commit 04b1dab

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

pom.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,29 @@
8686
</execution>
8787
</executions>
8888
</plugin>
89+
<plugin>
90+
<groupId>org.codehaus.mojo</groupId>
91+
<artifactId>exec-maven-plugin</artifactId>
92+
<inherited>false</inherited> <!-- only execute these in the parent -->
93+
<executions>
94+
<execution>
95+
<id>git submodule update</id>
96+
<phase>initialize</phase>
97+
<configuration>
98+
<executable>git</executable>
99+
<arguments>
100+
<argument>submodule</argument>
101+
<argument>update</argument>
102+
<argument>--init</argument>
103+
<argument>--recursive</argument>
104+
</arguments>
105+
</configuration>
106+
<goals>
107+
<goal>exec</goal>
108+
</goals>
109+
</execution>
110+
</executions>
111+
</plugin>
89112
<plugin>
90113
<groupId>org.apache.maven.plugins</groupId>
91114
<artifactId>maven-gpg-plugin</artifactId>

src/test/resources/bom-examples

Submodule bom-examples updated 73 files

0 commit comments

Comments
 (0)