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

Open
#468 20 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
build-system

Research direction

Start by reviewing the attached DeployFileMojo.java and the maven-deploy-useProjectRepo-20170319.patch to understand the proposed deploy-file behavior. Verify that omitting the URL uses the default snapshot or release repository while an explicitly supplied URL remains supported.

Written by the indexing model from the issue text.

Description

enhancement priority:major

raymond domingo opened MDEPLOY-131 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:

4 votes, 9 watchers

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

  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-deploy-plugin

All issues in apache/maven-deploy-plugin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.