Last modified by Lucas Charpentier (Sereza7) on 2024/01/19 11:27

<
From version < 87.7 >
edited by Vincent Massol
on 2016/03/21 11:38
To version < 88.1 >
edited by Clemens Robbenhaar
on 2016/06/09 10:57
>
Change comment: add note about workaround for spurious "resource not found" error in maven build

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.VincentMassol
1 +xwiki:XWiki.ClemensRobbenhaar
Content
... ... @@ -250,6 +250,28 @@
250 250  </settings>
251 251  {{/code}}
252 252  
253 +== Errors about missing resources ==
254 +
255 +Some people have reported problems when building XWiki for the first time, or the first time after a version update. The error message is loosely looking like:
256 +
257 +{{code}}
258 +[...]
259 +[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process (xwiki-license-resources) on project [[some-xwiki-project-here]]: Resources archive cannot be found. Could not find artifact org.xwiki.commons:[[some-xwiki-commons-lib]]:jar:x.y.z-SNAPSHOT
260 +[ERROR]
261 +[ERROR] Try downloading the file manually from the project website.
262 +[ERROR]
263 +[ERROR] Then, install it using the command:
264 +[ERROR] mvn install:install-file -DgroupId=org.xwiki.commons -DartifactId=[[some-xwiki-commons-lib]] -Dversion=x.y.z-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
265 +[ERROR]
266 +[ERROR] Alternatively, if you host your own repository you can deploy the file there:
267 +[ERROR] mvn deploy:deploy-file -DgroupId=org.xwiki.commons -DartifactId=[[some-xwiki-commons-lib]] -Dversion=x.y.z-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
268 +[...]
269 +{{/code}}
270 +
271 +If this happens to you, just call the maven build a second (or possible even a third time); the problem usually goes away for consecutive builds.
272 +
273 +If the problem does not go away, check if http://nexus.xwiki.org/ is running. If it is not, please wait a moment until it comes back. (As this is a rather critical part of the infrastructure, you can be pretty sure it gets fixed quickly.)
274 +
253 253  = Build Tools =
254 254  
255 255  We have developed some build tools in the form of Maven plugins. They are located in the [[##commons/tools##>>https://github.com/xwiki/xwiki-commons/tree/master/xwiki-commons-tools]] and [[##platform/xwiki-tools/##>>https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-tools]] directories. Here are descriptions of some of them:

Get Connected