Github wiki import issue

Hii all…
i am working with xwiiki 11.3 with hsqldb and jetty… and now i looking on github wiki import…i copied the code from https://snippets.xwiki.org/xwiki/bin/view/Extension/Github%20wiki%20import/ but in my case unfortunately its not working… i followed all the instruction that described in that page…

Error Log

Failed to execute the [groovy] macro. Cause: [startup failed: Script3.groovy: 147: unable to resolve class Git @ line 147, column 12. result = new Git(repo).pull() ^ Script3.groovy: 17: unable to resolve class CredentialsProvider @ line 17, column 1. def CredentialsProvider getCredentialsProvider() { ^ Script3.groovy: 18: unable to resolve class UsernamePasswordCredentialsProvider @ line 18, column 9. return new UsernamePasswordCredentialsProvider("<mygithubusername>", "<mytoken>") ^ Script3.groovy: 21: unable to resolve class Repository @ line 21, column 1. def Repository getRepository(String repositoryURI, String localDirectoryName) { ^ Script3.groovy: 22: unable to resolve class Repository @ line 22, column 14. Repository repository; ^ Script3.groovy: 30: unable to resolve class FileRepositoryBuilder @ line 30, column 25. FileRepositoryBuilder builder = new FileRepositoryBuilder(); ^ Script3.groovy: 30: unable to resolve class FileRepositoryBuilder @ line 30, column 35. FileRepositoryBuilder builder = new FileRepositoryBuilder(); ^ Script3.groovy: 38: unable to resolve class Git @ line 38, column 9. Git git = new Git(repository); ^ Script3.groovy: 38: unable to resolve class Git @ line 38, column 15. Git git = new Git(repository); ^ 9 errors ]. Click on this message for details.

Thanks…

1 Like

Hi, it means you’re missing some JARs in your xwiki instance. Apparently the prerequisites of this snippet examples are wrong.

You could try to install https://extensions.xwiki.org/xwiki/bin/view/Extension/Git%20Module but I’m not sure it’ll be enough.

ping @bartkummel (who wrote that script! ;)).

1 Like

Thanks for pinging, @vmassol!

@anandhaibs Vincent is right, you’ll need to have the Git API installed. I have added that to the instructions in the snippet page.

Please note that I’ve tested the script only on my company’s XWiki instance, which is hosted by XWiki SAS and is now running XWiki 10.8.3.

1 Like

Yes its worked…
thanks @vmassol
thanks @bartkummel
:grinning: