I believe I am overwriting the pom tagBase with the command line for the tagBase!
On 3/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I can not get the *releases:prepare* command to work. > I am using maven 2.0.2. Subversion 1.2.4. > Also, it seems that the release:prepare is checkin the generated pom.xmlto my > trunk. Is that suppose to happen? > > I can do a command line for the svn copy. > > mvn -e release:prepare - > Dproject.scm.developerConnection=scm:svn:svn://css-paps/tmpSetup/projectName/trunk > -DtagBase=svn://css-paps/tmpSetup/projectName/tags -Dusername=UN > -Dpassword=UN_PW > > > + Error stacktraces are turned on. > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'release'. > [INFO] > ---------------------------------------------------------------------------- > > [INFO] Building Unnamed - my-proj:TestMaven:jar:2.3-SNAPSHOT > [INFO] task-segment: [release:prepare] (aggregator-style) > [INFO] > ---------------------------------------------------------------------------- > [INFO] [release:prepare] > [INFO] What tag name should be used? > RB_TAGS1_0 > [INFO] Verifying there are no local modifications ... > [INFO] Checking lineage for snapshots ... > [INFO] Checking dependencies for snapshots ... > [INFO] Checking plugins for snapshots ... > [INFO] What is the release version for 'my-proj:TestMaven'? [2.3] > > [INFO] Checking in modified POMs > [INFO] Tagging release with the label RB_TAGS1_0. > Provider message: > The svn tag command failed. > *Command output: > svn: Cannot copy path '.' into its own child > 'scm:svn:svn:/css-paps/tmpSetup/projectName/tags/RB_TAGS1_0' * > > [INFO] > ---------------------------------------------------------------------------- > [ERROR] BUILD ERROR > [INFO] > ---------------------------------------------------------------------------- > [INFO] An error is occurred in the tag process. > > Embedded error: Error! > [INFO] > ---------------------------------------------------------------------------- > [INFO] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: An error is > occurred in the tag process. > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( > DefaultLifecycleExecutor.java:556) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal( > DefaultLifecycleExecutor.java :485) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal > (DefaultLifecycleExecutor.java:455) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures > (DefaultLifecycleExecutor.java :303) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( > DefaultLifecycleExecutor.java:216) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( > DefaultLifecycleExecutor.java :139) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > 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.MojoExecutionException : An error is > occurred in the tag process. > at org.apache.maven.plugins.release.PrepareReleaseMojo.tagRelease( > PrepareReleaseMojo.java:1414) > at org.apache.maven.plugins.release.PrepareReleaseMojo.execute ( > PrepareReleaseMojo.java:246) > at org.apache.maven.plugin.DefaultPluginManager.executeMojo( > DefaultPluginManager.java:415) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( > DefaultLifecycleExecutor.java :531) > ... 16 more > Caused by: org.apache.maven.scm.ScmException: Error! > at org.apache.maven.plugins.release.helpers.ScmHelper.checkResult( > ScmHelper.java:124) > at org.apache.maven.plugins.release.helpers.ScmHelper.tag ( > ScmHelper.java:226) > at org.apache.maven.plugins.release.PrepareReleaseMojo.tagRelease( > PrepareReleaseMojo.java:1410) > ... 19 more > [INFO] > ---------------------------------------------------------------------------- > > [INFO] Total time: 15 seconds > [INFO] Finished at: Thu Mar 09 09:37:01 CST 2006 > [INFO] Final Memory: 3M/126M > [INFO] > ---------------------------------------------------------------------------- > > *HERE IS MY ORIGINAL POM* > > <?xml version="1.0" encoding="UTF-8"?><project> > <modelVersion>4.0.0</modelVersion> > <groupId>my-proj</groupId> > <artifactId>TestMaven</artifactId> > <version>2.3-SNAPSHOT</version> > <description></description> > <packaging>jar</packaging> > <scm> > > <connection>scm:svn:svn://css-paps/tmpSetup/projectName/trunk</connection> > > <developerConnection>scm:svn:svn://css-paps/tmpSetup/projectName/trunk</developerConnection> > </scm> > <dependencies> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>3.8.1</version> > </dependency> > </dependencies>^M > <build>^M > <pluginManagement> > <plugins> > <plugin> > <artifactId>maven-release-plugin</artifactId> > <configuration> > > <tagBase>scm:svn:svn://css-paps/tmpSetup/projectName/tags</tagBase> > </configuration> > </plugin> > </plugins> > </pluginManagement> > </build> > </project> >
