Created https://issues.apache.org/jira/browse/MNG-8180
On Wed, Jul 10, 2024 at 11:04 PM Tamás Cservenák <ta...@cservenak.net> wrote: > You, Maven says this: > > ``` > [DEBUG] Using transporter HttpTransporter with priority 5.0 for > https://repository.apache.org/service/local/staging/deploy/maven2 > [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for > https://repository.apache.org/service/local/staging/deploy/maven2 with > username=cstamas, password=*** > Uploading to apache.releases.https: > https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/3.0.0/tika-grpc-3.0.0.pom > Uploaded to apache.releases.https: > https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/3.0.0/tika-grpc-3.0.0.pom > (16 kB at 7.3 kB/s) > Uploading to apache.releases.https: > https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/3.0.0/tika-grpc-3.0.0.jar > Uploaded to apache.releases.https: > https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/3.0.0/tika-grpc-3.0.0.jar > (72 MB at 15 MB/s) > Downloading from apache.releases.https: > https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/maven-metadata.xml > [DEBUG] Could not find metadata > org.apache.tika:tika-grpc/maven-metadata.xml in apache.releases.https ( > https://repository.apache.org/service/local/staging/deploy/maven2) > [DEBUG] Writing tracking file > '/home/cstamas/.m2/repository-oss/org/apache/tika/tika-grpc/resolver-status.properties' > Uploading to apache.releases.https: > https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/maven-metadata.xml > Uploaded to apache.releases.https: > https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/maven-metadata.xml > (304 B at 769 B/s) > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 29.370 s > [INFO] Finished at: 2024-07-10T23:01:08+02:00 > [INFO] > ------------------------------------------------------------------------ > ``` > > And "fake" tika-grpc successfully deployed here: > orgapachetika-1104 > > (will drop it) > > This is a nasty bug. > > In short, tika-grpc JAR is shaded, and _contains a Maven Plugin_ > (META-INF/maven/plugin.xml), and Resolver blindly assumed it is deploying > _a Maven Plugin_ (based on presence of this file) and took G:A from it and > wanted to update plugin metadata.... > > Fix: > add this line to shade excludes: > <exclude>META-INF/maven/plugin.xml</exclude> > > T > > > On Wed, Jul 10, 2024 at 10:57 PM Tamás Cservenák <ta...@cservenak.net> > wrote: > >> Found it, will create PR and explain >> >> T >> >> On Wed, Jul 10, 2024 at 10:22 PM Tim Allison <talli...@apache.org> wrote: >> >>> What?! >>> >>> On Wed, Jul 10, 2024 at 4:20 PM Tamás Cservenák <ta...@cservenak.net> >>> wrote: >>> >>> > Howdy, >>> > >>> > reproduced, and is even weirder: >>> > >>> > >>> https://gist.github.com/cstamas/4f2e9e68f35da850be60e44c24bc581a#file-gistfile1-txt-L70 >>> > >>> > Line 70 is what you mention... >>> > >>> > But not only that, you have the same stuff INSTALLed as well, see line >>> 32! >>> > Looking more... >>> > >>> > >>> > On Wed, Jul 10, 2024 at 9:44 PM Tim Allison <talli...@apache.org> >>> wrote: >>> > >>> > > Apache Maven 3.9.7 (8b094c9513efc1b9ce2d952b3b9c8eaedaf8cbf0) >>> > > Maven home: /apache/apache-maven-3.9.7 >>> > > Java version: 11.0.23, vendor: Eclipse Adoptium, runtime: >>> > > /usr/lib/jvm/temurin-11-jdk-amd64 >>> > > Default locale: en_US, platform encoding: UTF-8 >>> > > OS name: "linux", version: "6.5.0-41-generic", arch: "amd64", family: >>> > > "unix" >>> > > >>> > > I've downgraded the version of the deploy plugin for now. I'll let >>> you >>> > know >>> > > if that works. Thank you! >>> > > >>> > > On Wed, Jul 10, 2024 at 3:37 PM Tamás Cservenák <ta...@cservenak.net >>> > >>> > > wrote: >>> > > >>> > > > Howdy, >>> > > > >>> > > > This is wierd. What maven version are you using? And what java >>> version? >>> > > > Will try to reproduce. >>> > > > >>> > > > T >>> > > > >>> > > > On Wed, Jul 10, 2024, 20:56 Tim Allison <talli...@apache.org> >>> wrote: >>> > > > >>> > > > > Hi All, >>> > > > > I'm sure this is user error. I recently tried to deploy Apache >>> Tika >>> > > > with >>> > > > > maven-deploy-plugin:3.1.2. >>> > > > > I'm having a problem with deploying a new module we just added. >>> > > > > >>> > > > > Our repo is here: https://github.com/apache/tika >>> > > > > >>> > > > > I see the usual download/upload pattern, but then after the final >>> > > > download >>> > > > > of tika-grpc/metadata.xml, it looks like it is trying to >>> download the >>> > > > > metadata for xmlbeans?! >>> > > > > >>> > > > > What am I doing wrong? >>> > > > > >>> > > > > Thank you! >>> > > > > >>> > > > > Expected pattern: >>> > > > > >>> > > > > [INFO] [INFO] --- deploy:3.1.2:deploy (default-deploy) @ >>> tika-grpc >>> > --- >>> > > > > [INFO] Uploading to apache.releases.https: >>> > > > > >>> > > > > >>> > > > >>> > > >>> > >>> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/3.0.0-BETA2/tika-grpc-3.0.0-BETA2.pom >>> > > > > [INFO] Progress (1): 16 kB >>> > > > > [INFO] >>> > > > > [INFO] Uploaded to apache.releases.https: >>> > > > > >>> > > > > >>> > > > >>> > > >>> > >>> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/3.0.0-BETA2/tika-grpc-3.0.0-BETA2.pom >>> > > > > (16 kB at 9.0 kB/s) >>> > > > > [INFO] Uploading to apache.releases.https: >>> > > > > >>> > > > > >>> > > > >>> > > >>> > >>> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/3.0.0-BETA2/tika-grpc-3.0.0-BETA2.jar >>> > > > > [INFO] Uploading to apache.releases.https: >>> > > > > >>> > > > > >>> > > > >>> > > >>> > >>> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/3.0.0-BETA2/tika-grpc-3.0.0-BETA2-sources.jar >>> > > > > [INFO] Uploading to apache.releases.https: >>> > > > > >>> > > > > >>> > > > >>> > > >>> > >>> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/3.0.0-BETA2/tika-grpc-3.0.0-BETA2.pom.asc >>> > > > > [INFO] Uploading to apache.releases.https: >>> > > > > >>> > > > > >>> > > > >>> > > >>> > >>> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/3.0.0-BETA2/tika-grpc-3.0.0-BETA2.jar.asc >>> > > > > [INFO] Uploading to apache.releases.https: >>> > > > > >>> > > > > >>> > > > >>> > > >>> > >>> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/3.0.0-BETA2/tika-grpc-3.0.0-BETA2-sources.jar.asc >>> > > > > .... >>> > > > > >>> > > > > [INFO] Uploaded to apache.releases.https: >>> > > > > >>> > > > > >>> > > > >>> > > >>> > >>> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/3.0.0-BETA2/tika-grpc-3.0.0-BETA2.jar.asc >>> > > > > (833 B at 1.2 kB/s) >>> > > > > [INFO] Uploaded to apache.releases.https: >>> > > > > >>> > > > > >>> > > > >>> > > >>> > >>> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/3.0.0-BETA2/tika-grpc-3.0.0-BETA2.pom.asc >>> > > > > (833 B at 1.2 kB/s) >>> > > > > [INFO] Uploaded to apache.releases.https: >>> > > > > >>> > > > > >>> > > > >>> > > >>> > >>> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/3.0.0-BETA2/tika-grpc-3.0.0-BETA2-sources.jar.asc >>> > > > > (833 B at 1.2 kB/s) >>> > > > > .... >>> > > > > >>> > > > > [INFO] Uploaded to apache.releases.https: >>> > > > > >>> > > > > >>> > > > >>> > > >>> > >>> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/3.0.0-BETA2/tika-grpc-3.0.0-BETA2-sources.jar >>> > > > > (82 kB at 53 kB/s) >>> > > > > >>> > > > > .... >>> > > > > >>> > > > > [INFO] Uploaded to apache.releases.https: >>> > > > > >>> > > > > >>> > > > >>> > > >>> > >>> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/3.0.0-BETA2/tika-grpc-3.0.0-BETA2.jar >>> > > > > (72 MB at 6.2 MB/s) >>> > > > > [INFO] Downloading from apache.releases.https: >>> > > > > >>> > > > > >>> > > > >>> > > >>> > >>> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/tika/tika-grpc/maven-metadata.xml >>> > > > > *[INFO] Downloading from apache.releases.https: >>> > > > > >>> > > > > >>> > > > >>> > > >>> > >>> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/xmlbeans/maven-metadata.xml >>> > > > > < >>> > > > > >>> > > > >>> > > >>> > >>> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/xmlbeans/maven-metadata.xml >>> > > > > >* >>> > > > > [INFO] [WARNING] Could not transfer metadata >>> > > > > org.apache.xmlbeans/maven-metadata.xml from/to >>> apache.releases.https >>> > ( >>> > > > > >>> https://repository.apache.org/service/local/staging/deploy/maven2): >>> > > > status >>> > > > > code: 400, reason phrase: Bad Request (400) >>> > > > > >>> > > > >>> > > >>> > >>> >>