Why does Maven SCM plugin require connection/developerConnection?

119 Views Asked by At

I am writing a plugin which copies some of the behaviour of the Maven SCM plugin and I was wondering:

Why can't the Maven SCM plugin just use the remote "origin" setting from the .git/config?

Why does it require setting <developerConnection>/<connection>?

1

There are 1 best solutions below

1
Michael-O On BEST ANSWER

Maven committer here...

Maven and Maven SCM specifically need to fully abstract from the SCM system you use. It would be stupid to rely on internal details of a specific SCM. You provide both connection elements with a canonical format which helps us to determine a proper SCM provider at runtime.