I agree.
Also, running *mvn package* on a clean source repo also works.
This is one of those maven peculiarities that we have to live with, and are
not worth trying to fix / workaround.
We are also specifically instructing users to use *mvn clean <something> *in
BUILDING.md, so we are good on the docs front, too.

On Sun, Feb 7, 2021 at 10:33 AM Viraj Jasani <[email protected]> wrote:

> If we run "mvn package" (without clean) after "mvn clean install", we get
> above issue.
> However, "mvn clean package" and "mvn clean install" both are working
> just fine. Hence, I think we are good here.
>
> Let's wait for Daniel to confirm the command which caused issue and in the
> meanwhile, I will start with RC testing.
>
>
> On 2021/02/07 08:31:25, Viraj Jasani <[email protected]> wrote:
> > I see, "mvn package" is failing:
> >
> > [INFO] Apache Phoenix ..................................... SUCCESS [
> 1.643 s]
> > [INFO] Phoenix Hbase 1.5.0 compatibility .................. SUCCESS [
> 2.157 s]
> > [INFO] Phoenix Hbase 1.4.0 compatibility .................. SUCCESS [
> 1.684 s]
> > [INFO] Phoenix Hbase 1.3.0 compatibility .................. SUCCESS [
> 0.395 s]
> > [INFO] Phoenix Core ....................................... SUCCESS [
> 52.643 s]
> > [INFO] Phoenix - Pherf .................................... FAILURE [
> 11.782 s]
> > [INFO] Phoenix Client Parent .............................. SKIPPED
> > [INFO] Phoenix Client for HBase 1.6 ....................... SKIPPED
> > [INFO] Phoenix Server JAR for HBase 1.6 ................... SKIPPED
> > [INFO] Phoenix - Tracing Web Application .................. SKIPPED
> > [INFO] Phoenix Assembly ................................... SKIPPED
> > [INFO] phoenix-tools ...................................... SKIPPED
> > [INFO] Phoenix Client Embedded for HBase 1.6 .............. SKIPPED
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] Total time: 01:11 min
> > [INFO] Finished at: 2021-02-07T13:25:23+05:30
> > [INFO] Final Memory: 167M/2911M
> > [INFO]
> ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-shade-plugin:3.2.4:shade (default) on
> project phoenix-pherf: Error creating shaded jar: duplicate entry:
> README.md -> [Help 1]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> > [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> > [ERROR]
> > [ERROR] After correcting the problems, you can resume the build with the
> command
> > [ERROR]   mvn <goals> -rf :phoenix-pherf
> >
> >
> >
> > Moreover, I just checked on master branch locally and the same issue
> persists,
> > hence most likely 5.1 RC is also impacted. Will check quickly and update
> > here.
> >
> >
> > On 2021/02/07 08:15:21, Viraj Jasani <[email protected]> wrote:
> > > I also just tried building the RC on linux vm and couldn’t reproduce
> the
> > > issue. Used the same command as already used by Istvan above.
> > > (Although it was built with jdk 1.8.0_171)
> > >
> > >
> > > On Sun, 7 Feb 2021 at 11:44 AM, Istvan Toth <[email protected]
> >
> > > wrote:
> > >
> > > > Hi!
> > > >
> > > > I have just tried to rebuild
> > > > *
> > > >
> https://dist.apache.org/repos/dist/dev/phoenix/phoenix-4.16.0RC2/phoenix-4.16.0-src.tar.gz
> > > > <
> > > >
> https://dist.apache.org/repos/dist/dev/phoenix/phoenix-4.16.0RC2/phoenix-4.16.0-src.tar.gz
> > > > >*
> > > > ,
> > > > with the same jdk and maven versions (from homebrew) as you, Daniel,
> and I
> > > > couldn't reproduce the shading issue.
> > > >
> > > > I run the *mvn clean install -Dhbase.profile=1.6 -DskipTests*
> command line
> > > > twice in a row to rule out rebuild problems.
> > > > Maybe a dirty source directory ?
> > > > If not what was the maven command line that you used ?
> > > >
> > > > regards
> > > > Istvan
> > > >
> > > >
> > > > On Sun, Feb 7, 2021 at 3:00 AM Daniel Wong <[email protected]>
> wrote:
> > > >
> > > > > Hi dev, I took some time to try this release out and currently am
> +0
> > > > > (non-binding).  I was using the hbase1.6 binaries/src and was
> hitting the
> > > > > following error when compiling from linked source on a fresh vm.
> > > > >
> > > > > [ERROR] Failed to execute goal
> > > > > org.apache.maven.plugins:maven-shade-plugin:3.2.4:shade (default)
> on
> > > > > project phoenix-pherf: Error creating shaded jar: duplicate entry:
> > > > > README.md -> [Help 1]
> > > > >
> > > > > [ERROR]
> > > > >
> > > > > [ERROR] To see the full stack trace of the errors, re-run Maven
> with the
> > > > -e
> > > > > switch.
> > > > >
> > > > > [ERROR] Re-run Maven using the -X switch to enable full debug
> logging.
> > > > >
> > > > > [ERROR]
> > > > >
> > > > > [ERROR] For more information about the errors and possible
> solutions,
> > > > > please read the following articles:
> > > > >
> > > > > [ERROR] [Help 1]
> > > > >
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> > > > >
> > > > > [ERROR]
> > > > >
> > > > > [ERROR] After correcting the problems, you can resume the build
> with the
> > > > > command
> > > > >
> > > > > [ERROR]   mvn <args> -rf :phoenix-pherf
> > > > >
> > > > >
> > > > > I haven't been closing following the changes but wondering if this
> was
> > > > > expected or environmental.  My environment is openjdk 1.8.0_275 and
> > > > apache
> > > > > mvn 3.6.3.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Sat, Feb 6, 2021 at 5:07 PM Daniel Wong <
> [email protected]>
> > > > > wrote:
> > > > >
> > > > > >
> > > > > >
> > > > > > ---------- Forwarded message ---------
> > > > > > From: Xinyi Yan <[email protected]>
> > > > > > Date: Fri, Feb 5, 2021 at 8:54 PM
> > > > > > Subject: [VOTE] Release of Apache Phoenix 4.16.0 RC2
> > > > > > To: <[email protected]>
> > > > > >
> > > > > >
> > > > > > Hello Everyone,
> > > > > >
> > > > > > This is a call for a vote on Apache Phoenix 4.16.0 RC2. This is
> the
> > > > next
> > > > > > minor release of Phoenix 4, compatible with Apache HBase 1.3,
> 1.4, 1.5
> > > > > > and 1.6.
> > > > > >
> > > > > > The VOTE will remain open for at least 72 hours.
> > > > > >
> > > > > > [ ] +1 Release this package as Apache phoenix 4.16.0
> > > > > > [ ] -1 Do not release this package because ...
> > > > > >
> > > > > > The tag to be voted on is 4.16.0RC2
> > > > > >
> > > > > >
> > > > >
> > > >
> https://urldefense.com/v3/__https://github.com/apache/phoenix/tree/4.16.0RC2__;!!DCbAVzZNrAf4!SiX7ZzRDRcBLFmE-uMWidRvym6FG6CHlbm_2J5nGctJvvS20H7ZWZOi6kBES6NfSRvUJ$
> > > > > >
> > > > > > The release files, including signatures, digests, as well as
> CHANGES.md
> > > > > > and RELEASENOTES.md included in this RC can be found at:
> > > > > >
> > > > > >
> > > > >
> > > >
> https://urldefense.com/v3/__https://dist.apache.org/repos/dist/dev/phoenix/phoenix-4.16.0RC2/__;!!DCbAVzZNrAf4!SiX7ZzRDRcBLFmE-uMWidRvym6FG6CHlbm_2J5nGctJvvS20H7ZWZOi6kBES6KnhbS3H$
> > > > > >
> > > > > > For a complete list of changes, see:
> > > > > >
> > > > > >
> > > > >
> > > >
> https://urldefense.com/v3/__https://dist.apache.org/repos/dist/dev/phoenix/phoenix-4.16.0RC2/CHANGES.md__;!!DCbAVzZNrAf4!SiX7ZzRDRcBLFmE-uMWidRvym6FG6CHlbm_2J5nGctJvvS20H7ZWZOi6kBES6PS1Qn9Q$
> > > > > >
> > > > > > Artifacts are signed with my "CODE SIGNING KEY":
> > > > > > E4882DD3AB711587
> > > > > >
> > > > > > KEYS file available here:
> > > > > >
> > > > > >
> > > > >
> > > >
> https://urldefense.com/v3/__https://dist.apache.org/repos/dist/dev/phoenix/KEYS__;!!DCbAVzZNrAf4!SiX7ZzRDRcBLFmE-uMWidRvym6FG6CHlbm_2J5nGctJvvS20H7ZWZOi6kBES6G16uYnW$
> > > > > >
> > > > > >
> > > > > > Thanks,
> > > > > > Xinyi
> > > > > >
> > > > > > <
> > > > > >
> > > > >
> > > >
> https://urldefense.com/v3/__https://dist.apache.org/repos/dist/dev/phoenix/phoenix-4.16.0RC1/CHANGES.md__;!!DCbAVzZNrAf4!SiX7ZzRDRcBLFmE-uMWidRvym6FG6CHlbm_2J5nGctJvvS20H7ZWZOi6kBES6JE3nOo9$
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Daniel Wong
> > > > > > Salesforce
> > > > > > Mobile: 628.217.1808
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > *István Tóth* | Staff Software Engineer
> > > > [email protected] <https://www.cloudera.com>
> > > > [image: Cloudera] <https://www.cloudera.com/>
> > > > [image: Cloudera on Twitter] <https://twitter.com/cloudera> [image:
> > > > Cloudera on Facebook] <https://www.facebook.com/cloudera> [image:
> Cloudera
> > > > on LinkedIn] <https://www.linkedin.com/company/cloudera>
> > > > <https://www.cloudera.com/>
> > > > ------------------------------
> > > >
> > >
> >
>

Reply via email to