Thank you Andreas, Fabian.
But i had some problems getting it to work. First i cloned the main o.e.r and built it running mvn clean install -P e43. But there were some checkstyle violations so i disabled checking by adding -Dcheckstyle.skip to the command. This did the trick for the main o.e.r, but when i ran mvn clean install -Dlicense.failIfMissing=false on the build from Andreas, I got a similar error to what Madhuranga encountered before [1].
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] snipeditor ........................................ SUCCESS [0.327s]
[INFO] org.eclipse.recommenders.snipeditor ............... FAILURE [0.412s]
[INFO] org.eclipse.recommenders.snipeditor.ui ............ SKIPPED
[INFO] org.eclipse.recommenders.snipeditor.tests ......... SKIPPED
[INFO] org.eclipse.recommenders.feature.snipeditor ....... SKIPPED
[INFO] Code Recommenders: SnipEditor Update Site ......... SKIPPED
[INFO] snipeditor-aggregator ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.052s
[INFO] Finished at: Thu Jul 25 14:01:30 FET 2013
[INFO] Final Memory: 57M/206M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.18.0:b
uild-qualifier (default-build-qualifier) on project org.eclipse.recommenders.sni
peditor: Execution default-build-qualifier of goal org.eclipse.tycho:tycho-packa
ging-plugin:0.18.0:build-qualifier failed: One of setGitDir or setWorkTree must
be called. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.eclipse.tycho:tycho-packaging-plugin:0.18.0:build-qualifier (default-build-qu
alifier) on project org.eclipse.recommenders.snipeditor: Execution default-build
-qualifier of goal org.eclipse.tycho:tycho-packaging-plugin:0.18.0:build-qualifi
er failed: One of setGitDir or setWorkTree must be called.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:225)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-b
uild-qualifier of goal org.eclipse.tycho:tycho-packaging-plugin:0.18.0:build-qua
lifier failed: One of setGitDir or setWorkTree must be called.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:110)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
... 19 more
Caused by: java.lang.IllegalArgumentException: One of setGitDir or setWorkTree m
ust be called.
at org.eclipse.jgit.lib.BaseRepositoryBuilder.requireGitDirOrWorkTree(Ba
seRepositoryBuilder.java:582)
at org.eclipse.jgit.lib.BaseRepositoryBuilder.setup(BaseRepositoryBuilde
r.java:550)
at org.eclipse.jgit.storage.file.FileRepositoryBuilder.build(FileReposit
oryBuilder.java:89)
at org.eclipse.tycho.extras.buildtimestamp.jgit.JGitBuildTimestampProvid
er.getTimestamp(JGitBuildTimestampProvider.java:72)
at org.eclipse.tycho.buildversion.BuildQualifierMojo.getBuildTimestamp(B
uildQualifierMojo.java:182)
at org.eclipse.tycho.buildversion.BuildQualifierMojo.execute(BuildQualif
ierMojo.java:156)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
... 20 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
nException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :org.eclipse.recommenders.snipeditor
So i started searching for a solution. I found this post [2] saying that it has to do with reproducible version qualifiers [3], so i assumed it comes down to jgit timestamping being used(as described in [3]). Therefor i commented the jgit timestamping plug-in in the main o.e.r pom, built the main o.e.r again and the SnipEditor build was successful. I don't know if it's a good solution, as i don't fully understand the problem. :)
Best regards, Stefan.