Skip to content

Commit 07dfafa

Browse files
committed
Proposal to fix the build
1 parent 624fa2d commit 07dfafa

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

check_api/pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,22 @@
210210
<outputDirectory>${project.build.outputDirectory}/META-INF/versions/24</outputDirectory>
211211
</configuration>
212212
</execution>
213+
<execution>
214+
<!-- This final no-op compilation step resets the output directory associated with this
215+
module. This is important for Maven reactor builds that skip the `install` phase,
216+
because in those the compilation of a module `B` happens with reference to the output
217+
directory of a module `A` on which it depends. -->
218+
<id>reset-output-directory</id>
219+
<goals>
220+
<goal>compile</goal>
221+
</goals>
222+
<configuration>
223+
<compileSourceRoots>
224+
<compileSourceRoot>${basedir}/nonexistent-directory</compileSourceRoot>
225+
</compileSourceRoots>
226+
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
227+
</configuration>
228+
</execution>
213229
</executions>
214230

215231
</plugin>

0 commit comments

Comments
 (0)