Skip to content

Commit 002cc10

Browse files
Copilotmaybeec
andauthored
Fix build failure due to deprecated maven-antrun-plugin tasks parameter (#1699)
* Initial plan * Fix deprecated maven-antrun-plugin tasks parameter usage Co-authored-by: maybeec <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: maybeec <[email protected]> Co-authored-by: Malte Brunnlieb <[email protected]>
1 parent b5dc116 commit 002cc10

File tree

8 files changed

+16
-16
lines changed
  • cobigen-cli/cli-systemtest/src/test/resources/testdata
    • AdaptTemplatesCommandIT/template-sets/adapted
    • templatesproject
      • template-sets/adapted/crud-java-server-app
      • templates-devon4j
  • cobigen-templates
  • cobigen/cobigen-core-systemtest/src/test/resources/testdata/systemtest/TemplateProcessingTest/template-sets/adapted

8 files changed

+16
-16
lines changed

cobigen-cli/cli-systemtest/src/test/resources/testdata/AdaptTemplatesCommandIT/template-sets/adapted/crud-java-server-app-complex/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@
6969
<goal>run</goal>
7070
</goals>
7171
<configuration>
72-
<tasks>
72+
<target>
7373
<echo>Integrate POM manually</echo>
7474
<copy file="pom.xml" tofile="${project.build.outputDirectory}/pom.xml"/>
75-
</tasks>
75+
</target>
7676
</configuration>
7777
</execution>
7878
</executions>

cobigen-cli/cli-systemtest/src/test/resources/testdata/AdaptTemplatesCommandIT/template-sets/adapted/crud-java-server-app/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@
6969
<goal>run</goal>
7070
</goals>
7171
<configuration>
72-
<tasks>
72+
<target>
7373
<echo>Integrate POM manually</echo>
7474
<copy file="pom.xml" tofile="${project.build.outputDirectory}/pom.xml"/>
75-
</tasks>
75+
</target>
7676
</configuration>
7777
</execution>
7878
</executions>

cobigen-cli/cli-systemtest/src/test/resources/testdata/templatesproject/template-sets/adapted/crud-java-server-app/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
<goal>run</goal>
4242
</goals>
4343
<configuration>
44-
<tasks>
44+
<target>
4545
<echo>Integrate POM manually</echo>
4646
<copy file="pom.xml" tofile="${project.build.outputDirectory}/pom.xml"/>
47-
</tasks>
47+
</target>
4848
</configuration>
4949
</execution>
5050
</executions>

cobigen-cli/cli-systemtest/src/test/resources/testdata/templatesproject/templates-devon4j/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
<goal>run</goal>
4242
</goals>
4343
<configuration>
44-
<tasks>
44+
<target>
4545
<echo>Integrate POM manually</echo>
4646
<copy file="pom.xml" tofile="${project.build.outputDirectory}/pom.xml"/>
47-
</tasks>
47+
</target>
4848
</configuration>
4949
</execution>
5050
</executions>

cobigen-templates/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLS
114114
<goal>run</goal>
115115
</goals>
116116
<configuration>
117-
<tasks>
117+
<target>
118118
<echo>Integrate flattened POM manually</echo>
119119
<!-- Patching the flattened-pom file -->
120120
<!-- Removing the last </project> line -->
@@ -139,7 +139,7 @@ xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLS
139139
</then>
140140
</if>
141141
<copy file=".flattened-pom.xml" tofile="${project.build.outputDirectory}/pom.xml" />
142-
</tasks>
142+
</target>
143143
</configuration>
144144
</execution>
145145
</executions>

cobigen-templates/templates-devon4j-utils/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<goal>run</goal>
6565
</goals>
6666
<configuration>
67-
<tasks>
67+
<target>
6868
<!-- Patching the flattened-pom file -->
6969
<!-- Removing the last </project> line -->
7070
<replace file=".flattened-pom.xml" value="" token="&lt;/project>"></replace>
@@ -80,7 +80,7 @@
8080
<replace file="./pom_patch.xml" value="{maven.compiler.target}" token="${maven.compiler.target}"></replace>
8181
<!-- Restoring the last </project> line -->
8282
<concat destfile=".flattened-pom.xml" append="true">&lt;/project></concat>
83-
</tasks>
83+
</target>
8484
</configuration>
8585
</execution>
8686
</executions>

cobigen/cobigen-core-systemtest/src/test/resources/testdata/systemtest/TemplateProcessingTest/template-sets/adapted/crud-java-server-app-complex/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@
6969
<goal>run</goal>
7070
</goals>
7171
<configuration>
72-
<tasks>
72+
<target>
7373
<echo>Integrate POM manually</echo>
7474
<copy file="pom.xml" tofile="${project.build.outputDirectory}/pom.xml"/>
75-
</tasks>
75+
</target>
7676
</configuration>
7777
</execution>
7878
</executions>

cobigen/cobigen-core-systemtest/src/test/resources/testdata/systemtest/TemplateProcessingTest/template-sets/adapted/crud-java-server-app/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@
6969
<goal>run</goal>
7070
</goals>
7171
<configuration>
72-
<tasks>
72+
<target>
7373
<echo>Integrate POM manually</echo>
7474
<copy file="pom.xml" tofile="${project.build.outputDirectory}/pom.xml"/>
75-
</tasks>
75+
</target>
7676
</configuration>
7777
</execution>
7878
</executions>

0 commit comments

Comments
 (0)