Yes, indeed. Of course, we could do the same on XWiki platform too. However, as Thomas explained to me, we would need to configure repositories directly in the xwiki-commons Parent POM (which I believe is the one from which platform and extensions depends). But since everything in Commons is pushed to Maven Central and they do not allow to add other repositories, this is a blocking point. Of course, we could also add the repositories in each platform element but it doesn't seems reasonable. For people who wants to build XWiki, it's more probable that they will consult the documentation (and see about the settings.xml). But for people who want to do simpler stuff like contributing to an extension, I think (but maybe only me!) that clone and build should work without any other constraint. The idea behind: a potential contributor that reach a problem within less than 5 minutes is likely to not contribute (at least, that's usually how I react unless I really, really want the stuff). I hope this helps to understand my point-of-view. On 10/04/2015 10:38, Marius Dumitru Florea wrote:
I don't understand the problem. The same Maven configuration that works for building the XWiki platform works for building the XWiki extensions. The configuration is documented here http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven . Are you suggesting to duplicate the repo configuration on all extensions poms?
Thanks, Marius
On Thu, Apr 9, 2015 at 5:51 PM, Jean SIMARD <[email protected]> wrote:
Hi devs,
I'm kind of annoyed that to build an extension, you need to clone it (ok, every dev can do it), launch Maven (devs can do it too) and... it breaks! It breaks because the ~/.m2/settings.xml file has not been configured.
Of course, ideal would be to push everything to Maven Central but as far as I know, there is a lot of work to do before being able to that for XWiki platform.
However, for extensions, it's another story. We could define repositories directly into the root POM of the extension.
I'm not a Maven expert, but I already tried the following who seems to work, WDYT?
----- <repositories> <repository> <id>xwiki-snapshots</id> <name>XWiki Nexus Snapshot Repository Proxy</name>
<url>http://nexus.xwiki.org/nexus/content/groups/public-snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>xwiki-releases</id> <name>XWiki Nexus Releases Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories>
<pluginRepositories> <pluginRepository> <id>xwiki-plugins-snapshots</id> <name>XWiki Nexus Plugin Snapshot Repository Proxy</name>
<url>http://nexus.xwiki.org/nexus/content/groups/public-snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>xwiki-plugins-releases</id> <name>XWiki Nexus Plugin Releases Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> -----
-- Jean Simard [email protected] Research engineer at XWiki SAS http://www.xwiki.com Committer on the XWiki.org project http://www.xwiki.org _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Jean Simard [email protected] Research engineer at XWiki SAS http://www.xwiki.com Committer on the XWiki.org project http://www.xwiki.org