target/generated-sources/annotations/ generated by IDE is included in -sources.jar

Open
#239 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
build-system

Research direction

Start by reproducing the 3.3.1 sources-jar behavior and tracing the default source-selection configuration that includes target/generated-sources/annotations. Read the linked avaje-http issue for context; done means the cause is established and any justified default change is verified not to package concurrent IDE-generated target content.

Written by the indexing model from the issue text.

Description

bug
Affected version

3.3.1

Bug description

see https://github.com/avaje/avaje-http/issues/650

not sure at all that there is a real bug in the plugin, or if it is default configuration, or...

but it's at least surprising that sources-jar contains a target directory, even if content is a concurrent IDE run

would be useful to understand what adds this content and if it would make sense to enhance defaults so that type of directories is not added, even if found on disk for strange reason (IDE parallel build in this case): better resiliency, more adverse events preparation
(notice: I don't want hacks, if we discover that there is a good reason for that result)

Dominant language
Java
Stars
37
Forks
38
Avg merge
12h 11m
Merged PRs (30d)
6

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/maven-source-plugin

All issues in apache/maven-source-plugin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.