IGNITE-15168 Local dependency purge integrated into build process. (#234)

diff --git a/parent/pom.xml b/parent/pom.xml
index c6e3b68..b6b8730 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -96,12 +96,12 @@
         <maven.build-helper.plugin.version>3.2.0</maven.build-helper.plugin.version>
         <maven.checkstyle.plugin.version>3.1.2</maven.checkstyle.plugin.version>
         <maven.compiler.plugin.version>3.8.1</maven.compiler.plugin.version>
+        <maven.dependency.plugin.version>3.2.0</maven.dependency.plugin.version>
         <maven.deploy.plugin.version>2.8.2</maven.deploy.plugin.version>
         <maven.failsafe.plugin.version>3.0.0-M5</maven.failsafe.plugin.version>
         <maven.flatten.plugin.version>1.2.2</maven.flatten.plugin.version>
         <maven.javacc.plugin.version>2.6</maven.javacc.plugin.version>
         <maven.resources.plugin.version>3.2.0</maven.resources.plugin.version>
-        <maven.dependency.plugin.version>3.1.2</maven.dependency.plugin.version>
         <maven.fmpp.plugin.version>1.0</maven.fmpp.plugin.version>
         <maven.javadoc.plugin.version>3.2.0</maven.javadoc.plugin.version>
         <maven.pmd.plugin.version>3.14.0</maven.pmd.plugin.version>
@@ -1193,6 +1193,30 @@
                     </bottom>
                 </configuration>
             </plugin>
+
+            <!--
+                Plugin to remove org.apache.ignite.* artifacts from local repository before the build
+                (always clean build with current reactor dependency resolution)
+            -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>purge-local-repository</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>purge-local-repository</goal>
+                        </goals>
+                        <configuration>
+                            <manualIncludes>
+                                <manualInclude>org.apache.ignite:${project.artifactId}/${project.version}</manualInclude>
+                            </manualIncludes>
+                            <verbose>true</verbose>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
 </project>