Added maven-clean-plugin to remove ANTLR generated codes.
Change-Id: I5eb5d6f67ab740da30b9d0d6f1af42b3b64efe18
diff --git a/pom.xml b/pom.xml
index 7ad9bfe..8149525 100644
--- a/pom.xml
+++ b/pom.xml
@@ -136,6 +136,35 @@
<sourceDirectory>${basedir}/src/main/java</sourceDirectory>
<outputDirectory>${basedir}/target/classes</outputDirectory>
<plugins>
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>3.0.0</version>
+ <configuration>
+ <filesets>
+ <fileset>
+ <directory>${basedir}/src/main/java/de/ids_mannheim/korap/query/parse</directory>
+ <includes>
+ <include>**/*.java</include>
+ <include>**/*.tokens</include>
+ </includes>
+ <excludes>
+ <exclude>**/IErrorReporter.java</exclude>
+ <exclude>**/c2ps_opAnnot.java</exclude>
+ <exclude>**/c2ps_opBED.java</exclude>
+ <exclude>**/c2ps_opELEM.java</exclude>
+ <exclude>**/c2ps_opIN.java</exclude>
+ <exclude>**/c2ps_opOV.java</exclude>
+ <exclude>**/c2ps_opPROX.java</exclude>
+ <exclude>**/c2ps_opWF.java</exclude>
+ <exclude>**/c2ps_optCase.java</exclude>
+ <exclude>**/.gitignore</exclude>
+ <exclude>fcsql/*</exclude>
+ </excludes>
+ <followSymlinks>false</followSymlinks>
+ </fileset>
+ </filesets>
+ </configuration>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>