Hi Marc,
I have debugged this. The problem was that I had introduced a bug in the
build: one module was using a reference another module as an extension and
the building was failing if you had not built that extension before as Maven
could not find it in your local repository. I didn't see the error as I had
that module in my local repo. I have now published it to XWiki's remote
maven repo (on
http://maven.xwiki.org).
Try checking out trunks-users and run "mvn install" in there. It should work
fine now.
That said, I still need to verify that the generated WAR works fine. It's
possible it's still missing some runtime jars. I'll check that a bit later
today.
In any case let me know if you still have issues.
I have also updated the information on
http://www.xwiki.org/xwiki/bin/view/Community/Building
Thanks
-Vincent
-----Original Message-----
From: Marc Lijour [mailto:marc@lijour.net]
Sent: mardi 2 janvier 2007 23:15
To: xwiki-dev(a)objectweb.org
Subject: [xwiki-dev] Maven/build help
I try to get into maven to build xwiki but I don't find any doc on
xwiki.org.
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?
Is everybody using maven2 or ant or something else?
A few pointers would be nice. Thanks.
(I still wonder why it has to download stuff since everything is
available in the svn repository. Actually it would be a good idea to
keep the libraries aside, in another folder, if they have to be re-used
in different places but then why keeping them in the repository as
well?)
**********************************
(...)
1/2/07 4:59:04 PM EST: [WARN] Unable to get resource from repository
xwiki
(
http://maven.xwiki.org)
1/2/07 4:59:05 PM EST: [WARN] Unable to get resource from repository
xwiki
(
http://maven.xwiki.org)
1/2/07 4:59:05 PM EST: Failed to run generate source goals /xwiki -
trunk/wikis/default/pom.xml 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:
central (
http://repo1.maven.org/maven2),
xwiki (
http://maven.xwiki.org)
*************************************
___________________________________________________________________________
D�couvrez une nouvelle fa�on d'obtenir des r�ponses � toutes vos questions !
Profitez des connaissances, des opinions et des exp�riences des internautes sur Yahoo!
Questions/R�ponses
http://fr.answers.yahoo.com