Skip to content

maven package error #3

@fuzi1996

Description

@fuzi1996
[INFO] --- source:3.3.0:jar (generate-sources) @ claude-code-sdk ---
Error:  We have duplicated artifacts attached.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Claude Agent SDK Parent 1.0.0-SNAPSHOT:
[INFO] 
[INFO] Claude Agent SDK Parent ............................ SUCCESS [  3.913 s]
[INFO] Claude Code SDK .................................... FAILURE [ 12.994 s]
[INFO] Claude Code SDK Examples ........................... SKIPPED
[INFO] Claude Code SDK Hello World Example ................ SKIPPED
[INFO] Claude Code SDK Research Agent Example ............. SKIPPED
[INFO] Claude Code SDK Excel Demo ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  22.188 s
[INFO] Finished at: 2026-01-14T12:50:42Z
[INFO] ------------------------------------------------------------------------
Error:  Failed to execute goal org.apache.maven.plugins:maven-source-plugin:3.3.0:jar (generate-sources) on project claude-code-sdk: Presumably you have configured maven-source-plugn to execute twice times in your build. You have to configure a classifier for at least on of them. -> [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 :claude-code-sdk
Error: Process completed with exit code 1.

maven -version

Run mvn --version
  mvn --version
  shell: /usr/bin/bash -e {0}
  env:
    JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.17-10/x64
    JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.17-10/x64
Apache Maven 3.9.12 (848fbb4bf2d427b72bdb2471c22fced7ebd9a7a1)
Maven home: /usr/share/apache-maven-3.9.12
Java version: 17.0.17, vendor: Eclipse Adoptium, runtime: /usr/lib/jvm/temurin-17-jdk-amd64
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "6.11.0-1018-azure", arch: "amd64", family: "unix"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions