From: Lachlan D. <lac...@gm...> - 2011-08-16 18:25:14
|
(Note to self - run the command before hitting 'send' :) On 16/08/2011, at 5:40 PM, Marius Soutier wrote: > Thanks, I didn't know these details, I normally use build tools like sbt and leiningen that abstract Maven away (and now I know why they do). That said, it just doesn't work, the URLs provided seem to be wrong. > > For example, running mvn org.objectstyle.woproject.maven2:wobootstrap:2.0.17:install I get the following output: > > [INFO] Scanning for projects... > Downloading: http://maven.wocommunity.org/content/groups/public/org/objectstyle/woproject/maven2/wobootstrap/2.0.17/wobootstrap-2.0.17.pom > [INFO] Unable to find resource 'org.objectstyle.woproject.maven2:wobootstrap:pom:2.0.17' in repository wocommunity.releases (http://maven.wocommunity.org/content/groups/public) > <...> > > - Marius Yeah, woops. I didn't finish the quick tut before hitting send and it's missing a little nugget of info. So allow me to append and edit some more info... (below) > On 14.08.2011, at 00:27, Lachlan Deck wrote: > >> right, so... quick guide to maven name spaces... >> (I'm updating the wiki to reflect this stuff) >> >> the quick start guide[1] gives this instruction for taking a WO install and copying the relevant jars for maven use: >> $ mvn wobootstrap:install >> >> This assumes that you've installed (or configured) your ~/.m2/settings.xml file which has, importantly, the following pluginGroup and some non-official maven repositories defined. >> <pluginGroups> >> <pluginGroup>org.objectstyle.woproject.maven2</pluginGroup> >> </pluginGroups> >> >> Specifically the above pluginGroup saves you from typing a more complete identifier for the wobootstrap plugin: >> # mvn <groupId>:<artifactId>:<goal> $ mvn org.objectstyle.woproject.maven2:maven-wobootstrap-plugin:install Notice that the actual artifactId of wobootstrap is maven-wobootstrap-plugin. Similarly, people using jetty often type jetty:run instead of org.mortbay.jetty:jetty-maven-plugin:run But when you start specifying a complete identifier you'll need the full name. >> But, this too is not it's full identifier. It's missing the version to use. So depending on which version of maven you're using will determine how it resolves the version to use. For maven2 I believe it finds the latest snapshot (which is dumb). Hence that's why you were getting an error for 2.2.1-SNAPSHOT and why I suggested upgrading to maven 3. >> >> Maven 3 uses the latest release (as is to be expected). If, however, the latest release is not what you want, then the following is what you're after, for example: >> # mvn <groupId>:<artifactId>:<version>:<goal> $ mvn org.objectstyle.woproject.maven2:maven-wobootstrap-plugin:2.0.17:install >> >> <wrong info snipped> >> >> Lachlan Deck >> lac...@gm... >> >> [1] http://wiki.objectstyle.org/confluence/display/WOL/Quick+Start |