Skip to content

Commit 8eff02b

Browse files
authored
Workaround for plexus-utils ignoring .gitignore. (#108)
Ref: codehaus-plexus/plexus-utils#269
1 parent 70d924b commit 8eff02b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@
113113
<artifactId>versions-maven-plugin</artifactId>
114114
<version>${versions.maven.plugin.version}</version>
115115
</plugin>
116+
<plugin>
117+
<groupId>org.apache.maven.plugins</groupId>
118+
<artifactId>maven-antrun-plugin</artifactId>
119+
<version>3.1.0</version>
120+
</plugin>
116121

117122
<!-- FOR RENOVATE -->
118123
<plugin>
@@ -179,6 +184,26 @@
179184
</execution>
180185
</executions>
181186
</plugin>
187+
<plugin>
188+
<groupId>org.apache.maven.plugins</groupId>
189+
<artifactId>maven-antrun-plugin</artifactId>
190+
<executions>
191+
<execution>
192+
<phase>process-test-resources</phase>
193+
<goals>
194+
<goal>run</goal>
195+
</goals>
196+
<configuration>
197+
<target>
198+
<copy file="${project.basedir}/src/test/resources/projects/it-java11/reference/.gitignore" tofile="${project.build.testOutputDirectory}/projects/it-java11/reference/.gitignore"/>
199+
<copy file="${project.basedir}/src/test/resources/projects/it-java17/reference/.gitignore" tofile="${project.build.testOutputDirectory}/projects/it-java17/reference/.gitignore"/>
200+
<copy file="${project.basedir}/src/test/resources/projects/it-java21/reference/.gitignore" tofile="${project.build.testOutputDirectory}/projects/it-java21/reference/.gitignore"/>
201+
</target>
202+
</configuration>
203+
</execution>
204+
</executions>
205+
</plugin>
206+
182207
<plugin>
183208
<groupId>org.sonatype.plugins</groupId>
184209
<artifactId>nexus-staging-maven-plugin</artifactId>

0 commit comments

Comments
 (0)