BurnPC.com

Audio, barbecue, beer and computers. ‘Nuff said.

BurnPC.com header image 2

Checkout Maven project from Accurev with Eclipse - Not worth the effort

February 18th, 2009 · 1 Comment

I found it very difficult to track down what the URL format to supply to Eclipse to import using the “Check out Maven projects from SCM” option. An Accurev run blog covers the topic, but conveniently glosses over the URL portion, just explaining

Like other integrations with Maven, AccuRev supports a URL format for specifying where to obtain code. The URL lets you specify the AccuRev user and login credentials, as well as the exact depot and stream from which to import the code.

OK then, so how do I put together this URL?

Accurev made a press release, but didn’t provide any docs on this. The presentation on their site conveniently skips over this exact spot… I don’t think that is by accident. They show little pieces of the URL, but mention nothing about what components need to be supplied. It would expose this ‘integration’ to be no more than supplying command line arguments via a gui text box. http://www.accurev.com/virtualbooth/Maven/flash/AccuRev-Maven-Demo.html

Don’t bother trying to think of this as a URL either. When the plugin calls accurev.exe it just passes elements you supplied into the command line. Sure doesn’t seem like a URL to me!

At this point I recommend not bothering with this piece of integration. It’s much easier to create the Accurev workspace as you normally would. Then import it as a Maven project into Eclipse. Then right click on the project and select share. Done. And you know you put the Accurev workspace in the right location.

Tags: Computers · software

1 response so far ↓

  • 1 RonSenykoff // Jun 15, 2009 at 5:46 pm

    After using Maven and Accurev a bit more, I prefer to do this:
    1- create your Accurev workspace as usual
    2- Navigate to the workspace and execute:
    mvn clean eclipse:clean eclipse:eclipse eclipse:m2eclipse
    3- In Eclipse - File | Import | Existing Project into Workspace (point it to the Accureve workspace of course)
    4- Done! Plus at this point all of your dependencies are registered correctly in the Eclipse build path and such, and the m2eclipse plugin should be all set.

Leave a Comment