apache / apache/maven-deploy-plugin

[MDEPLOY-131] use default repository when no url specified

Open
#468 20 comments 0 reactions 0 assignees View on GitHub
enhancement priority:major
Dominant language
Java
Stars
78
Forks
76
Avg merge
2d 11h
Merged PRs (30d)
12

Description

**[raymond domingo](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rdomingo)** opened **[MDEPLOY-131](https://issues.apache.org/jira/browse/MDEPLOY-131?redirect=false)** and commented

When using the deploy goal there is no need to specify the url of the repository.

When using deploy-file you DO need to specify the url. This is a problem, because during development I like to deploy to snapshot repository and when releasing i deploy to release repository and I can't add this logic to the pom.

Thas is why I like the url paramter to become optional (backwards compatible) and add default behaviour when it is null. It should just like the deploy plugin use the default repository. Snapshot for snapshots and release for none snapshot versions.

I added a patch file fixing this.
I also added complete source of patched Mojo

---

**Attachments:**
- [DeployFileMojo.java](https://issues.apache.org/jira/secure/attachment/12715248/DeployFileMojo.java) (_14.57 kB_)
- [maven-deploy-useProjectRepo-20170319.patch](https://issues.apache.org/jira/secure/attachment/12859475/maven-deploy-useProjectRepo-20170319.patch) (_2.78 kB_)
- [patch_deploy_file_mojo.diff](https://issues.apache.org/jira/secure/attachment/12715237/patch_deploy_file_mojo.diff) (_3.98 kB_)

4 votes, 9 watchers

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.