Jenkins build failure: "...project cli: Error creating shaded jar: duplicate entry: META-INF/services/io.jenkins.cli.shaded.jakarta.websocket.ContainerProvider"

39 views
Skip to first unread message

Cyrille Le Clerc

unread,
Apr 15, 2022, 12:08:43 PM4/15/22
to Jenkins Developers
Dear Jenkins Dev community,

I fail to build Jenkins on my Mac amd64 12.3.1 with Maven 3.8.5 and JDK 11.0.11.

The message is:
Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.3.0:shade (default) on project cli: Error creating shaded jar: duplicate entry: META-INF/services/io.jenkins.cli.shaded.jakarta.websocket.ContainerProvider

The detailed build logs are here:
https://gist.github.com/cyrille-leclerc/1b1177f47984e90872a70763d4012d93

Is it a known build problem?
Thanks in advance,

Cyrille

Mark Waite

unread,
Apr 15, 2022, 12:48:34 PM4/15/22
to jenkinsci-dev
We had known problems with Maven 3.8.5 on ci.jenkins.io and had to roll back to 3.8.4.  Currently building with Java 11.0.14.1 and maven 3.8.4.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/6c473a86-2096-4b74-8c7c-16de18a5e008n%40googlegroups.com.

Jesse Glick

unread,
Apr 15, 2022, 3:37:05 PM4/15/22
to jenkin...@googlegroups.com
On Fri, Apr 15, 2022 at 12:08 PM 'Cyrille Le Clerc' via Jenkins Developers <jenkin...@googlegroups.com> wrote:
Is it a known build problem?

Other than Maven 3.8.5 being broken as Mark mentioned, there are not in general known build problems. Someone would fix the problem right away, if it even somehow got merged to trunk despite CI checks.

I would suggest starting with `mvn clean`. If that still fails, try a build of a fresh checkout inside a Docker container.

Cyrille Le Clerc

unread,
Apr 19, 2022, 3:56:36 AM4/19/22
to Jenkins Developers
Thanks, using Maven 3.8.4 fixed my problem. I created the issue JENKINS-68302 Building Jenkins with Maven 3.8.5 fails on maven-shade-plugin:shade and submitted the pull request JENKINS-68302 Use mvnw to specify Maven v3.8.4 as v3.8.5 fails #6491.
Reply all
Reply to author
Forward
0 new messages