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)
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