Register new scm provider

View: New views
3 Messages — Rating Filter:   Alert me  

Register new scm provider

by Lee Freyberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

How do you go about registering a new provider?

I have created a stub impl following the instructions on the scm site, and placed the its jar in the maven/lib dir (adding it as a dependecy in the pom did not work), but I get an error when I try and run any of the scm commands.

I am fairly sure mvn is picking up the provider, as if I remove the jar from the lib dir I get a 'no provider for scm 'xxx'' message.

With the jar present I get a different error:

[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-scm-plugin:1.2:bootstrap': Unable to load
the mojo 'org.apache.maven.plugins:maven-scm-plugin:1.2:bootstrap' in the
plugin 'org.apache.maven.plugins:maven-scm-plugin'. A
required class is missing:
org/apache/maven/scm/provider/AbstractScmProvider
org.apache.maven.scm.provider.AbstractScmProvider

Am I missing a dependency somewhere? Or is this not the correct way to register a provider?

Any pointers appreciated.

Cheers,
Lee

Re: Register new scm provider

by brettporter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It should not be in the lib directory. You should add it under the build extensions.

- Brett

On 24/10/2009, at 4:56 AM, Lee Freyberg wrote:


Hi,

How do you go about registering a new provider?

I have created a stub impl following the instructions on the scm site, and placed the its jar in the maven/lib dir (adding it as a dependecy in the pom did not work), but I get an error when I try and run any of the scm commands.

I am fairly sure mvn is picking up the provider, as if I remove the jar from the lib dir I get a 'no provider for scm 'xxx'' message.

With the jar present I get a different error:

[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-scm-plugin:1.2:bootstrap': Unable to load
the mojo 'org.apache.maven.plugins:maven-scm-plugin:1.2:bootstrap' in the
plugin 'org.apache.maven.plugins:maven-scm-plugin'. A
required class is missing:
org/apache/maven/scm/provider/AbstractScmProvider
org.apache.maven.scm.provider.AbstractScmProvider

Am I missing a dependency somewhere? Or is this not the correct way to register a provider?

Any pointers appreciated.

Cheers,
Lee


Parent Message unknown Re: Register new scm provider

by Lee Freyberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No, that did not work either, but adding the provider as a dependency of the scm plugin in the plugins section of the build definition did.


Thanks for your help.
Lee





Brett Porter
Mon, 26 Oct 2009 01:32:47 -0700

It should not be in the lib directory. You should add it under the build extensions.
- Brett

On 24/10/2009, at 4:56 AM, Lee Freyberg wrote:

Hi,

How do you go about registering a new provider?

I have created a stub impl following the instructions on the scm site, and placed the its jar in the maven/lib dir (adding it as a dependecy in the pom did not work), but I get an error when I try and run any of the scm commands.
I am fairly sure mvn is picking up the provider, as if I remove the jar from the lib dir I get a 'no provider for scm 'xxx'' message.
With the jar present I get a different error:

[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-scm-plugin:1.2:bootstrap': Unable to load the mojo 'org.apache.maven.plugins:maven-scm-plugin:1.2:bootstrap' in the
plugin 'org.apache.maven.plugins:maven-scm-plugin'. A
required class is missing:
org/apache/maven/scm/provider/AbstractScmProvider
org.apache.maven.scm.provider.AbstractScmProvider

Am I missing a dependency somewhere? Or is this not the correct way to register a provider?
Any pointers appreciated.

Cheers,
Lee