Skip to content

Commit 7206e84

Browse files
committed
Ensure lingering content from test harness approach does not remain after mvn clean
1 parent bfdce49 commit 7206e84

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

java/pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,24 @@
182182
-->
183183
<retryOnError>true</retryOnError>
184184
</configuration>
185+
<executions>
186+
<execution>
187+
<!--
188+
The VS Code Roslyn language server monitors .csproj
189+
files in the cloned repo at target/copilot-sdk/dotnet/
190+
and immediately re-creates obj/ metadata after the
191+
default-clean execution deletes target/. By running a
192+
second clean in post-clean, the resurrected directories
193+
are swept away and Roslyn does not recreate them again
194+
(the .csproj is already gone).
195+
-->
196+
<id>post-clean-sweep</id>
197+
<phase>post-clean</phase>
198+
<goals>
199+
<goal>clean</goal>
200+
</goals>
201+
</execution>
202+
</executions>
185203
</plugin>
186204
<plugin>
187205
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)