How to build svnimporter2?

bopolissimus
Posts: 12
Joined: Mon May 21, 2012 1:10 am

How to build svnimporter2?

Postby bopolissimus » Tue Jul 10, 2012 4:32 am

Hi All,

How does one build svnimporter2? I've got a checkout of **/MIGKIT/trunk and would like to dive into the code and see if it's realistic to patch VSS pin/unpin functionality there. At some point, I'm going to need to build svnimporter2.

I saw "maven packed" in viewtopic.php?f=4&t=3072&hilit=how+to+build+svnimporter2+maven and tried that (total maven newbie, so copy-paste is all I can do with maven). However, that leads to missing dependencies, e.g.:

Trying to get missing dependencies (and updated snapshots) required by SVN Importer 2 - DONT BUILD ME:
- Attempting to download mevenide:maven-eclipse-plugin-plugin:0.4.0:plugin from http://repo1.maven.org/maven
22K downloaded
- Attempting to download eclipse:org.eclipse.core.runtime:3.0.0:jar from http://repo1.maven.org/maven
- Attempting to download eclipse:org.eclipse.osgi:3.0.0:jar from http://repo1.maven.org/maven
-------------------------------------------------------------------------------
>> The build cannot continue because of the following unsatisfied dependencies:
- eclipse:org.eclipse.core.runtime:3.0.0:jar (try downloading from http://eclipse.org/)
- eclipse:org.eclipse.osgi:3.0.0:jar (try downloading from http://eclipse.org/)

Has anyone successfully built svnimporter2 recently (i.e., in the last 2 years or so)? Does anyone have better maven config files?

If this is hard, does anyone have pointers to building svnimporter2 completely via eclipse (or ant)?

Hmmm, I unpacked the 0.6.1 zip file and I see the eclipse jars in there. I'll try that first. But if anyone has instructions for how to build it all via maven, I'd be very happy :-). Maybe even just a .zip or .tgz of someone's .maven directory that's already populated? :-)

Thanks for any pointers.

Gerald

engeleb
Posts: 199
Joined: Wed Aug 09, 2006 10:55 am

Re: How to build svnimporter2?

Postby engeleb » Tue Jul 10, 2012 7:04 am

Hello Gerald,
please try to run the build as described here: http://svn.polarion.org/repos/community/MIGKIT/trunk/svnimporter/build.txt.
If that also fails post the log output again, I'll try to help.

Best Regards,
Benjamin

bopolissimus
Posts: 12
Joined: Mon May 21, 2012 1:10 am

Re: How to build svnimporter2?

Postby bopolissimus » Wed Jul 11, 2012 3:55 am

Many thanks Benjamin:

I did see build.txt when I was looking around, it failed for me when finding dependences. At the time I was using maven 1.1. I've now dug around some more and found a 1.0.2 maven

starting from an empty ~/.maven. I ran

maven svnimporter:build

I had to run it a few times (some dependencies wouldn't download, but running maven again would download the files the next time). At a guess, the jar files it was looking for didn't exist in the particular ibiblio mirror that was being consulted and subsequent runs would use a mirror that had the right file.

It still gets stuck at jing-20030619.jar. It looks like it's moved, or at least removed from where maven 1 expects it to be.

There's a workaround on stackoverflow [http://stackoverflow.com/questions/5573876/maven-1-0-missing-dependency] to download the pom file from the ibiblio mirror at the URL where it actually is, and then setting up some xml files and running maven to push it into one's .maven/repository

after applying that workaround, running maven svnimporter:build again downloads more resources, compiles, and then runs the unit tests. testlog is here:

http://pastebin.com/wjMdBZzJ

and ChangeSetBuilderTest fails.

Lots of progress made though :-).

bopolissimus
Posts: 12
Joined: Mon May 21, 2012 1:10 am

Re: How to build svnimporter2?

Postby bopolissimus » Wed Jul 11, 2012 10:22 pm

In the meantime, Is there a HOWTO on running svnimporter2 under eclipse (I'd like to run it under a debugger). Generic eclipse instructions on how to run an IPlatformRunnable would be enough. I've just never done that before so don't know where to start.

engeleb
Posts: 199
Joined: Wed Aug 09, 2006 10:55 am

Re: How to build svnimporter2?

Postby engeleb » Fri Jul 13, 2012 7:00 am

Unfortunately there are no instruction on running svnimporter2 from eclipse and I don't remember how it was done.
As it is based on Eclipse RCP most likely you have to execute it as "Eclipse Application".
Maybe it is also required to define svnimporter2-master/rcp/ as Target Platform.


Return to “Polarion SVN Importer (Repository Converter)”

Who is online

Users browsing this forum: No registered users and 3 guests