Hi,

let me help you.

2006/3/22, [EMAIL PROTECTED]
<[EMAIL PROTECTED]>:
> I want to implement support for CM Synergy.

Okay.

> What baseline should I use?

What do your mean with baseline??

> What do I need to check out?

Nothing.

I use the cvs repository provider plugin as a reference. See
http://maven.apache.org/scm/source-repository.html

> What class or interfaced do I need to implement?

First, I use the following dependencies:

    <dependency>
      <groupId>org.apache.maven.scm</groupId>
      <artifactId>maven-scm-api</artifactId>
      <version>1.0-beta-2</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.maven.scm</groupId>
      <artifactId>maven-scm-test</artifactId>
      <version>1.0-beta-2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.codehaus.plexus</groupId>
      <artifactId>plexus-utils</artifactId>
      <version>1.1</version>
      <scope>compile</scope>
    </dependency>

In maven-scm-api you'll find the abstract classes to extend. In
maven-scm-test you'll find the abstract test classes to extend. In
plexus-utils are some useful utility classes.

- Create a provider class inherited from AbstractScmProvider, than
create a provider repository class inherited from
ScmProviderRepository, if necessary.
- All commands are classes which are inherited from the abstract
command class, e.g. the add command class extends AbstractAddCommand
etc.

> How can I test my provider?

You can extend the ScmTestCase class. I don't use the command test
classes in org.apache.maven.scm.tck.command.*, because they requires a
test repository model which seems to be under development, because it
differs between the command test classes.

Running the JUnit test from eclipse doesn't work, you must call 'mvn test'.

Reply via email to