GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [MSOURCES-141] Check duplication of attached jar should be configurable to not fail when using the build cache · Issue #200 · apache/maven-source-plugin

[MSOURCES-141] Check duplication of attached jar should be configurable to not fail when using the build cache #200

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[MSOURCES-141] Check duplication of attached jar should be configurable to not fail when using the build cache#200
Copy link
Assignees
olamy
Labels
StalebugSomething isn't workingpriority:majorMajor loss of functionwaiting-for-feedbackWaiting for 90 days until issues or pull request will be closed

Description

@jira-importer
jira-importer
opened on Aug 1, 2023
Issue body actions

Olivier Lamy opened MSOURCES-141 and commented

because MSOURCES-121 using source jar mojo and build cache generate an error as the cache restore a project with attached artifacts and so the source mojo fail because of this.

Caused by: org.apache.maven.plugin.MojoExecutionException: 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.
    at org.apache.maven.plugins.source.AbstractSourceJarMojo.packageSources (AbstractSourceJarMojo.java:309)
    at org.apache.maven.plugins.source.AbstractSourceJarMojo.packageSources (AbstractSourceJarMojo.java:257)
    at org.apache.maven.plugins.source.AbstractSourceJarMojo.execute (AbstractSourceJarMojo.java:225)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
    at org.apache.maven.buildcache.BuildCacheMojosExecutionStrategy.restoreProject (BuildCacheMojosExecutionStrategy.java:224)
    at org.apache.maven.buildcache.BuildCacheMojosExecutionStrategy.execute (BuildCacheMojosExecutionStrategy.java:131)

Affects: 3.3.0

Attachments:

  • issue-msources-141.zip (2.00 kB)

Issue Links:

  • MSOURCES-121 Check for duplicated addition of the same file
    ("is caused by")
  • MSOURCES-140 Build fails when using install deploy

1 votes, 4 watchers

Reacted by Sebastian Simon

Activity

  1. jira-importer commented on Sep 19, 2023

    @jira-importer
    jira-importer
    on Sep 19, 2023
    Author
    More actions

    Hans Aikema commented

    Ran into this issue as well, and in my view. I'm not knowingly using any build cache, but run into this issue when putting to sequential lifecycle phases on a CLI invocation (e.g. mvn verify sonar:sonar deploy in the practical build pipeline usage to ensure that all binaries are available to run SonarQube before deploying a new snapshot.

    It's reproducible with a slightly modified version of the simple archetype (only adding the source plugin and configuring its jar-no-fork execution (see attached).

    Working:

    • mvn package
    • mvn verify

    Breaking:

    • mvn package verify

     

  2. jira-importer commented on Sep 20, 2023

    @jira-importer
    jira-importer
    on Sep 20, 2023
    Author
    More actions

    Cheng Pan commented

    it also breaks creating a shaded source jar

  3. jira-importer
    assigned
    olamy
    on Jun 10, 2025
  4. jira-importer
    added
    bugSomething isn't working
    priority:majorMajor loss of function
    on Jun 10, 2025
  5. slawekjaranowski commented on Apr 26, 2026

    @slawekjaranowski
    slawekjaranowski
    on Apr 26, 2026
    Member
    More actions

    te retest after:

    • [MSOURCES-140] fail only if re-attach different files #24
  6. slawekjaranowski
    added
    waiting-for-feedbackWaiting for 90 days until issues or pull request will be closed
    on Apr 26, 2026
  7. github-actions commented on Jun 26, 2026

    @github-actions
    github-actionsBot
    on Jun 26, 2026 – with GitHub Actions
    More actions

    This issue is stale because it has been waiting for feedback for 60 days. Remove the stale label or comment on this issue, or it will be automatically closed in 30 days.

  8. github-actions
    added
    Stale
    on Jun 26, 2026
  9. github-actions commented on Jul 27, 2026

    @github-actions
    github-actionsBot
    on Jul 27, 2026 – with GitHub Actions
    More actions

    This issue has been closed because no response was received within 90 days.

  10. github-actions
    closed this as not plannedon Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @olamy
    olamy

Labels

StalebugSomething isn't workingpriority:majorMajor loss of functionwaiting-for-feedbackWaiting for 90 days until issues or pull request will be closed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.