[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] build-qualifier-aggregator failed: One of setGitDir or setWorkTree must be called

You've explicitly enabled git-based reproducible build version qualifier
for your project. You obviously can't use that for the code that is
stored in CVS

http://wiki.eclipse.org/Tycho/Reproducible_Version_Qualifiers

--
Regards,
Igor

On 2013-04-01 12:14 PM, Joseph D Carroll Jr wrote:
When running our Hudson build job, I receive an IllegalArgumentException
whenever the build reaches our feature.


[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] com.sample.project ................................ SUCCESS [0.413s] [INFO] ... 20+ more [INFO] com.sample.project.feature ........................ FAILURE [0.215s] [INFO] OSGi Utilities :: Internal JDK Dependencies Exposition Fragment SKIPPED [INFO] com.sample.repository ............................. SKIPPED [INFO] com.sample.target ................................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3:09.932s [INFO] Finished at: Fri Mar 29 21:00:35 GMT 2013 [INFO] Final Memory: 240M/632M [INFO] ------------------------------------------------------------------------ [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s) [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.17.0:build-qualifier-aggregator (default-build-qualifier-aggregator) on project com.sample.project.feature: Execution default-build-qualifier-aggregator of goal org.eclipse.tycho:tycho-packaging-plugin:0.17.0:build-qualifier-aggregator failed: One of setGitDir or setWorkTree must be called. [DEBUG] Closing connection to remote [ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.17.0:build-qualifier-aggregator (default-build-qualifier-aggregator) on project com.sample.project.feature: Execution default-build-qualifier-aggregator of goal org.eclipse.tycho:tycho-packaging-plugin:0.17.0:build-qualifier-aggregator failed: One of setGitDir or setWorkTree must be called. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.17.0:build-qualifier-aggregator (default-build-qualifier-aggregator) on project com.sample.project.feature: Execution default-build-qualifier-aggregator of goal org.eclipse.tycho:tycho-packaging-plugin:0.17.0:build-qualifier-aggregator 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.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.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(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-build-qualifier-aggregator of goal org.eclipse.tycho:tycho-packaging-plugin:0.17.0:build-qualifier-aggregator failed: One of setGitDir or setWorkTree must be called. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.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 must be called. at org.eclipse.jgit.lib.BaseRepositoryBuilder.requireGitDirOrWorkTree(BaseRepositoryBuilder.java:582) at org.eclipse.jgit.lib.BaseRepositoryBuilder.setup(BaseRepositoryBuilder.java:550) at org.eclipse.jgit.storage.file.FileRepositoryBuilder.build(FileRepositoryBuilder.java:89) at org.eclipse.tycho.extras.buildtimestamp.jgit.JGitBuildTimestampProvider.getTimestamp(JGitBuildTimestampProvider.java:72) at org.eclipse.tycho.buildversion.BuildQualifierMojo.getBuildTimestamp(BuildQualifierMojo.java:182) at org.eclipse.tycho.buildversion.BuildQualifierAggregatorMojo.getBuildTimestamp(BuildQualifierAggregatorMojo.java:51) at org.eclipse.tycho.buildversion.BuildQualifierMojo.execute(BuildQualifierMojo.java:156) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) ... 20 more [ERROR]



The strange part is that we don't even use git, we use CVS...



Anyone have an idea of where to look?



Thanks,


JD



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user