BUG-REPORT: File Manager Application cannot be installed because of Missing Artifact in Maven

Hi Guys,

i have to report a Bug. On non of our XWIKI installations (17.10.3 LTS) can the File Manager Application upgraded or on a Upgrade be repaired.

Error:

Could not find artifact org.xwiki.commons:xwiki-commons-job:jar:17.10.3 in maven-xwiki ( Index of /groups/public )

class org.xwiki.extension.repository.LocalExtensionRepositoryException: Failed to save extension [org.xwiki.commons:xwiki-commons-job/17.10.3] descriptor at org.xwiki.extension.repository.internal.local.DefaultLocalExtensionRepository.storeExtension(DefaultLocalExtensionRepository.java:195) at org.xwiki.extension.job.internal.InstallJob.storeExtension(InstallJob.java:172) at org.xwiki.extension.job.internal.InstallJob.store(InstallJob.java:157) at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:126) at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246) at org.xwiki.job.AbstractJob.run(AbstractJob.java:223) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Caused by: class java.io.IOException: Failed to download file for artifact [org.xwiki.commons:xwiki-commons-job:jar:17.10.3] at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.getFile(AetherExtensionRepository.java:343) at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.openStream(AetherExtensionRepository.java:300) at org.xwiki.extension.repository.aether.internal.AetherExtensionFile.openStream(AetherExtensionFile.java:54) at org.xwiki.extension.repository.internal.local.DefaultLocalExtensionRepository.storeExtension(DefaultLocalExtensionRepository.java:183) at org.xwiki.extension.job.internal.InstallJob.storeExtension(InstallJob.java:172) at org.xwiki.extension.job.internal.InstallJob.store(InstallJob.java:157) at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:126) at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246) at org.xwiki.job.AbstractJob.run(AbstractJob.java:223) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Caused by: class org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.xwiki.commons:xwiki-commons-job:jar:17.10.3 in maven-xwiki ( Index of /groups/public ) at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:42) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:417) at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:260) at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.getFile(AetherExtensionRepository.java:324) at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.openStream(AetherExtensionRepository.java:300) at org.xwiki.extension.repository.aether.internal.AetherExtensionFile.openStream(AetherExtensionFile.java:54) at org.xwiki.extension.repository.internal.local.DefaultLocalExtensionRepository.storeExtension(DefaultLocalExtensionRepository.java:183) at org.xwiki.extension.job.internal.InstallJob.storeExtension(InstallJob.java:172) at org.xwiki.extension.job.internal.InstallJob.store(InstallJob.java:157) at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:126) at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246) at org.xwiki.job.AbstractJob.run(AbstractJob.java:223) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source)

Could you guys fix this please?

Thanks in Advance

@vmassol @ludovic @mflorea

The old org.xwiki.commons:xwiki-commons-job JAR has been split into:

  • org.xwiki.commons:xwiki-commons-job-api and
  • org.xwiki.commons:xwiki-commons-job-default

JARs by XCOMMONS-1959: Allow to define the pool size of a GroupedJob · xwiki/xwiki-commons@8005474 · GitHub but unfortunately we didn’t add a xwiki.extension.features property to the POM of org.xwiki.commons:xwiki-commons-job-api to indicate that it behaves as org.xwiki.commons:xwiki-commons-job so now the Extension Manager doesn’t know it can use the provided org.xwiki.commons:xwiki-commons-job-api JAR, and instead it tries to install the missing org.xwiki.commons:xwiki-commons-job JAR.

@tmortagne is it work fixing this now (after 6 years)?

@Knight01 I assume you’re using the free version of the File Manager Application? The one from https://extensions.xwiki.org/xwiki/bin/view/Extension/File%20Manager%20Application , right? Unfortunately this extension hasn’t been maintained (unlike the Pro version). We could increase the parent POM version and update the dependecy application-filemanager/api/pom.xml at master · xwiki-contrib/application-filemanager · GitHub but there’s no guarantee that this is the only problem you’ll have with this extension on XWiki 17.10.3.

Correct. We use the Free Version.

I found a workaround. I installed seperately the necessary Dependencies first and after that die File manager. This way i could successfull install it again.

It should definitely be fixed, yes.

But the regression is a lot more recent than you think. xwiki-commons-job-default does have the features, but the problem is with xwiki-commons-legacy-job-default which only have xwiki-commons-job-default as feature and was introduced in 17.10.0-rc-1.

Created Loading....

1 Like