You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm-dev@maven.apache.org by he...@se.transport.bombardier.com on 2006/03/22 15:41:12 UTC

Implementing support for CM Synergy?

Hi,

I posted this yesterday as well. But I haven't got any response yet. So 
I'll ask again.

I want to implement support for CM Synergy.

What baseline should I use?
What do I need to check out?
What class or interfaced do I need to implement?
How can I test my provider?

/Henrik

_______________________________________________________________________________________________________________ 

This e-mail communication (and any attachment/s) may contain confidential 
or privileged information and is intended only for the individual(s) or 
entity named above and to others who have been specifically authorized to 
receive it. If you are not the intended recipient, please do not read, 
copy, use or disclose the contents of this communication to others. Please 
notify the sender that you have received this e-mail in error by reply 
e-mail, and delete the e-mail subsequently. 
Thank you. 
_________________________________________________________________________________________________________________ 


Ce message (ainsi que le(s) fichier/s), transmis par courriel, peut 
contenir des renseignements confidentiels ou protégés et est destiné à 
l?usage exclusif du destinataire ci-dessus. Toute autre personne est par 
les présentes avisée qu?il est strictement interdit de le diffuser, le 
distribuer ou le reproduire. Si vous l?avez reçu par inadvertance, 
veuillez nous en aviser et détruire ce message. 
Merci. 
_________________________________________________________________________________________________________________ 



RE: Implementing support for CM Synergy?

Posted by Torbjørn Smørgrav <ts...@stavanger.oilfield.slb.com>.
>> 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.

Yes, the test repository model should be more centralized.
But if you just comply with the javadoc when implementing the
ScmTckTestCase.initRepo() method,
things should be fairly straight forward. The model (ie the initRepo) is the
same for all commands...

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

I remember that I struggled a bit to set this up but I'm running the JUnit
tests from eclipse.
I think the Maven 2.0 plugin for eclipse did the trick...

Regards
Torbjørn


Re: Implementing support for CM Synergy?

Posted by Dominik Winter <0x...@googlemail.com>.
Hi,

let me help you.

2006/3/22, henrik.jonsson@se.transport.bombardier.com
<he...@se.transport.bombardier.com>:
> 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'.