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) *************************************
Hi Marc,
-----Original Message----- From: Marc Lijour [mailto:marc@lijour.net] Sent: mardi 2 janvier 2007 23:15 To: xwiki-dev@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.
This is voluntary as it's not ready yet. That said it's good to have a "customer" of the maven2 build so that we can improve it :-)
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.
Is everybody using maven2 or ant or something else?
I am but it's not finished. That said it's building fine. It's just that tests have not all been moved yet, some modules have no maven2 build and I haven't fully tested the generated WAR yet so it may be missing some runtime dependencies.
A few pointers would be nice. Thanks.
Sure. We can start workong on this together if you want and document it as we progress.
(I still wonder why it has to download stuff since everything is available in the svn repository.
Well that's how maven works... :-) Each module has binary dependencies and each module produces artifacts which are depended upon by other modules. When you build with mvn install generated artifacts are put in your local repo (mvn deploy deploys them in the remote repo). They are then available to other modules. You can of course build everything from sources if you cd to the top level of the source tree (trunks-dev for now, see above). To better understand this see http://blogs.codehaus.org/people/vmassol/archives/think_tank.html#000953_bin ary_dependency_builds
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?)
Jars in libs/ will be removed when we remove the Ant build as Maven2 handles this with the notion of repositories (local and remote). [snip] Thanks -Vincent ___________________________________________________________________________ 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
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.
Curiously I could check something out. But my version only contains pom.xml and a soft link to a pom folder. Part of the confusion comes from the many directories under svnroot/xwiki. I see: - pom - trunk-devs - trunk-users (thank you) - vendor - xwiki - xwiki-{apps,client,plugins,sandbox,tools} Which one(s) do I need? Only trunk-users? Could we document briefly what each folder is holding and what to check out?
Is everybody using maven2 or ant or something else?
I am but it's not finished. That said it's building fine. It's just that tests have not all been moved yet, some modules have no maven2 build and I haven't fully tested the generated WAR yet so it may be missing some runtime dependencies.
A few pointers would be nice. Thanks.
Sure. We can start workong on this together if you want and document it as we progress.
I can do that from the point of view of the perfect maven2 newbie :)
(I still wonder why it has to download stuff since everything is available in the svn repository.
Well that's how maven works... :-) Each module has binary dependencies and each module produces artifacts which are depended upon by other modules. When you build with mvn install generated artifacts are put in your local repo (mvn deploy deploys them in the remote repo). They are then available to other modules.
You can of course build everything from sources if you cd to the top level of the source tree (trunks-dev for now, see above).
To better understand this see http://blogs.codehaus.org/people/vmassol/archives/think_tank.html#000953_bi n ary_dependency_builds
Yes, very interesting. When dealing with dependencies in the past I used the ant svn task to update the subproject local image as a prerequisite for the build. But I see that using a continuous build to generate working libraries once and making them available on a server is much more efficient (if you trust the binaries that is ; but then you already trust the source so that nullifies the security argument anyway).
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?)
Jars in libs/ will be removed when we remove the Ant build as Maven2 handles this with the notion of repositories (local and remote).
Now I understand. Thanks.
-----Original Message----- From: Marc Lijour [mailto:marc@lijour.net] Sent: mercredi 3 janvier 2007 06:02 To: xwiki-dev@objectweb.org Subject: Re: [xwiki-dev] Maven/build help
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.
Curiously I could check something out. But my version only contains pom.xml and a soft link to a pom folder.
Part of the confusion comes from the many directories under svnroot/xwiki. I see:
- pom - trunk-devs - trunk-users (thank you) - vendor - xwiki - xwiki-{apps,client,plugins,sandbox,tools}
Which one(s) do I need? Only trunk-users? Could we document briefly what each folder is holding and what to check out?
Yes we need to do that. I've started on http://www.xwiki.org/xwiki/bin/view/Community/Building Short answer: you can check out whatever you want to build. So you need to know what each is.
Is everybody using maven2 or ant or something else?
I am but it's not finished. That said it's building fine. It's just that tests have not all been moved yet, some modules have no maven2 build and I haven't fully tested the generated WAR yet so it may be missing some runtime dependencies.
A few pointers would be nice. Thanks.
Sure. We can start workong on this together if you want and document it as we progress.
I can do that from the point of view of the perfect maven2 newbie :)
Cool... Feel free to continue the documentation on http://www.xwiki.org/xwiki/bin/view/Community/Building
(I still wonder why it has to download stuff since everything is available in the svn repository.
Well that's how maven works... :-) Each module has binary dependencies and each module produces artifacts which are depended upon by other modules. When you build with mvn install generated artifacts are put in your local repo (mvn deploy deploys them in the remote repo). They are then available to other modules.
You can of course build everything from sources if you cd to the top level of the source tree (trunks-dev for now, see above).
To better understand this see
http://blogs.codehaus.org/people/vmassol/archives/think_tank.html#0009 5 3_bi n ary_dependency_builds
Yes, very interesting.
When dealing with dependencies in the past I used the ant svn task to update the subproject local image as a prerequisite for the build. But I see that using a continuous build to generate working libraries once and making them available on a server is much more efficient (if you trust the binaries that is ; but then you already trust the source so that nullifies the security argument anyway).
The only thing missing right now to have a good m2 build is a CI for Maven2. We need to find a machine 1) that can run it and discover when it breaks so that it can be fixed immediately and 2) that publishes the generated artifacts to the remote repo.
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?)
Jars in libs/ will be removed when we remove the Ant build as Maven2 handles this with the notion of repositories (local and remote).
Now I understand. Thanks.
-Vincent ___________________________________________________________________________ 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
On Wednesday 03 January 2007 03:51, Vincent Massol wrote:
Which one(s) do I need? Only trunk-users? Could we document briefly what each folder is holding and what to check out?
Yes we need to do that. I've started on http://www.xwiki.org/xwiki/bin/view/Community/Building
Short answer: you can check out whatever you want to build. So you need to know what each is.
Vu. Thank you. But don't we need always POM, or does it get downloaded automatically?
-----Original Message----- From: Marc Lijour [mailto:marc@lijour.net] Sent: vendredi 5 janvier 2007 06:38 To: xwiki-dev@objectweb.org Subject: Re: [xwiki-dev] Maven/build help
On Wednesday 03 January 2007 03:51, Vincent Massol wrote:
Which one(s) do I need? Only trunk-users? Could we document briefly what each folder is holding and what to check out?
Yes we need to do that. I've started on http://www.xwiki.org/xwiki/bin/view/Community/Building
Short answer: you can check out whatever you want to build. So you need to know what each is.
Vu. Thank you.
But don't we need always POM, or does it get downloaded automatically?
When you build a project you position yourself in the directory where the pom.xml file is (the POM file). Then if the module has a parent, maven2 looks first on the disk to find it and if it cannot it tries to get it from the local/remote repositories. -Vincent ___________________________________________________________________________ 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
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/x... [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] ------------------------------------------------------------------------
-----Original Message----- From: Marc Lijour [mailto:marc@lijour.net] Sent: mercredi 3 janvier 2007 06:53 To: xwiki-dev@objectweb.org Subject: Re: [xwiki-dev] Maven/build help
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)?
Seems like you've used maven1 in the past... Maven2 is a different beast. See http://maven.apache.org/users/index.html
Here is what I got for the 'install' goal.
$ mvn install
[snip] I'm able to reproduce the pb. Working on it... Thanks -Vincent ___________________________________________________________________________ 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
Are you using a particular IDE or the command line?
-----Original Message----- From: Marc Lijour [mailto:marc@lijour.net] Sent: mercredi 3 janvier 2007 07:04 To: xwiki-dev@objectweb.org Subject: Re: [xwiki-dev] Maven - IDE question
Are you using a particular IDE or the command line?
Command line but that shouldn't stop you using plugins for your favorite IDE... -Vincent ___________________________________________________________________________ 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
Using ant inside eclipse On 03/01/07, Vincent Massol <vincent@massol.net> wrote:
-----Original Message----- From: Marc Lijour [mailto:marc@lijour.net] Sent: mercredi 3 janvier 2007 07:04 To: xwiki-dev@objectweb.org Subject: Re: [xwiki-dev] Maven - IDE question
Are you using a particular IDE or the command line?
Command line but that shouldn't stop you using plugins for your favorite IDE...
-Vincent
___________________________________________________________________________ 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
-- You receive this message as a subscriber of the xwiki-dev@objectweb.orgmailing list. To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
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@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
On Friday 05 January 2007 11:30, Vincent Massol wrote:
Try checking out trunks-users and run "mvn install" in there. It should work fine now.
Hi Vincent, are you sure you committed everything. It still the same here. Here is what I got (I updated pom as well just in case): ------------ update -r HEAD /home/marc/devel/xwikiandco/trunks-users Updating external location at: /home/marc/devel/xwikiandco/trunks-users/pom At revision 1888. Updating external location at: /home/marc/devel/xwikiandco/trunks-users/xwiki U /home/marc/devel/xwikiandco/trunks-users/xwiki/web/standard/src/main/webapp/skins/xwiki10b1/macrowysiwyg.vm U /home/marc/devel/xwikiandco/trunks-users/xwiki/web/standard/src/main/webapp/skins/default/macrowysiwyg.vm U /home/marc/devel/xwikiandco/trunks-users/xwiki/web/standard/src/main/webapp/skins/xwiki10/macrowysiwyg.vm U /home/marc/devel/xwikiandco/trunks-users/xwiki/web/standard/src/main/webapp/templates/macrowysiwyg.vm U /home/marc/devel/xwikiandco/trunks-users/xwiki/web/standard/src/main/webapp/tiny_mce/langs/en.js U /home/marc/devel/xwikiandco/trunks-users/xwiki/web/standard/src/main/webapp/tiny_mce/themes/wikieditor/langs/en.js U /home/marc/devel/xwikiandco/trunks-users/xwiki/web/standard/src/main/webapp/tiny_mce/themes/wikieditor/images/macro.gif U /home/marc/devel/xwikiandco/trunks-users/xwiki/web/standard/src/main/webapp/tiny_mce/themes/wikieditor/macro.htm U /home/marc/devel/xwikiandco/trunks-users/xwiki/web/standard/src/main/webapp/tiny_mce/themes/wikieditor/css/editor_popup.css Updated to revision 1888. Updating external location at: /home/marc/devel/xwikiandco/trunks-users/xwiki-clients Updated to revision 1888. Updating external location at: /home/marc/devel/xwikiandco/trunks-users/xwiki-plugins Updated to revision 1888. Updating external location at: /home/marc/devel/xwikiandco/trunks-users/xwiki-sandbox Updated to revision 1888. Updating external location at: /home/marc/devel/xwikiandco/trunks-users/xwiki-tools Updated to revision 1888. Updated to revision 1888. ===== File Statistics: ===== Updated: 9 update -r HEAD /home/marc/devel/xwikiandco/pom At revision 1888. ------------- mvn install gives me the same error as before: -------------- $ 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/x... [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
My bet is that it's going to work automagically tomorrow... ;-) Maven2 checks for updates for snapshots once every day, unless you ask it. I bet you had run a build earlier today. Try running with -U (it updates snapshots). Thanks -Vincent
-----Original Message----- From: Marc Lijour [mailto:marc@lijour.net] Sent: samedi 6 janvier 2007 01:10 To: xwiki-dev@objectweb.org Subject: Re: [xwiki-dev] Maven/build help
On Friday 05 January 2007 11:30, Vincent Massol wrote:
Try checking out trunks-users and run "mvn install" in there. It should work fine now.
Hi Vincent, are you sure you committed everything. It still the same here.
Here is what I got (I updated pom as well just in case): ------------ update -r HEAD /home/marc/devel/xwikiandco/trunks-users Updating external location at: /home/marc/devel/xwikiandco/trunks-users/pom At revision 1888. Updating external location at: /home/marc/devel/xwikiandco/trunks-users/xwiki
U /home/marc/devel/xwikiandco/trunks- users/xwiki/web/standard/src/main/webapp/skins/xwiki10b1/macrowysiwyg.v m
U /home/marc/devel/xwikiandco/trunks- users/xwiki/web/standard/src/main/webapp/skins/default/macrowysiwyg.vm
U /home/marc/devel/xwikiandco/trunks- users/xwiki/web/standard/src/main/webapp/skins/xwiki10/macrowysiwyg.vm
U /home/marc/devel/xwikiandco/trunks- users/xwiki/web/standard/src/main/webapp/templates/macrowysiwyg.vm
U /home/marc/devel/xwikiandco/trunks- users/xwiki/web/standard/src/main/webapp/tiny_mce/langs/en.js
U /home/marc/devel/xwikiandco/trunks- users/xwiki/web/standard/src/main/webapp/tiny_mce/themes/wikieditor/lan gs/en.js
U /home/marc/devel/xwikiandco/trunks- users/xwiki/web/standard/src/main/webapp/tiny_mce/themes/wikieditor/ima ges/macro.gif
U /home/marc/devel/xwikiandco/trunks- users/xwiki/web/standard/src/main/webapp/tiny_mce/themes/wikieditor/mac ro.htm
U /home/marc/devel/xwikiandco/trunks- users/xwiki/web/standard/src/main/webapp/tiny_mce/themes/wikieditor/css /editor_popup.css Updated to revision 1888. Updating external location at: /home/marc/devel/xwikiandco/trunks-users/xwiki-clients Updated to revision 1888. Updating external location at: /home/marc/devel/xwikiandco/trunks-users/xwiki-plugins Updated to revision 1888. Updating external location at: /home/marc/devel/xwikiandco/trunks-users/xwiki-sandbox Updated to revision 1888. Updating external location at: /home/marc/devel/xwikiandco/trunks-users/xwiki-tools Updated to revision 1888. Updated to revision 1888. ===== File Statistics: ===== Updated: 9 update -r HEAD /home/marc/devel/xwikiandco/pom At revision 1888. -------------
mvn install gives me the same error as before:
-------------- $ 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/xwiki-build-xar-handlers-1.0-SNAPSHOT.jar [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
___________________________________________________________________________ Yahoo! Mail r�invente le mail ! D�couvrez le nouveau Yahoo! Mail et son interface r�volutionnaire. http://fr.mail.yahoo.com
On Friday 05 January 2007 20:20, Vincent Massol wrote:
My bet is that it's going to work automagically tomorrow... ;-)
Maven2 checks for updates for snapshots once every day, unless you ask it. I bet you had run a build earlier today.
Try running with -U (it updates snapshots). $ mvn -U [INFO] Scanning for projects... [INFO] snapshot com.xpn.xwiki:xwiki:1.0-SNAPSHOT: checking for updates from xwiki Downloading: http://maven.xwiki.org/com/xpn/xwiki/xwiki/1.0-SNAPSHOT/xwiki-1.0-20070105.1... 4K downloaded (...)
Ok. I got something new. But I still have a problem with mvn install: (...) Downloading: http://maven.xwiki.org/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-SNAPSHOT/x... [WARNING] Unable to get resource from repository xwiki (http://maven.xwiki.org) (...) It seems the package is not in the repository yet. Marc
-----Original Message----- From: Marc Lijour [mailto:marc@lijour.net] Sent: samedi 6 janvier 2007 02:45 To: xwiki-dev@objectweb.org Subject: Re: [xwiki-dev] Maven/build help
On Friday 05 January 2007 20:20, Vincent Massol wrote:
My bet is that it's going to work automagically tomorrow... ;-)
Maven2 checks for updates for snapshots once every day, unless you ask it. I bet you had run a build earlier today.
Try running with -U (it updates snapshots). $ mvn -U [INFO] Scanning for projects... [INFO] snapshot com.xpn.xwiki:xwiki:1.0-SNAPSHOT: checking for updates from xwiki Downloading: http://maven.xwiki.org/com/xpn/xwiki/xwiki/1.0-SNAPSHOT/xwiki-1.0- 20070105.163136-2.pom 4K downloaded (...)
Ok. I got something new. But I still have a problem with mvn install:
(...) Downloading: http://maven.xwiki.org/com/xpn/xwiki/xwiki-build-xar-handlers/1.0- SNAPSHOT/xwiki-build-xar-handlers-1.0-SNAPSHOT.jar [WARNING] Unable to get resource from repository xwiki (http://maven.xwiki.org) (...)
It seems the package is not in the repository yet.
It is there: http://maven.xwiki.org/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-SNAPSHOT/x wiki-build-xar-handlers-1.0-20070105.153209-1.jar The snapshot version is resolved by Maven against the latest timestamp (the information comes from http://maven.xwiki.org/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-SNAPSHOT/m aven-metadata.xml). So that's very strange. Have you tried removing all the xpn directory in your local repository just in case (in ~user/.m2/repository/com)? Could you please attach the full log to an email? Thanks -Vincent ___________________________________________________________________________ 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
On Saturday 06 January 2007 04:12, Vincent Massol wrote:
-----Original Message----- From: Marc Lijour [mailto:marc@lijour.net] Sent: samedi 6 janvier 2007 02:45 To: xwiki-dev@objectweb.org Subject: Re: [xwiki-dev] Maven/build help
On Friday 05 January 2007 20:20, Vincent Massol wrote:
My bet is that it's going to work automagically tomorrow... ;-)
Maven2 checks for updates for snapshots once every day, unless you
ask it.
I bet you had run a build earlier today.
Try running with -U (it updates snapshots).
$ mvn -U [INFO] Scanning for projects... [INFO] snapshot com.xpn.xwiki:xwiki:1.0-SNAPSHOT: checking for updates from xwiki Downloading: http://maven.xwiki.org/com/xpn/xwiki/xwiki/1.0-SNAPSHOT/xwiki-1.0- 20070105.163136-2.pom 4K downloaded (...)
Ok. I got something new. But I still have a problem with mvn install:
(...) Downloading: http://maven.xwiki.org/com/xpn/xwiki/xwiki-build-xar-handlers/1.0- SNAPSHOT/xwiki-build-xar-handlers-1.0-SNAPSHOT.jar [WARNING] Unable to get resource from repository xwiki (http://maven.xwiki.org) (...)
It seems the package is not in the repository yet.
It is there: http://maven.xwiki.org/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-SNAPSHOT/ x wiki-build-xar-handlers-1.0-20070105.153209-1.jar
The snapshot version is resolved by Maven against the latest timestamp (the information comes from http://maven.xwiki.org/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-SNAPSHOT/ m aven-metadata.xml).
So that's very strange. Have you tried removing all the xpn directory in your local repository just in case (in ~user/.m2/repository/com)?
Could you please attach the full log to an email?
Thanks -Vincent
Hi Vincent, it looks like we are getting closer. But there is still a step to go. Here is the full log. $ tree ~/.m2/repository/com/xpn/xwiki /home/marc/.m2/repository/com/xpn/xwiki |-- xwiki | `-- 1.0-SNAPSHOT | |-- maven-metadata-xwiki.xml | |-- maven-metadata-xwiki.xml.sha1 | |-- xwiki-1.0-20061207.105834-1.pom | |-- xwiki-1.0-20061207.105834-1.pom.sha1 | |-- xwiki-1.0-20070105.163136-2.pom | |-- xwiki-1.0-20070105.163136-2.pom.sha1 | `-- xwiki-1.0-SNAPSHOT.pom |-- xwiki-build-xar-handlers | `-- 1.0-SNAPSHOT | `-- maven-metadata-xwiki.xml |-- xwiki-core | `-- 1.0-SNAPSHOT | |-- maven-metadata-xwiki.xml | |-- maven-metadata-xwiki.xml.sha1 | |-- maven-metadata-xwiki.xml.tmp.sha1.tmp | |-- xwiki-core-1.0-20061207.110025-1.jar | |-- xwiki-core-1.0-20061207.110025-1.jar.sha1 | |-- xwiki-core-1.0-20061207.110025-1.pom | |-- xwiki-core-1.0-20061207.110025-1.pom.sha1 | |-- xwiki-core-1.0-SNAPSHOT.jar | `-- xwiki-core-1.0-SNAPSHOT.pom |-- xwiki-root | `-- 1.0-SNAPSHOT | |-- maven-metadata-xwiki.xml | |-- maven-metadata-xwiki.xml.sha1 | |-- maven-metadata-xwiki.xml.tmp.sha1.tmp | |-- xwiki-root-1.0-20061207.110025-1.pom | |-- xwiki-root-1.0-20061207.110025-1.pom.sha1 | `-- xwiki-root-1.0-SNAPSHOT.pom |-- xwiki-web | `-- 1.0-SNAPSHOT | |-- maven-metadata-xwiki.xml | |-- maven-metadata-xwiki.xml.sha1 | |-- maven-metadata-xwiki.xml.tmp.sha1.tmp | |-- xwiki-web-1.0-20061207.110025-1.pom | |-- xwiki-web-1.0-20061207.110025-1.pom.sha1 | `-- xwiki-web-1.0-SNAPSHOT.pom `-- xwiki-web-standard |-- 1.0-20061207.110025-1 | |-- xwiki-web-standard-1.0-20061207.110025-1.pom | `-- xwiki-web-standard-1.0-20061207.110025-1.pom.sha1 `-- 1.0-SNAPSHOT |-- maven-metadata-xwiki.xml |-- maven-metadata-xwiki.xml.sha1 |-- maven-metadata-xwiki.xml.tmp.sha1.tmp |-- xwiki-web-standard-1.0-20061207.110025-1.pom |-- xwiki-web-standard-1.0-20061207.110025-1.pom.sha1 |-- xwiki-web-standard-1.0-20061207.110025-1.war |-- xwiki-web-standard-1.0-20061207.110025-1.war.sha1 |-- xwiki-web-standard-1.0-SNAPSHOT.pom `-- xwiki-web-standard-1.0-SNAPSHOT.war 13 directories, 40 files $ mvn -U [INFO] Scanning for projects... [INFO] snapshot com.xpn.xwiki:xwiki:1.0-SNAPSHOT: checking for updates from xwiki [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 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] You must specify at least one goal. Try 'install' [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Sat Jan 06 09:01:33 EST 2007 [INFO] Final Memory: 2M/7M [INFO] ------------------------------------------------------------------------ $ 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 [INFO] snapshot com.xpn.xwiki:xwiki-build-xar-handlers:1.0-SNAPSHOT: checking for updates from xwiki Downloading: http://maven.xwiki.org/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-SNAPSHOT/x... 2K downloaded [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Tools [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/... 981b downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/... 8K downloaded Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty/6.0.0beta12/jetty-6.0.... 2K downloaded Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/project/6.0.0beta12/project-... 7K downloaded Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/servlet-api-2.5/6.0.0beta12/... 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-reporting-api... 902b downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-reporting/2.0... 738b downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.2/maven-2.0.2.pom 12K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact/2.0.2/maven-ar... 765b downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0/maven-sett... 1K downloaded Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty/6.0.0beta12/jetty-6.0.... 463K downloaded Downloading: http://dist.codehaus.org/org.mortbay.jetty/jars/servlet-api-2.5-6.0.0beta12.... [WARNING] Unable to get resource from repository codehaus (http://dist.codehaus.org) Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/servlet-api-2.5/6.0.0beta12/... 157K downloaded [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/pom.xml to /home/marc/.m2/repository/com/xpn/xwiki/xwiki-tools/1.0-SNAPSHOT/xwiki-tools-1.0-SNAPSHOT.pom [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Tools - Build [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/pom.xml to /home/marc/.m2/repository/com/xpn/xwiki/xwiki-build-tools/1.0-SNAPSHOT/xwiki-build-tools-1.0-SNAPSHOT.pom [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Tools - Build - Shared Verification Resources [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin... 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin... 14K downloaded [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.1/... 2K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/3/maven... 6K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.1/... 18K downloaded [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] No sources to compile [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-booter/2.0/... 770b downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire/2.0/surefir... 3K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-api/2.0/sur... 741b downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-booter/2.0/... 22K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-api/2.0/sur... 47K downloaded [INFO] [surefire:test] [INFO] No tests to run. Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-archiver/2.2/maven-arch... 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-shared-component... 1K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-... 1K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components/1.1.6/pl... 1K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.8/plexus-1.0.8.... 7K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.2/plexus-ut... 767b downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-... 138K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-archiver/2.2/maven-arch... 9K downloaded [INFO] [jar:jar] [INFO] Building jar: /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/build-verifications/target/xwiki-build-verifications-1.0-SNAPSHOT.jar [INFO] [install:install] [INFO] Installing /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/build-verifications/target/xwiki-build-verifications-1.0-SNAPSHOT.jar to /home/marc/.m2/repository/com/xpn/xwiki/xwiki-build-verifications/1.0-SNAPSHOT/xwiki-build-verifications-1.0-SNAPSHOT.jar [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Tools - Build - XAR Handlers [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] No sources to compile [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] No tests to run. [INFO] [jar:jar] [INFO] Building jar: /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/build-xar-handlers/target/xwiki-build-xar-handlers-1.0-SNAPSHOT.jar [INFO] [install:install] [INFO] Installing /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/build-xar-handlers/target/xwiki-build-xar-handlers-1.0-SNAPSHOT.jar to /home/marc/.m2/repository/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-SNAPSHOT/xwiki-build-xar-handlers-1.0-SNAPSHOT.jar [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Root [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing /home/marc/devel/xwikiandco/trunks-users/xwiki/pom.xml to /home/marc/.m2/repository/com/xpn/xwiki/xwiki-root/1.0-SNAPSHOT/xwiki-root-1.0-SNAPSHOT.pom [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Core [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [WARNING] POM for 'poi:poi:pom:3.0-alpha3:compile' is invalid. It will be ignored for artifact resolution. Reason: Parse error reading POM. Reason: expected START_TAG or END_TAG not TEXT (position: TEXT seen ...<logo>http://jakarta.apache.org/images/original-jakarta-logo.gif</... @28:69) Downloading: http://maven.xwiki.org/groovy/groovy-all-1.0-jsr/06/groovy-all-1.0-jsr-06.po... [WARNING] Unable to get resource from repository xwiki (http://maven.xwiki.org) Downloading: http://repo1.maven.org/maven2/groovy/groovy-all-1.0-jsr/06/groovy-all-1.0-js... [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [WARNING] Artifact jmock:jmock:jar:1.1.0:test retains local scope 'test' overriding broader scope 'compile' given by a dependency. If this is not intended, modify or remove the local scope. Downloading: http://maven.xwiki.org/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.jar [WARNING] Unable to get resource from repository xwiki (http://maven.xwiki.org) Downloading: http://repo1.maven.org/maven2/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.jar 815K downloaded Downloading: http://maven.xwiki.org/javax/jcr/jcr/1.0/jcr-1.0.jar [WARNING] Unable to get resource from repository xwiki (http://maven.xwiki.org) Downloading: http://repo1.maven.org/maven2/javax/jcr/jcr/1.0/jcr-1.0.jar [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://maven.xwiki.org/xalan/xalan/2.4.1/xalan-2.4.1.jar [WARNING] Unable to get resource from repository xwiki (http://maven.xwiki.org) Downloading: http://repo1.maven.org/maven2/xalan/xalan/2.4.1/xalan-2.4.1.jar 1006K downloaded Downloading: http://maven.xwiki.org/avalon-framework/avalon-framework/4.0/avalon-framewor... [WARNING] Unable to get resource from repository xwiki (http://maven.xwiki.org) Downloading: http://repo1.maven.org/maven2/avalon-framework/avalon-framework/4.0/avalon-f... 58K downloaded [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) javax.jcr:jcr:jar:1.0 Try downloading the file manually from: http://www.day.com/maven/jsr170/jars/jcr-1.0.jar Then, install it using the command: mvn install:install-file -DgroupId=javax.jcr -DartifactId=jcr \ -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) com.xpn.xwiki:xwiki-core:jar:1.0-SNAPSHOT 2) javax.jcr:jcr:jar:1.0 ---------- 1 required artifact is missing. for artifact: com.xpn.xwiki:xwiki-core:jar: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: 52 seconds [INFO] Finished at: Sat Jan 06 09:02:32 EST 2007 [INFO] Final Memory: 14M/34M [INFO] ------------------------------------------------------------------------
On Saturday 06 January 2007 04:12, Vincent Massol wrote:
-----Original Message----- From: Marc Lijour [mailto:marc@lijour.net] Sent: samedi 6 janvier 2007 02:45 To: xwiki-dev@objectweb.org Subject: Re: [xwiki-dev] Maven/build help
On Friday 05 January 2007 20:20, Vincent Massol wrote:
My bet is that it's going to work automagically tomorrow... ;-)
Maven2 checks for updates for snapshots once every day, unless you
ask it.
I bet you had run a build earlier today.
Try running with -U (it updates snapshots).
$ mvn -U [INFO] Scanning for projects... [INFO] snapshot com.xpn.xwiki:xwiki:1.0-SNAPSHOT: checking for updates from xwiki Downloading: http://maven.xwiki.org/com/xpn/xwiki/xwiki/1.0-SNAPSHOT/xwiki-1.0- 20070105.163136-2.pom 4K downloaded (...)
Ok. I got something new. But I still have a problem with mvn install:
(...) Downloading: http://maven.xwiki.org/com/xpn/xwiki/xwiki-build-xar-handlers/1.0- SNAPSHOT/xwiki-build-xar-handlers-1.0-SNAPSHOT.jar [WARNING] Unable to get resource from repository xwiki (http://maven.xwiki.org) (...)
It seems the package is not in the repository yet.
It is there: http://maven.xwiki.org/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-SNAPSHOT/ x wiki-build-xar-handlers-1.0-20070105.153209-1.jar
The snapshot version is resolved by Maven against the latest timestamp (the information comes from http://maven.xwiki.org/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-SNAPSHOT/ m aven-metadata.xml).
So that's very strange. Have you tried removing all the xpn directory in your local repository just in case (in ~user/.m2/repository/com)?
Could you please attach the full log to an email?
Thanks -Vincent
Hi Vincent, now I tried the same thing after removing the xpn directory as you suggested. Apparently there is a syntax error in a POM file. This is what I got: $ rm -rf ~/.m2/repository/com/xpn $ mvn install [INFO] Scanning for projects... [INFO] snapshot com.xpn.xwiki:xwiki:1.0-SNAPSHOT: checking for updates from xwiki Downloading: http://maven.xwiki.org/com/xpn/xwiki/xwiki/1.0-SNAPSHOT/xwiki-1.0-20070105.1... 4K downloaded [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 [INFO] snapshot com.xpn.xwiki:xwiki-build-xar-handlers:1.0-SNAPSHOT: checking for updates from xwiki Downloading: http://maven.xwiki.org/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-SNAPSHOT/x... 2K downloaded [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Tools [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/pom.xml to /home/marc/.m2/repository/com/xpn/xwiki/xwiki-tools/1.0-SNAPSHOT/xwiki-tools-1.0-SNAPSHOT.pom [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Tools - Build [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/pom.xml to /home/marc/.m2/repository/com/xpn/xwiki/xwiki-build-tools/1.0-SNAPSHOT/xwiki-build-tools-1.0-SNAPSHOT.pom [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Tools - Build - Shared Verification Resources [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] No sources to compile [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] No tests to run. [INFO] [jar:jar] [INFO] Building jar: /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/build-verifications/target/xwiki-build-verifications-1.0-SNAPSHOT.jar [INFO] [install:install] [INFO] Installing /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/build-verifications/target/xwiki-build-verifications-1.0-SNAPSHOT.jar to /home/marc/.m2/repository/com/xpn/xwiki/xwiki-build-verifications/1.0-SNAPSHOT/xwiki-build-verifications-1.0-SNAPSHOT.jar [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Tools - Build - XAR Handlers [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] No sources to compile [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] No tests to run. [INFO] [jar:jar] [INFO] Building jar: /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/build-xar-handlers/target/xwiki-build-xar-handlers-1.0-SNAPSHOT.jar [INFO] [install:install] [INFO] Installing /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/build-xar-handlers/target/xwiki-build-xar-handlers-1.0-SNAPSHOT.jar to /home/marc/.m2/repository/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-SNAPSHOT/xwiki-build-xar-handlers-1.0-SNAPSHOT.jar [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Root [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing /home/marc/devel/xwikiandco/trunks-users/xwiki/pom.xml to /home/marc/.m2/repository/com/xpn/xwiki/xwiki-root/1.0-SNAPSHOT/xwiki-root-1.0-SNAPSHOT.pom [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Core [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [WARNING] POM for 'poi:poi:pom:3.0-alpha3:compile' is invalid. It will be ignored for artifact resolution. Reason: Parse error reading POM. Reason: expected START_TAG or END_TAG not TEXT (position: TEXT seen ...<logo>http://jakarta.apache.org/images/original-jakarta-logo.gif</... @28:69) Downloading: http://maven.xwiki.org/groovy/groovy-all-1.0-jsr/06/groovy-all-1.0-jsr-06.po... [WARNING] Unable to get resource from repository xwiki (http://maven.xwiki.org) Downloading: http://repo1.maven.org/maven2/groovy/groovy-all-1.0-jsr/06/groovy-all-1.0-js... [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [WARNING] Artifact jmock:jmock:jar:1.1.0:test retains local scope 'test' overriding broader scope 'compile' given by a dependency. If this is not intended, modify or remove the local scope. Downloading: http://maven.xwiki.org/javax/jcr/jcr/1.0/jcr-1.0.jar [WARNING] Unable to get resource from repository xwiki (http://maven.xwiki.org) Downloading: http://repo1.maven.org/maven2/javax/jcr/jcr/1.0/jcr-1.0.jar [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) javax.jcr:jcr:jar:1.0 Try downloading the file manually from: http://www.day.com/maven/jsr170/jars/jcr-1.0.jar Then, install it using the command: mvn install:install-file -DgroupId=javax.jcr -DartifactId=jcr \ -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) com.xpn.xwiki:xwiki-core:jar:1.0-SNAPSHOT 2) javax.jcr:jcr:jar:1.0 ---------- 1 required artifact is missing. for artifact: com.xpn.xwiki:xwiki-core:jar: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: 13 seconds [INFO] Finished at: Sat Jan 06 09:06:54 EST 2007 [INFO] Final Memory: 14M/34M [INFO] ------------------------------------------------------------------------
I installed the missing dependency (jcr) manually as suggested by maven (see previous email). Now the target install works with maven2. There are still 2 issues. 1) POM for 'poi:poi:pom:3.0-alpha3:compile' is invalid (see below the log) 2) how can I specify -source 1.4 ? My shell classpath is empty and my jdk: $ java -version java version "1.6.0" Java(TM) SE Runtime Environment (build 1.6.0-b105) Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode) and I get this error when compiling: /home/marc/devel/xwikiandco/trunks-users/xwiki/core/src/main/java/com/xpn/xwiki/store/XWikiJDBCConnection.java: [34,7] com.xpn.xwiki.store.XWikiJDBCConnection is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Object[]) in java.sql.Connection This does not happen when I build with ant because the source compatibility 1.4 is required. $ 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 [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Tools [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/pom.xml to /home/marc/.m2/repository/com/xpn/xwiki/xwiki-tools/1.0-SNAPSHOT/xwiki-tools-1.0-SNAPSHOT.pom [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Tools - Build [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/pom.xml to /home/marc/.m2/repository/com/xpn/xwiki/xwiki-build-tools/1.0-SNAPSHOT/xwiki-build-tools-1.0-SNAPSHOT.pom [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Tools - Build - Shared Verification Resources [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] No sources to compile [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] No tests to run. [INFO] [jar:jar] [INFO] Building jar: /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/build-verifications/target/xwiki-build-verifications-1.0-SNAPSHOT.jar [INFO] [install:install] [INFO] Installing /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/build-verifications/target/xwiki-build-verifications-1.0-SNAPSHOT.jar to /home/marc/.m2/repository/com/xpn/xwiki/xwiki-build-verifications/1.0-SNAPSHOT/xwiki-build-verifications-1.0-SNAPSHOT.jar [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Tools - Build - XAR Handlers [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] No sources to compile [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] No tests to run. [INFO] [jar:jar] [INFO] Building jar: /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/build-xar-handlers/target/xwiki-build-xar-handlers-1.0-SNAPSHOT.jar [INFO] [install:install] [INFO] Installing /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/build-xar-handlers/target/xwiki-build-xar-handlers-1.0-SNAPSHOT.jar to /home/marc/.m2/repository/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-SNAPSHOT/xwiki-build-xar-handlers-1.0-SNAPSHOT.jar [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Root [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing /home/marc/devel/xwikiandco/trunks-users/xwiki/pom.xml to /home/marc/.m2/repository/com/xpn/xwiki/xwiki-root/1.0-SNAPSHOT/xwiki-root-1.0-SNAPSHOT.pom [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Core [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [WARNING] POM for 'poi:poi:pom:3.0-alpha3:compile' is invalid. It will be ignored for artifact resolution. Reason: Parse error reading POM. Reason: expected START_TAG or END_TAG not TEXT (position: TEXT seen ...<logo>http://jakarta.apache.org/images/original-jakarta-logo.gif</... @28:69) Downloading: http://maven.xwiki.org/groovy/groovy-all-1.0-jsr/06/groovy-all-1.0-jsr-06.po... [WARNING] Unable to get resource from repository xwiki (http://maven.xwiki.org) Downloading: http://repo1.maven.org/maven2/groovy/groovy-all-1.0-jsr/06/groovy-all-1.0-js... [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [WARNING] Artifact jmock:jmock:jar:1.1.0:test retains local scope 'test' overriding broader scope 'compile' given by a dependency. If this is not intended, modify or remove the local scope. [INFO] [compiler:compile] Compiling 176 source files to /home/marc/devel/xwikiandco/trunks-users/xwiki/core/target/classes [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure /home/marc/devel/xwikiandco/trunks-users/xwiki/core/src/main/java/com/xpn/xwiki/store/XWikiJDBCConnection.java: [34,7] com.xpn.xwiki.store.XWikiJDBCConnection is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Object[]) in java.sql.Connection [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 21 seconds [INFO] Finished at: Sat Jan 06 09:53:20 EST 2007 [INFO] Final Memory: 32M/76M [INFO] ------------------------------------------------------------------------
participants (3)
-
Dan Murphy -
Marc Lijour -
Vincent Massol