Firstly I was trying with Extension Manager and it didn't worked with no information why. That's why I moved to testing it via Repository Application (since it uses the same configuration of repositories) which prints stacktrace. During testing I made some corrections to URL and now when I tested again Extension Manager it started working.
So problem with Extension Manager no longer exists, but I still don't know what's wrong with Repository Application. Thanks ;) Krzysztof 2017-04-21 16:16 GMT+02:00 Vincent Massol <[email protected]>: > 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%20Application). Is that correct? I > have no idea if this app works with a local maven repo. > > Thanks > -Vincent > > > > > Thanks in advance! > > Krzysztof > >

