It works with mvn -U Thanks, Tom
2005/11/29, Emmanuel Venisse <[EMAIL PROTECTED]>: > > it seems you have a very old version of release plugin (2.0-beta-1 ?) > > you can run mvn -U release:prepare to update it. > > if you don't want update it, you need to add connection, > developerConnection, url, tag in <scm/> in > your pom > > Emmanuel > > Tom Joad a écrit : > > C:\_eclipse\workspace\example>mvn -e release:prepare > > + Error stacktraces are turned on. > > [INFO] Scanning for projects... > > [INFO] Searching repository for plugin with prefix: 'release'. > > [INFO] > > > ---------------------------------------------------------------------------- > > [INFO] Building Example > > [INFO] task-segment: [release:prepare] (aggregator-style) > > [INFO] > > > ---------------------------------------------------------------------------- > > [INFO] [release:prepare] > > [INFO] What tag name should be used? > > 1-0-SNAPSHOT > > [INFO] Verifying there are no local modifications ... > > [INFO] What is the release version for 'fr.gouv.finances.cp:example'? > [1-0] > > 1-0-SNAPSHOT > > [INFO] > > > ---------------------------------------------------------------------------- > > [ERROR] FATAL ERROR > > [INFO] > > > ---------------------------------------------------------------------------- > > [INFO] null > > [INFO] > > > ---------------------------------------------------------------------------- > > [INFO] Trace > > java.lang.NullPointerException > > at java.util.Hashtable.put(Hashtable.java:396) > > at java.util.Properties.setProperty(Properties.java:128) > > at > > > org.apache.maven.plugins.release.helpers.ReleaseProgressTracker.addOriginalScmInfo > > (ReleaseProgressTracker.jav > > a:201) > > at > > > org.apache.maven.plugins.release.helpers.ProjectScmRewriter.rewriteScmInfo > ( > > ProjectScmRewriter.java:52) > > at > org.apache.maven.plugins.release.PrepareReleaseMojo.executeTask( > > PrepareReleaseMojo.java:184) > > at org.apache.maven.plugins.release.AbstractReleaseMojo.execute( > > AbstractReleaseMojo.java:73) > > at org.apache.maven.plugin.DefaultPluginManager.executeMojo( > > DefaultPluginManager.java:399) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( > > DefaultLifecycleExecutor.java:519) > > 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.jav > > a: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) > > [INFO] > > > ---------------------------------------------------------------------------- > > [INFO] Total time: 23 seconds > > [INFO] Finished at: Tue Nov 29 13:58:24 CET 2005 > > [INFO] Final Memory: 2M/5M > > [INFO] > > > ---------------------------------------------------------------------------- > > > > > > On my pom.xml i just define > > > > <scm> > > <developerConnection>scm:cvs:pserver:Tomjoad:[EMAIL PROTECTED] > > :/CVS/cvsas:example</developerConnection> > > <tag>1-0-SNAPSHOT</tag> > > <url/> > > </scm> > > I see tag <tag> is not used by the plugin. > > > > regards, > > Tom > > > > > > > > > > > > 2005/11/29, Emmanuel Venisse <[EMAIL PROTECTED]>: > > > >>Can you run it with -e, and send us the full stackTrace. It will be more > >>esay to find what is the > >>problem. > >> > >>Emmanuel > >> > >>Tom Joad a écrit : > >> > >>>Hello, > >>> > >>>When i perform mvn release:prepare > >>> I have a nullpointer exception directly after prompting > >>>to give tag name and release version > >>> > >>>[INFO] [release:prepare] > >>>[INFO] What tag name should be used? > >>>TEST1 > >>>[INFO] Verifying there are no local modifications ... > >>>[INFO] What is the release version for 'example'? [1-0] > >>>1-0 > >>>[INFO] > >>> > >> > > >>---------------------------------------------------------------------------- > >> > >>>[ERROR] FATAL ERROR > >>>[INFO] > >>> > >> > > >>---------------------------------------------------------------------------- > >> > >>>[INFO] null > >>>[INFO] > >>> > >> > > >>---------------------------------------------------------------------------- > >> > >>>[INFO] Trace > >>>java.lang.NullPointerException > >>> at java.util.Hashtable.put(Hashtable.java:396) > >>> > >>>probably, there is something missing somewhere but I don't know what. > >>>On the pom.xml ? > >>>Could someone help me? > >>> > >>>Thanks in advance, > >>> > >>>Tom > >>> > >> > >> > >>--------------------------------------------------------------------- > >>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] > >
