question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gitblit Setup on failing due to error "Failed to fetch [eclipse-snapshots] prefix index"

See original GitHub issue

Getting an exception while building WAR file using ANT, this is the console output

$ ant buildWAR
Buildfile: C:\Projects\build.xml
      [get] Destination already exists (skipping): C:\Users\U6049694\.moxie\moxie-toolkit-0.9.4.jar

prepare:
  [mx:init] =========================================================
  [mx:init] Gitblit  (1.9.1)
  [mx:init] ---------------------------------------------------------
  [mx:init] project metadata
  [mx:init]            name: Gitblit
  [mx:init]     description: pure Java Git solution
  [mx:init]         groupId: com.gitblit
  [mx:init]      artifactId: gitblit
  [mx:init]         version: 1.9.1
  [mx:init]             url: http://gitblit.com

BUILD FAILED
C:\Projects\eiddo\gitblit\build.xml:48: org.moxie.MoxieException: java.lang.RuntimeException: Error!

Failed to fetch [eclipse-snapshots] prefix index
Do you need to run offline?
  append "-Dmx.online=false" to your Ant launch arguments
Do you need to specify a proxy in C:\Users\U6049694\.moxie\settings.moxie?
  see http://gitblit.github.io/moxie/settings.html
        at org.moxie.ant.MxInit.execute(MxInit.java:220)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
        at org.apache.tools.ant.Task.perform(Task.java:350)
        at org.apache.tools.ant.Target.execute(Target.java:449)
        at org.apache.tools.ant.Target.performTasks(Target.java:470)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1391)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1254)
        at org.apache.tools.ant.Main.runBuild(Main.java:830)
        at org.apache.tools.ant.Main.startAnt(Main.java:223)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
Caused by: java.lang.RuntimeException: Error!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Apr 29, 2020

@fzs This is the first time that I’m building Gitblit. I tried to delete the entire .moxie directory and then commenting out the two lines in build.moxie. The build is passing and I’m able to generate a war!

0reactions
flaixcommented, Apr 29, 2020

So were you already able to compile Gitblit before or is this your first try?

Since you do not have index directories for Eclipse, it sounds like you haven’t compiled it yet. In that case delete your .moxie directory. Then edit the build.moxie file and remove the two eclipse lines from the repository section.

Read more comments on GitHub >

github_iconTop Results From Across the Web

faq - Gitblit
push failed for branch (n/a (unpacker error)). This is a bug in JGit (issue 408). TLDR: Newer git clients are optimized to send...
Read more >
Gitblit GO Installation & Setup
The EGit failure message is something like: Cannot get remote repository refs. Reason: https:/myserver.com/git/myrepo.git: cannot open git-upload-pack.
Read more >
gitblit.properties
prefixed with the userRepositoryPrefix. For eaxmple, a user 'john' would have his # personal repositories in the directory '~john'. # # Cannot be...
Read more >
All Releases - Gitblit
Ensure the Lucene ticket index is updated on repository deletion. Fixed failure to properly determine hasTicket in RedisTicketService; Fixed handling of pushing ...
Read more >
Using the HTTP/HTTPS transport - Gitblit
When generating self-signed certificates, the default Java TLS settings will be ... out with a message like: error: RPC failed; result=52, HTTP code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found