---------- Initial header ----------- >From : "Wayne Fay" [EMAIL PROTECTED] To : "Maven Users List" users@maven.apache.org CC : Date : Mon, 30 Apr 2007 10:16:15 -0500 Subject : Re: How to load Snapshot plugins from the CLI
> I don't know why its not working for you, but here's a possible workaround... > > Make a new pom, add the snapshot repo, and add the snapshot > dependency. Run mvn package so it will download etc everything. > > Then go back to this project and try running the mvn install using the > snapshot again. And perhaps specify -o for offline, so it doesn't > attempt to look for updates. > > Wayne > Hey thanks Wayne. You were wright. When i added it to a pom of a existing project it downloaded the snapshot version. Then when i ran it from the cli and it worked. When I deleted the snapshot version out of the repository and retried it i got the same result. So on an empty repo running the plugin from the cli does not work cause it can't get resolved. But apparently on the maven site they specify that when you want to run snapshot versions from the cli you need to do something in your settings.xml but they don't specify what. they could just mean a profile with the snapshot repo defenition off course. http://maven.apache.org/guides/development/guide-testing-development-plugins.html Maybe it's a bug in Maven. I reproduced the same situation on an other pc and got the same result. Just one question the following command is OK wright or should something more ve been done. Maybe an extra param (-U or something) needs to be submitted for the snapshot plugin to be downloaded. mvn groupId:artifactId:version:goal > On 4/30/07, gc134728 <[EMAIL PROTECTED]> wrote: > > ---------- Initial header ----------- > > > > From : [EMAIL PROTECTED] > > To : "Maven Users List" users@maven.apache.org > > CC : > > Date : Mon, 30 Apr 2007 09:47:48 -0500 > > Subject : Re: How to load Snapshot plugins from the CLI > > > > > If that's your whole log, then you're not pointed to the maven SNAPSHOT > > > repo > > > for plugins. The message indicates that you haven't defined any new > > > references to the snapshot repo as indicated by the fact that only > > > "central" > > > is listed as a repo to look in and central doesn't host plugin snapshots > > > (as > > > far as I know). You'll need to define a snapshot repo pointing to > > > http://people.apache.org/maven-snapshot-repository/ in order to get the > > > (apache hosted) snapshot plugin. > > > > > > > I added a reference in a profile in my settings.xml and made it active. > > I did It like instructed on the maven website. > > So it should be available. I ran help:effective-settings and it lists the > > repository but doesn't mention it's ID which i find a bit strange but also > > another profile is declared and the ID there is also not mentioned. > > So probably normal. > > > > Anyone have any clues ? > > > > > > > > On 4/30/07, gc134728 <[EMAIL PROTECTED]> wrote: > > > > > > > > Dear maven users, > > > > > > > > I'm stuck on a problem. I want to execute a plugin from the command line > > > > but > > > > not the released version but the snapshot version. > > > > > > > > How do I do that? > > > > > > > > I added the link to the snapshot repository. No problem their. > > > > But when i execute the following command : > > > > mvn > > > > org.apache.maven.plugins:maven-install-plugin:2.2-SNAPSHOT:install-file... > > > > > > > > I get the following error : > > > > > > > > [INFO] Failed to resolve artifact. > > > > > > > > GroupId: org.apache.maven.plugins > > > > ArtifactId: maven-install-plugin > > > > Version: 2.2-SNAPSHOT > > > > > > > > Reason: Unable to download the artifact from any repository > > > > > > > > org.apache.maven.plugins:maven-install-plugin:pom:2.2-SNAPSHOT > > > > > > > > from the specified remote repositories: > > > > central (http://repo1.maven.org/maven2) > > > > > > > > What am i doing wrong? > > > > > > > > Thx for any assistance. > > > > Y. Van Steen > > > > Agfa Connectivity Engineer > > > > --- > > > > Scarlet ADSL Unlimited - Only 24,95 euro per month. > > > > Max download Speed up to 6 Mbps, download volume of 30 GB. Order now... > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > > I'm just an unfrozen caveman software developer. I don't understand your > > > strange, "modern" ways. > > > > > > > > --- > > Scarlet ADSL Unlimited - Only 24,95 euro per month. > > Max download Speed up to 6 Mbps, download volume of 30 GB. Order now... > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- Scarlet ADSL Unlimited - Only 24,95 euro per month. Max download Speed up to 6 Mbps, download volume of 30 GB. Order now... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]