On Thu, Mar 22, 2012 at 12:37 AM, Eduard Moraru <[email protected]> wrote: > Hi Craig, > > Looks like a dependency resolution problem. > > Maybe you have forgotten to configure maven`s settings.xml [1] to provide > the default location of XWiki's maven repository for dependency resolution.
Also, we currently have a cyclic dependency problem in xwiki-platform and so building from the top folder might fail. Anyway, we never build the entire xwiki-platform or xwiki-enterprise because we have the http://ci.xwiki.org/ to do this for us. We only build the Maven modules we work on. Try to build a sub-module like xwiki-platform-core/xwiki-platform-web . If this works then you're fine. Note that for development we usually use the jetty+hsqldb (zip) XWiki Enterprise distribution because you only have to unzip and execute start_xwiki.sh to have a running instance. You can get the latest snapshot build from http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-jetty-hsqldb/4.0-SNAPSHOT/ . Hope this helps, Marius > > Thanks, > Eduard > > ---------- > [1] http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven > > On Wed, Mar 21, 2012 at 10:54 PM, Craig Innes <[email protected]> wrote: > >> Hi, >> >> As suggested by Marius and Ecaterina, i have downloaded the >> XWiki-enterprise JAR file to install it and play around with it a little. A >> have also cloned the git repo and installed maven in an attempt to build >> from source. However, when i run mvn install in the source folder i get the >> following error: >> >> [ERROR] Failed to execute goal >> org.xwiki.platform:xwiki-platform-tool-packager-plugin:4.0-SNAPSHOT:import >> (default) on project xwiki-enterprise-database-hsqldb: Execution default of >> goal >> org.xwiki.platform:xwiki-platform-tool-packager-plugin:4.0-SNAPSHOT:import >> failed: Plugin >> org.xwiki.platform:xwiki-platform-tool-packager-plugin:4.0-SNAPSHOT or one >> of its dependencies could not be resolved: The following artifacts could >> not be resolved: org.opensymphony.quartz:quartz:jar:1.6.5, >> org.suigeneris:jrcs.diff:jar:0.4.2, org.suigeneris:jrcs.rcs:jar:0.4.2, >> com.google:googleapi:jar:xwiki:UNKNOWN, info.informatica:css4j:jar:0.13, >> info.informatica:jclf:jar:2.3.0, jtidy:jtidy:jar:8.0-20060801.131059-3-dev, >> org.codehaus.swizzle:swizzle-confluence:jar:xwiki:1.2-20080419, >> com.yahoo.platform.yui:yuicompressor:jar:2.4.2-xwiki, >> edu.emory.mathcs.util:emory-util-classloader:jar:2.1, >> edu.emory.mathcs.util:emory-util-io:jar:2.1, >> edu.emory.mathcs.util:emory-util-security:jar:2.1, >> uk.ac.ed.ph.snuggletex:snuggletex-core:jar:1.1.0, >> uk.ac.ed.ph.snuggletex:snuggletex-jeuclid:jar:1.1.0, >> org.infinispan:infinispan-core:jar:5.1.1.FINAL, >> >> org.artofsolving.jodconverter:jodconverter-core:jar:3.0-beta-4-xwiki-20110822, >> org.restlet.jse:org.restlet:jar:2.0.11, >> org.restlet.jee:org.restlet.ext.servlet:jar:2.0.11, >> org.restlet.jse:org.restlet.ext.jaxrs:jar:2.0.11: Could not find artifact >> org.opensymphony.quartz:quartz:jar:1.6.5 in central ( >> http://repo.maven.apache.org/maven2) -> [Help 1] >> [ERROR] >> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e >> switch. >> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >> [ERROR] >> [ERROR] For more information about the errors and possible solutions, >> please read the following articles: >> [ERROR] [Help 1] >> http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException >> [ERROR] >> [ERROR] After correcting the problems, you can resume the build with the >> command >> [ERROR] mvn <goals> -rf :xwiki-enterprise-database-hsqldb >> >> >> Am i doing something wrong? Perhaps i have missed out a step in the build >> instructions on the wiki you linked to? Any help would be much appreciated. >> >> Cheers, >> >> Craig Innes >> _______________________________________________ >> devs mailing list >> [email protected] >> http://lists.xwiki.org/mailman/listinfo/devs >> > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

