Fix swift source generation bound to process-sources

By convention it should be the phase generate-sources
This commit is contained in:
Clément Fournier 2019-08-05 15:49:02 +02:00
parent 7c970991cd
commit 85404876f4
2 changed files with 9 additions and 6 deletions

View File

@ -16,14 +16,19 @@
<build>
<plugins>
<plugin>
<!-- this needs to run before the ant task -->
<groupId>org.antlr</groupId>
<artifactId>antlr4-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<inherited>true</inherited>
<executions>
<execution>
<id>process-sources</id>
<phase>process-sources</phase>
<id>antlr-generation</id>
<phase>generate-sources</phase>
<configuration>
<target>
<ant antfile="src/main/ant/antlr4.xml">
@ -37,10 +42,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.antlr</groupId>
<artifactId>antlr4-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>

View File

@ -304,6 +304,8 @@ Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code
<goals>
<goal>antlr4</goal>
</goals>
<!-- This is default but let's be clear -->
<phase>generate-sources</phase>
</execution>
</executions>
</plugin>