You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nidhi Marwaha <ni...@gmail.com> on 2016/02/16 22:23:16 UTC

Question regarding maven build on RHEL 7 failing for Apache Phoenix 4.6-HBase-1.1

Hi,

I am trying to build Apache Phoenix on RHEL 7. The build fails on
*Phoenix-Pherf *

The goals and options for build is -

*clean install package -DskipTests*

*Java version - *java-1.7.0-openjdk-1.7.0.75

*16:09:22* [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-assembly-plugin:2.5.2:single
(make-dependency-jar) on project phoenix-pherf: Failed to create
assembly: Error creating assembly archive jar-with-dependencies:
Problem creating jar:
jar:file:/a/workspace/Phoenix-4.6-HBase-1.2-ppc64le/phoenix-pherf/target/phoenix-pherf-4.6.1-HBase-1.1-SNAPSHOT.jar!/org/apache/phoenix/pherf/configuration/Column.class:
JAR entry org/apache/phoenix/pherf/configuration/Column.class not
found in /a/workspace/Phoenix-4.6-HBase-1.2-ppc64le/phoenix-pherf/target/phoenix-pherf-4.6.1-HBase-1.1-SNAPSHOT.jar
-> [Help 1

I downloaded phoenix-pherf-4.6.1-HBase-1.1-SNAPSHOT.jar and extracted
and I see the class file it is complaining about; they do exist.

*The build works fine on RHEL 6. **The issue is only for RHEL 7.*


Has anyone tried to build on RHEL 7? Any idea on what might be causing
the error ?


Thanks,

Nidhi

Re: Question regarding maven build on RHEL 7 failing for Apache Phoenix 4.6-HBase-1.1

Posted by Christopher <ct...@apache.org>.
You should try `mvn clean install -DskipTests`

Putting package in there is redundant (in most cases), as install is later
in the maven build lifecycle and will include the package phase, and it's
probably triggering a second lifecycle execution (only up to the package
phase) after it goes through the full lifecycle (up through install phase).

See:
https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

That said, I just tried `mvn clean verify -DskipTests` (because I don't
want to install into my local maven repo right now), on CentOS 7 x86_64
from the HEAD of the master branch (45a9d67), and it built fine.

On Thu, Feb 18, 2016 at 6:09 PM Nidhi Marwaha <ni...@gmail.com> wrote:

> Hi,
>
> I am trying to build Apache Phoenix on RHEL 7. The build fails on
> *Phoenix-Pherf *
>
> The goals and options for build is -
>
> *clean install package -DskipTests*
>
> *Java version - *java-1.7.0-openjdk-1.7.0.75
>
> *16:09:22* [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-assembly-plugin:2.5.2:single
> (make-dependency-jar) on project phoenix-pherf: Failed to create
> assembly: Error creating assembly archive jar-with-dependencies:
> Problem creating jar:
>
> jar:file:/a/workspace/Phoenix-4.6-HBase-1.2-ppc64le/phoenix-pherf/target/phoenix-pherf-4.6.1-HBase-1.1-SNAPSHOT.jar!/org/apache/phoenix/pherf/configuration/Column.class:
> JAR entry org/apache/phoenix/pherf/configuration/Column.class not
> found in
> /a/workspace/Phoenix-4.6-HBase-1.2-ppc64le/phoenix-pherf/target/phoenix-pherf-4.6.1-HBase-1.1-SNAPSHOT.jar
> -> [Help 1
>
> I downloaded phoenix-pherf-4.6.1-HBase-1.1-SNAPSHOT.jar and extracted
> and I see the class file it is complaining about; they do exist.
>
> *The build works fine on RHEL 6. **The issue is only for RHEL 7.*
>
>
> Has anyone tried to build on RHEL 7? Any idea on what might be causing
> the error ?
>
>
> Thanks,
>
> Nidhi
>

Re: Question regarding maven build on RHEL 7 failing for Apache Phoenix 4.6-HBase-1.1

Posted by Christopher <ct...@apache.org>.
You should try `mvn clean install -DskipTests`

Putting package in there is redundant (in most cases), as install is later
in the maven build lifecycle and will include the package phase, and it's
probably triggering a second lifecycle execution (only up to the package
phase) after it goes through the full lifecycle (up through install phase).

See:
https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

That said, I just tried `mvn clean verify -DskipTests` (because I don't
want to install into my local maven repo right now), on CentOS 7 x86_64
from the HEAD of the master branch (45a9d67), and it built fine.

On Thu, Feb 18, 2016 at 6:09 PM Nidhi Marwaha <ni...@gmail.com> wrote:

> Hi,
>
> I am trying to build Apache Phoenix on RHEL 7. The build fails on
> *Phoenix-Pherf *
>
> The goals and options for build is -
>
> *clean install package -DskipTests*
>
> *Java version - *java-1.7.0-openjdk-1.7.0.75
>
> *16:09:22* [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-assembly-plugin:2.5.2:single
> (make-dependency-jar) on project phoenix-pherf: Failed to create
> assembly: Error creating assembly archive jar-with-dependencies:
> Problem creating jar:
>
> jar:file:/a/workspace/Phoenix-4.6-HBase-1.2-ppc64le/phoenix-pherf/target/phoenix-pherf-4.6.1-HBase-1.1-SNAPSHOT.jar!/org/apache/phoenix/pherf/configuration/Column.class:
> JAR entry org/apache/phoenix/pherf/configuration/Column.class not
> found in
> /a/workspace/Phoenix-4.6-HBase-1.2-ppc64le/phoenix-pherf/target/phoenix-pherf-4.6.1-HBase-1.1-SNAPSHOT.jar
> -> [Help 1
>
> I downloaded phoenix-pherf-4.6.1-HBase-1.1-SNAPSHOT.jar and extracted
> and I see the class file it is complaining about; they do exist.
>
> *The build works fine on RHEL 6. **The issue is only for RHEL 7.*
>
>
> Has anyone tried to build on RHEL 7? Any idea on what might be causing
> the error ?
>
>
> Thanks,
>
> Nidhi
>