GitHub user ckadner opened a pull request:
https://github.com/apache/bahir/pull/14
[BAHIR-38] clean Ivy cache during Maven install phase
[BAHIR-38: Spark-submit does not use latest locally installed Bahir
packages](https://issues.apache.org/jira/browse/BAHIR-38)
When we `install` the org.apache.bahir jars into the local Maven repository
we also need to clean the previous jar files from the Ivy cache
(~/iv2/cache/org.apache.bahir/*) so `spark-submit -packages ...` will pick up
the new version from the the local Maven repository.
*pom.xml:*
```xml
<build>
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<executions>
<!--
When we `install` the org.apache.bahir jars into the local
Maven repository we also need
to clean the previous jar files from the Ivy cache
(~/iv2/cache/org.apache.bahir/*) so
`spark-submit -packages ...` will pick up the new version from
the the local Maven repository
-->
<execution>
<id>cleanup-ivy-cache</id>
<phase>install</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<followSymLinks>false</followSymLinks>
<excludeDefaultDirectories>true</excludeDefaultDirectories>
<filesets>
<fileset>
<directory>${user.home}/.ivy2/cache/${project.groupId}/${project.artifactId}</directory>
<includes>
<include>*-${project.version}.*</include>
<include>jars/${project.artifactId}-${project.version}.jar</include>
</includes>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ckadner/bahir
BAHIR-38_clean_Ivy_cache_during_mvn_install
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/bahir/pull/14.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #14
----
commit e21e5d33c0b6ba953743479c68c176a16a0b8bf6
Author: Christian Kadner <[email protected]>
Date: 2016-07-27T03:37:22Z
[BAHIR-38] clean Ivy cache during Maven install phase
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---