Hi,
On 21 Apr 2017, at 15:48, Krzysiek Płachno <[email protected]> wrote:
Hi,
I want to connect local maven repository Extension Manager (and so Extension Repository) according to http://platform.xwiki.org/ xwiki/bin/view/DevGuide/CreatingExtensions/#HUsingtheExtensionManager
In 'xwiki.properties' I put following line: *extension.repositories=maven-local:maven:file:///C:/Users/Krzysztof/.m2/repository/* It was discovered by XWiki since in Repository Application it's visible: http://i.imgur.com/ep9yazr.png
When I try to import extension from local repository (that is present there) I get exception: http://i.imgur.com/PucSgOL.png Full stack trace: https://pastebin.com/iUnJ29wm
What may be the problem? Url to local repository ( *file:///C:/Users/Krzysztof/.m2/repository/)* is ok since when I paste it in browser I can access this directory flawlessly. I'm working on Windows. (url with backslashes, escaped or not, is not recognized by xwiki)
In your title you say "Local maven repository in Extension Manager”. This works for sure and once you’ve aded "extension.repositories=maven-local:maven:…” in xwiki.properties, you can then using the Extension Manager admin UI to install extensions (using advanced search). Now according to http://i.imgur.com/ep9yazr.png you seem to be using the Repository Application (http://extensions.xwiki.org/xwiki/bin/view/Extension/Repository%20Applicatio...). Is that correct? I have no idea if this app works with a local maven repo. Thanks -Vincent
Thanks in advance! Krzysztof