[xwiki-devs] Maven build dependency problems: edu.emory.mathcs.util
Hi. I'm new to XWiki and haven't done much with Java and Maven, so apologies for the dumb question... I'm trying to build from the git repositories. I'm starting with xwiki-commons and just naively typing "mvn" to see what happens. It seems to get quite a long way through the build, but then dies with: [WARNING] The POM for edu.emory.mathcs.util:emory-util-classloader:jar:2.1 is missing, no dependency information available [ERROR] Failed to execute goal on project xwiki-commons-classloader-api: Could not resolve dependencies for project org.xwiki.commons:xwiki-commons-classloader-api:jar:4.5-SNAPSHOT: Failure to find edu.emory.mathcs.util:emory-util-classloader:jar:2.1 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] Interpreting the various .pom files, it looks like it expects to find all necessary dependencies on maven.xwiki.org. Looking through the hierarchy there, seems like there's org. and com. hierarchies, but nothing under edu. at all. Am I supposed to configure other repositories myself before this build will work? Or is it just an oversight that edu.emory.mathcs.util isn't already included on maven.xwiki.org? Thanks for any help!
On 01/03/2013 09:16 PM, [email protected] wrote:
Hi. I'm new to XWiki and haven't done much with Java and Maven, so apologies for the dumb question...
I'm trying to build from the git repositories. I'm starting with xwiki-commons and just naively typing "mvn" to see what happens. It seems to get quite a long way through the build, but then dies with:
[WARNING] The POM for edu.emory.mathcs.util:emory-util-classloader:jar:2.1 is missing, no dependency information available [ERROR] Failed to execute goal on project xwiki-commons-classloader-api: Could not resolve dependencies for project org.xwiki.commons:xwiki-commons-classloader-api:jar:4.5-SNAPSHOT: Failure to find edu.emory.mathcs.util:emory-util-classloader:jar:2.1 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
Interpreting the various .pom files, it looks like it expects to find all necessary dependencies on maven.xwiki.org. Looking through the hierarchy there, seems like there's org. and com. hierarchies, but nothing under edu. at all.
Am I supposed to configure other repositories myself before this build will work?
Yes, see the example settings.xml file at: http://dev.xwiki.org/xwiki/bin/Community/Building#HInstallingMaven
Or is it just an oversight that edu.emory.mathcs.util isn't already included on maven.xwiki.org?
-- Sergiu Dumitriu http://purl.org/net/sergiu
On 2013-01-04 10:23 , Sergiu Dumitriu - [email protected] wrote:
Am I supposed to configure other repositories myself before this build will work?
Yes, see the example settings.xml file at: http://dev.xwiki.org/xwiki/bin/Community/Building#HInstallingMaven
Ah, I see now that there's plenty of documentation. Thanks, and sorry for missing that :-( I see now that it is linked from the developer's guide page, but in a grey box on the right-hand side, apart from the rest of the documentation. Could I suggest that it be included in the main list of documents?
On Fri, Jan 4, 2013 at 3:23 AM, Sergiu Dumitriu <[email protected]> wrote:
On 01/03/2013 09:16 PM, [email protected] wrote:
Hi. I'm new to XWiki and haven't done much with Java and Maven, so apologies for the dumb question...
I'm trying to build from the git repositories. I'm starting with xwiki-commons and just naively typing "mvn" to see what happens. It seems to get quite a long way through the build, but then dies with:
[WARNING] The POM for edu.emory.mathcs.util:emory-util-classloader:jar:2.1 is missing, no dependency information available [ERROR] Failed to execute goal on project xwiki-commons-classloader-api: Could not resolve dependencies for project org.xwiki.commons:xwiki-commons-classloader-api:jar:4.5-SNAPSHOT: Failure to find edu.emory.mathcs.util:emory-util-classloader:jar:2.1 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
Interpreting the various .pom files, it looks like it expects to find all necessary dependencies on maven.xwiki.org. Looking through the hierarchy there, seems like there's org. and com. hierarchies, but nothing under edu. at all.
Am I supposed to configure other repositories myself before this build will work?
Yes, see the example settings.xml file at: http://dev.xwiki.org/xwiki/bin/Community/Building#HInstallingMaven
Well yes and no, you actually found an issue. commons is a bit special since it's supposed to depend on nothing but Maven central so it should have worked but I checked and indeed emory-util-classloader is not on Central which mean we have quite an issue here since it completely defeat the whole point of deploying commons itself on Central. In the meantime doing what Sergiu suggested will fix your issue.
Or is it just an oversight that edu.emory.mathcs.util isn't already included on maven.xwiki.org?
-- Sergiu Dumitriu http://purl.org/net/sergiu _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
On 2013-01-04 16:19 , Thomas Mortagne - [email protected] wrote:
On Fri, Jan 4, 2013 at 3:23 AM, Sergiu Dumitriu <[email protected]> wrote:
Yes, see the example settings.xml file at: http://dev.xwiki.org/xwiki/bin/Community/Building#HInstallingMaven
Well yes and no, you actually found an issue. commons is a bit special since it's supposed to depend on nothing but Maven central so it should have worked but I checked and indeed emory-util-classloader is not on Central which mean we have quite an issue here since it completely defeat the whole point of deploying commons itself on Central.
In the meantime doing what Sergiu suggested will fix your issue.
Thanks, makes me feel less of an idiot. The build worked fine once I set up settings.xml.
participants (3)
-
Sergiu Dumitriu -
Thomas Mortagne -
xwiki.mexon@spamgourmet.com