Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9250857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:32:58+00:00 2026-06-18T10:32:58+00:00

As far as I am aware, in order to use the maven-release-plugin, you have

  • 0

As far as I am aware, in order to use the maven-release-plugin, you have to drop in an scm section into your POM file. E.g.:

<scm>
    <connection>scm:hg:ssh://hg@bitbucket.org/my_account/my_project</connection>
    <developerConnection>scm:hg:ssh://hg@bitbucket.org/my_account/my_project</developerConnection>
    <url>ssh://hg@bitbucket.org/my_account/my_project</url>
    <tag>HEAD</tag>
</scm>

I understand this data is used to determine what to tag and where to push changes. But isn’t this information already available if you have the code cloned/checked-out? I’m struggling a bit with the concept that I need to tell maven what code it needs to tag when it could, at least in theory, just ask Git/HG/SVN/CVS what code it’s dealing with. I suspect I’m missing something in the details, but I’m not sure what. Could the the maven-release-plugin code be changed to remove this as a requirement, or at least make auto-detection the default? If not could someone provide some context on why that wouldn’t work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:33:00+00:00Added an answer on June 18, 2026 at 10:33 am

    For one thing, GIT and Subversion can have different SCM URIs for read-write and read-only access.

    This is what the different <connection> and <developerConnection> URIs are supposed to capture. The first is a URI that is guaranteed read access. The second is a URI that is guaranteed write access.

    Very often from a checked out repository, it is not possible to infer the canonical URIs.

    For example, I might check out the Subversion repository in-house via the svn: protocol and the IP address of the server, but external contributors would need to use https:// with the hostname.

    Or even with GIT repositories, on Github you have different URIs for different access mechanisms, e.g.

    • https://github.com/stephenc/eaio-uuid.git (read-write using Username / Password or OAuth)
    • git@github.com:stephenc/eaio-uuid.git (read-write using SSH private key Identification)
    • git://github.com/stephenc/eaio-uuid.git (anonymous read only)

    Never mind that you may have checked out git://github.com/zznate/eaio-uuid.git or cloned a local check out, in other words, your local git repository may thing that “upstream” is ../eaio-uuid-from-nate and not git@github.com:stephenc/eaio-uuid.git

    I agree that for some SCM tools, you could auto-detect… for example if you know the source is checked out from, e.g. AccuRev, you should be OK assuming its details… until you hit the Subversion or GIT or CVS or etc code module checked out into the AccuRev workspace (true story) so that the tag that was being pulled in could be updated.

    So in short, the detection code would have to be damn sure that you were not using two SCM systems at the same time to be sure which is the master SCM… and the other SCM may not even be leaving marker files on disk to sniff out (AccuRev, for example, doesn’t… hence why I’ve picked on it)

    The only safe way is to require the pom to define, at least the SCM system, and for those SCM systems where the URI cannot be reliably inferred (think CVS, Subversion, GIT, HG, in fact most of them) require the URI to be specified.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have got a question about the order in IEnumerable . As far as
As far as I am aware, IE9 should have CSS support for rounded corners.
As far as I'm aware, plain html or javascript won't allow me to upload
So far I have only been updated a view from within its controller. I
So far I know that FileSystemWatcher can look into a folder and if any
The advantages of DI, as far as I am aware, are: Reduced Dependencies More
As far as I am aware the code below appears to do what I
I'm aware of os.listdir , but as far as I can gather, that gets
I have searched far and wide and been completely unable to find any good
I'm wrapping my brain around mobile sites using jquerymobile's framework. So far I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.