On Tuesday 02 January 2007 17:41, Vincent Massol wrote:
When I checked
out xwiki/trunk as a project in eclipse and I enable the
maven2 plugin, it starts downloading a bunch of stuff and it complains
about 2 items (see log below). Is that normal? Did I checked out
everything I need?
That's because I haven't published these artifacts in the xwiki remote
repo, so you have to build them before they can be used by a module
requiring them.
The full build is available when you check xwiki/trunks-dev but this will
only work for xwiki committers as it required svn+ssh access. I'll create a
trunks-users for you if you want to try it out.
Ok. I did the check out for xwiki/trunk-users.
It still complains about missing artefacts (jcr, alexa).
How do I know which goals are available (mvn -g is not available any more)?
Here is what I got for the 'install' goal.
$ mvn install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] XWiki Tools
[INFO] XWiki Tools - Build
[INFO] XWiki Tools - Build - Shared Verification Resources
[INFO] XWiki Tools - Build - XAR Handlers
[INFO] XWiki Root
[INFO] XWiki Core
[INFO] XWiki Tool - Packager
[INFO] XWiki Web
[INFO] XWiki Web - Standard
[INFO] XWiki Web - Exo
[INFO] XWiki Wikis
[INFO] XWiki Wikis - Default
[INFO] XWiki Plugins
[INFO] XWiki Plugins - Adwords
[INFO] XWiki Plugins - Alexa
[INFO] XWiki Modules
Downloading:
http://maven.xwiki.org/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-SNAPSHOT/…
[WARNING] Unable to get resource from repository xwiki
(
http://maven.xwiki.org)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) com.xpn.xwiki:xwiki-build-xar-handlers:jar:1.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn
install:install-file -DgroupId=com.xpn.xwiki -DartifactId=xwiki-build-xar-handlers
\
-Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1) com.xpn.xwiki:xwiki-wiki-default:xar:1.0-SNAPSHOT
2) com.xpn.xwiki:xwiki-build-xar-handlers:jar:1.0-SNAPSHOT
----------
1 required artifact is missing.
for artifact:
com.xpn.xwiki:xwiki-wiki-default:xar:1.0-SNAPSHOT
from the specified remote repositories:
xwiki (
http://maven.xwiki.org),
central (
http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Jan 03 00:51:26 EST 2007
[INFO] Final Memory: 3M/7M
[INFO] ------------------------------------------------------------------------