[
https://issues.apache.org/jira/browse/PHOENIX-3139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15404919#comment-15404919
]
James Taylor commented on PHOENIX-3139:
---------------------------------------
[~sergey.soldatov] or [~elserj] - is this something you can fix up?
> phoenix-hive assembly target overwrites input jar
> -------------------------------------------------
>
> Key: PHOENIX-3139
> URL: https://issues.apache.org/jira/browse/PHOENIX-3139
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 4.8.0
> Reporter: Andrew Purtell
>
> There is a maven-assembly-plugin target in the phoenix-hive module POM not
> present in other extension module POMs like for phoenix-pig or phoenix-flume.
> This assembly target creates a jar-with-dependencies assembly as
> phoenix-hive/target/phoenix-<version>-hive.jar. I think that path is also an
> implicit input to the assembly as the output of the earlier compile phase. I
> say that because I see the build failing with an odd error:
> {noformat}
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-assembly-plugin:2.5.2:single
> (make-jar-with-dependencies) on project phoenix-hive:
> Failed to create assembly:
> Error creating assembly archive jar-with-dependencies:
> Problem creating jar:
> jar:file:/.../phoenix-hive/target/phoenix-hive-<version>.jar!/org/apache/phoenix/hive/mapreduce/PhoenixRecordWriter.class:
> JAR entry org/apache/phoenix/hive/mapreduce/PhoenixRecordWriter.class not
> found in /.../phoenix-hive/target/phoenix-hive-<version>.jar -
> {noformat}
> Makes sense that the archiver can't find a class file in a jar if a writer is
> racing with a reader on the same file.
> What was the intent here? Commenting out the maven-assembly-plugin
> instructions in the phoenix-hive POM fixes (or at least avoids) this problem.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)