Delete intermediate serialized key files generated during previous tests run when compiling/running new code
</rules>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <executions>
+ <!-- Delete temporary serialized key files generated during tests run -->
+ <execution>
+ <id>auto-clean-key-files</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>clean</goal>
+ </goals>
+ <configuration>
+ <filesets>
+ <fileset>
+ <directory>${projects.basedir}</directory>
+ <includes>
+ <include>*.ser</include>
+ <include>*.pem</include>
+ </includes>
+ </fileset>
+ </filesets>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
