deprecation plan for allowIncompleteProjects
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- java
- Domain
- build-system
Research direction
Start with the allowIncompleteProjects warning and the default-deploy goal described in the issue, then review the linked commit that introduced the warning. Trace how projects with attachments but no main file are handled, and compare that behavior with the stated assembly and deployment constraints. Done means documenting or implementing an agreed future path for this use case.
Written by the indexing model from the issue text.
Description
New feature, improvement proposal
Hello team,
I have a question for allowIncompleteProjects, I have a project that generates both jar and zip(by assembly), now I want to deploy zip only, I found a way to implement that is create a mojo and let it execute between install and deploy phase, in the mojo I call project.getArtifact().setFile(null) to skip jar deploying, then I set -DallowIncompleteProjects=true it works but with warnings:
[INFO] --- deploy:3.1.4:deploy (default-deploy) @ parent ---
[INFO] Using alternate deployment repository local-releases::default::http://localhost:8081/repository/maven-releases
[WARNING] Using legacy syntax for alternative repository. Use "local-releases::http://localhost:8081/repository/maven-releases" instead.
[WARNING]
[WARNING] The packaging plugin for project parent did not assign
[WARNING] a main file to the project but it has attachments. Change packaging to 'pom'.
[WARNING]
[WARNING] Incomplete projects like this will fail in future Maven versions!
[WARNING]
Uploading to local-releases: http://localhost:8081/repository/maven-releases/org/example/p2/job/parent/0.1.0/parent-0.1.0.pom
Uploaded to local-releases: http://localhost:8081/repository/maven-releases/org/example/p2/job/parent/0.1.0/parent-0.1.0.pom (25 kB at 415 kB/s)
Uploading to local-releases: http://localhost:8081/repository/maven-releases/org/example/p2/job/parent/0.1.0/parent-0.1.0.zip
Uploaded to local-releases: http://localhost:8081/repository/maven-releases/org/example/p2/job/parent/0.1.0/parent-0.1.0.zip (5.8 MB at 41 MB/s)
Downloading from local-releases: http://localhost:8081/repository/maven-releases/org/example/p2/job/parent/maven-metadata.xml
Uploading to local-releases: http://localhost:8081/repository/maven-releases/org/example/p2/job/parent/maven-metadata.xml
Uploaded to local-releases: http://localhost:8081/repository/maven-releases/org/example/p2/job/parent/maven-metadata.xml (304 B at 8.7 kB/s)
looks allowIncompleteProjects will be deprecated in the future(I found the warning code at https://github.com/apache/maven-deploy-plugin/commit/88ce1593800015ac41e61f3c78d9b4d0ecb97460#diff-ffcc9777ab63d54259e77f8e53ab3fc9c1b4ae1de9554187ab2a097b41b9bd76R272), I want to know what's the plan after you deprecate allowIncompleteProjects, will there be a new way for plugin to allow this kind of case in the future?
if no, could you please advise on the best practice for my request?
there are several conditions that restrict some possible approaches:
- I can't use deploy:deploy-file goal
- assembly for zip need the jar so the jar must be generated
- I have to use DependencySet in assembly to include jar artifacts of current project and dependent projects.
Thank you!
- Dominant language
- Java
- Stars
- 78
- Forks
- 76
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 13
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/maven-deploy-plugin
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 42/100
apache/maven-deploy-plugin#649 · 1 comment ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
apache/maven-deploy-plugin#622 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
apache/maven-deploy-plugin#122 · 2 reactions ·
-
bug priority:major
Difficulty 3/5 1-2 days Newbie friendliness 45/100
apache/maven-deploy-plugin#412 · 1 reaction ·
-
bug priority:major
Difficulty 4/5 3-5 days Newbie friendliness 20/100
apache/maven-deploy-plugin#206 · 2 comments ·
All issues in apache/maven-deploy-plugin
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100