So well, some results from my experiments:
- with 4.3-SNAPSHOT or 4.2, I could not get it work any better. What
seems strange is that in windows distrib, and even if I set a proper
"xwiki.data.dir" system property, the aether-repository goes to a
temporary folder that is cleaned at shutdown, and if not clean at
startup, replaced by a new one each time. So I wonder why the aether
bug occurs.
- with 4.3.M1, it goes further, but the created Extension page fails
to display correctly:
Caused by: java.lang.NoSuchMethodError:
org.xwiki.extension.repository.xwiki.UriBuilder.queryParam(Ljava/lang/String;[Ljava/lang/Object;)Lorg/xwiki/extension/repository/xwiki/UriBuilder;
at
org.xwiki.extension.repository.xwiki.internal.xhtml.ExtensionXHTMLLinkTypeRenderer.beginLinkExtraAttributes(ExtensionXHTMLLinkTypeRenderer.java:83)
at
org.xwiki.rendering.internal.renderer.xhtml.link.AbstractXHTMLLinkTypeRenderer.beginLink(AbstractXHTMLLinkTypeRenderer.java:147)
at
org.xwiki.rendering.internal.renderer.xhtml.link.DefaultXHTMLLinkRenderer.beginLink(DefaultXHTMLLinkRenderer.java:86)
at
org.xwiki.rendering.internal.renderer.xhtml.XHTMLChainingRenderer.beginLink(XHTMLChainingRenderer.java:231)
at
org.xwiki.rendering.listener.chaining.AbstractChainingListener.beginLink(AbstractChainingListener.java:128)
at
org.xwiki.rendering.listener.chaining.AbstractChainingListener.beginLink(AbstractChainingListener.java:128)
[...]
I suspect it's because it's the version 4.1.4 of xwiki extension
application repository that is installed (I didn't have the choice to
install a later version with extension manager, and anyway it's the
last available from x.o).
2012/10/26 Thomas Mortagne <thomas.mortagne(a)xwiki.com>om>:
On Fri, Oct 26, 2012 at 5:10 PM, Jeremie BOUSQUET
<jeremie.bousquet(a)gmail.com> wrote:
Thought it could be that also, but in fact it
seems to use a different
temporary folder at each startup, so cleaning the old one does not
seem necessary nor enough.
I just noticed I have that log that dumps in the console regularly
(but NOT when trying my import):
Exception in thread "FileRepositoryConnector-1"
java.lang.IllegalArgumentException: number of transferred bytes cannot
be negative
at
org.sonatype.aether.util.listener.DefaultTransferEvent.setTransferredBytes(DefaultTransferEvent.java:123)
at
org.sonatype.aether.connector.file.FileRepositoryWorker.run(FileRepositoryWorker.java:299)
at
org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Well it definitely looks the same.
From what I understood when debugging AETHER for XWIKI-7641 you get
this error when File handle see that there is actually something in
the AETHER repository already so it does not download anything and set
the wrong size (which is supposed to be calculated during the
download).
2012/10/26 Thomas Mortagne <thomas.mortagne(a)xwiki.com>om>:
Try cleaing the aether-repository folder. Maybe
your issue is related
to
http://jira.xwiki.org/browse/XWIKI-7641.
On Fri, Oct 26, 2012 at 4:06 PM, Jeremie BOUSQUET
<jeremie.bousquet(a)gmail.com> wrote:
Hello,
I'm trying to import a xar published to my local maven repository.
I've setup the local repository in xwiki.properties:
extension.repositories=maven-local:maven:file:///c:/Users/jbousque/.m2/repository
My extension exists in this repository:
C:\Users\jbousque\.m2\repository\org\xwiki\contrib\mailarchive\xwiki-contrib-mailarchive-ui\0.2\xwiki-contrib-mailarchive-ui-0.2.xar
When trying to import extension with id
"org.xwiki.contrib.mailarchive:xwiki-contrib-mailarchive-ui", I get
the following error:
Failed to import extension: class
org.xwiki.extension.ResolveException: No versions available for id
[org.xwiki.contrib.mailarchive:xwiki-contrib-mailarchive-ui]
at
org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.resolveVersions(AetherExtensionRepository.java:252)
at
org.xwiki.extension.repository.xwiki.internal.DefaultRepositoryManager.getVersions(DefaultRepositoryManager.java:409)
at
org.xwiki.extension.repository.xwiki.internal.DefaultRepositoryManager.importExtension(DefaultRepositoryManager.java:430)
at
org.xwiki.extension.repository.xwiki.internal.RepositoryScriptService.importExtension(RepositoryScriptService.java:100)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
[...]
And from the logs (with debug activated for
"org.xwiki.extension.repository" and "org.sonatype.aether") :
[http://.../ExtensionCode/ImportExtension?parent=Extension.WebHome&template=ExtensionCode.ExtensionTemplate&importExtension=true&extensionId=org.xwiki.contrib.mailarchive%3Axwiki-contrib-mailarchive-ui&repositoryId=maven-local]
DEBUG .DefaultPlexusComponentManager - Using connector
FileRepositoryConnector with priority 1 for
file:///c:/Users/jbousque/.m2/repository
[http://.../ExtensionCode/ImportExtension?parent=Extension.WebHome&template=ExtensionCode.ExtensionTemplate&importExtension=true&extensionId=org.xwiki.contrib.mailarchive%3Axwiki-contrib-mailarchive-ui&repositoryId=maven-local]
DEBUG .DefaultPlexusComponentManager - Writing resolution tracking
file
C:\Users\jbousque\AppData\Local\Temp\jetty-0.0.0.0-8097-xwiki-_xwiki-any-_2086184271349922709\xwiki-temp\aether-repository\org\xwiki\contrib\mailarchive\xwiki-contrib-mailarchive-ui\resolver-status.properties
Content of resolver-status.properties is:
maven-metadata-maven-local.xml.error=
maven-metadata-maven-local.xml.lastUpdated=1351257375255
Can't find what's wrong here ...
Thanks,
Jeremie
PS: I tried with 4.2 and 4.3-SNAPSHOT with .exe distrib under windows
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users