You can use the non-snapshots (fix the versions in the pom, or remove your snapshot builds from the repository) for those particular plugins.
Perhaps worth addinga feature request to allow snapshots though. - Brett On 10/15/05, Arik Kfir <[EMAIL PROTECTED]> wrote: > Hi, > > I'm building m2 from svn (yeah I know...but I'm testing the release > plugin) but when I run "m2 release:prepare" on my project (using the > built m2 from svn), I get: > > [ERROR] BUILD FAILURE > [INFO] > ---------------------------------------------------------------------------- > [INFO] Resolved version of plugin is a snapshot. Please release this > plugin before releasing this project. > > GroupId: org.apache.maven.plugins > ArtifactId: maven-compiler-plugin > Resolved Version: 2.0-beta-2-SNAPSHOT > > I can see the logic here, that released poms shouldn't rely on > snapshots (build reproducability) but, while developing, is there an > easy way to disable this (without tinkering with the code, that > is...)? > > Thanks, > Arik. > > > > Here's the full output with "-e": > > [EMAIL PROTECTED]:~/projects/template> m2 -e release:prepare > + Error stacktraces are turned on. > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'release'. > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building Template POM > [INFO] task-segment: [release:prepare] (aggregator-style) > [INFO] > ---------------------------------------------------------------------------- > [INFO] [release:prepare] > [INFO] > ---------------------------------------------------------------------------- > [ERROR] BUILD FAILURE > [INFO] > ---------------------------------------------------------------------------- > [INFO] Resolved version of plugin is a snapshot. Please release this > plugin before releasing this project. > > GroupId: org.apache.maven.plugins > ArtifactId: maven-compiler-plugin > Resolved Version: 2.0-beta-2-SNAPSHOT > > > [INFO] > ---------------------------------------------------------------------------- > [INFO] Trace > org.apache.maven.BuildFailureException: Resolved version of plugin is > a snapshot. Please release this plugin before releasing this project. > > GroupId: org.apache.maven.plugins > ArtifactId: maven-compiler-plugin > Resolved Version: 2.0-beta-2-SNAPSHOT > > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:540) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:482) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:452) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:214) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.apache.maven.plugin.MojoFailureException: Resolved > version of plugin is a snapshot. Please release this plugin before > releasing this project. > > GroupId: org.apache.maven.plugins > ArtifactId: maven-compiler-plugin > Resolved Version: 2.0-beta-2-SNAPSHOT > > > at > org.apache.maven.plugins.release.PrepareReleaseMojo.generateReleasePoms(PrepareReleaseMojo.java:960) > at > org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:234) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519) > ... 16 more > [INFO] > ---------------------------------------------------------------------------- > [INFO] Total time: 1 second > [INFO] Finished at: Sat Oct 15 12:54:22 IST 2005 > [INFO] Final Memory: 2M/4M > [INFO] > ---------------------------------------------------------------------------- > > --------------------------------------------------------------------- > 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]
