ODLPARENT-142: Don't package mysql-connector-java
[integration/distribution.git] / karaf / pom.xml
index 304a42fcbda7d868abbc08a72e3bff968b78b67c..8b0fe949a535668307efc304bb194962c92e9df1 100644 (file)
                     </execution>
                 </executions>
             </plugin>
+
+            <!-- ODLPARENT-142: Heavy-handed workaround to remove mysql dependencies from system -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>prepare-package</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <delete includeemptydirs="true">
+                                    <fileset dir="${project.build.directory}/assembly/system/mysql"/>
+                                </delete>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
 </project>