Look at http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html
Have you tryed with prepareVerifyArgs ? -Darguments="-N etc..." For me works . -- Olivier -----Message d'origine----- De : Jorg Heymans [mailto:[EMAIL PROTECTED] Envoyé : lundi 29 mai 2006 12:41 À : Maven Users List Objet : Re: [m2] bug? problem with release:perform, settings not propagated I had a similar issue with the -N parameter not being passed on. I just logged an issue : http://jira.codehaus.org/browse/MRELEASE-123, feel free to add your usecase there as well. There is at least one On 5/29/06, Feniks Nator <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm getting this problem when launching release:perform using the > following command. > D:\javadev\tools\continuum-1.0.2\apps\continuum\working-directory\58>mvn > release:perform -e -s D:\javadev\tools\maven\maven- > 2.0.4\conf\settings_continuum.xml > -DconnectionUrl=scm:cvs:pserver:anonymous:@cvssrv.mycompany.com > :/export/home/cvs/myProject:myProject/common > > As you can see in the trace below, this goal also launches: [INFO] > Executing: mvn deploy site-deploy --no-plugin-updates -P > continuum,defaultprofile,continuum -DperformRelease=true Problem is > that the -s option specified at the command-line is not taken into > account. Is this intentionaly done this way, or is it a bug. It took > my quite some time to figure out why this didn't work. By renaming my > settings_continuum.xml file to settings.xml (maven's > default) > the problem was solved. So I believe this is a bug? > > > Details about the release:perform: > > + Error stacktraces are turned on. > Maven version: 2.0.4 > [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents > and Settings\Default User\.m2\plugin-registry.xml' [DEBUG] Building > Maven global-level plugin registry from: > 'D:\javadev\tools\maven\maven-2.0.4\conf\plugin-registry.xml' > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'release'. [DEBUG] > Skipping disabled repository CodehausRepoSnapshots [INFO] > org.apache.maven.plugins: checking for updates from mycompanySnapshots > [DEBUG] repository metadata for: 'org.apache.maven.plugins' could not be > found on repository: mycompanySnapshots > [INFO] org.apache.maven.plugins: checking for updates from mavenproxy > [DEBUG] repository metadata for: 'org.apache.maven.plugins' could not be > found on repository: mavenproxy > [INFO] org.apache.maven.plugins: checking for updates from central > [DEBUG] Skipping disabled repository CodehausRepoSnapshots > [INFO] org.codehaus.mojo: checking for updates from mycompanySnapshots > [DEBUG] repository metadata for: 'org.codehaus.mojo' could not be found on > repository: mycompanySnapshots > [INFO] org.codehaus.mojo: checking for updates from mavenproxy > [DEBUG] repository metadata for: 'org.codehaus.mojo' could not be found on > repository: mavenproxy > [INFO] org.codehaus.mojo: checking for updates from central > [DEBUG] Skipping disabled repository CodehausRepoSnapshots > [INFO] artifact org.apache.maven.plugins:maven-release-plugin: checking > for > updates from mycompanySnapshots > [DEBUG] repository metadata for: 'artifact > org.apache.maven.plugins:maven-release-plugin' could not be found on > repository: mycompanySnapshots > [INFO] artifact org.apache.maven.plugins:maven-release-plugin: checking > for > updates from mavenproxy > [DEBUG] repository metadata for: 'artifact > org.apache.maven.plugins:maven-release-plugin' could not be found on > repository: mavenproxy > [INFO] artifact org.apache.maven.plugins:maven-release-plugin: checking > for > updates from central > [DEBUG] maven-release-plugin: resolved to version 2.0-beta-4 from > repository > central > [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1for > project: null:maven-release-plugin:maven-plugin:2.0-beta-4 from the > repository. > [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for > project: > org.apache.maven.plugins:maven-plugins:pom:1 from the repository. > [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: > org.apache.maven:maven-parent:pom:1 from the repository. > [INFO] > > ---------------------------------------------------------------------- > ------ > [INFO] Building myProject Common > [INFO] task-segment: [release:perform] (aggregator-style) > [INFO] > > ---------------------------------------------------------------------- > ------ > [DEBUG] > > org.apache.maven.plugins:maven-release-plugin:maven-plugin:2.0-beta-4: > runtime > (selected > for runtime) > ... > -- DEBUG about all plugin versions -- > ... > [DEBUG] Configuring mojo ' > org.apache.maven.plugins:maven-release-plugin:2.0-beta-4:perform' --> > [DEBUG] (f) basedir = D:\javadev\tools\continuum- > 1.0.2\apps\continuum\working-directory\58 > [DEBUG] (f) connectionUrl = > scm:cvs:pserver:anonymous:@cvssrv.mycompany.com > :/export/home/cvs/myProject:myProject/common > [DEBUG] (f) project = [EMAIL PROTECTED] > [DEBUG] (f) settings = [EMAIL PROTECTED] > [DEBUG] (f) useReleaseProfile = true > [DEBUG] (f) workingDirectory = D:\javadev\tools\continuum- > 1.0.2\apps\continuum\working-directory\58\target\checkout > [DEBUG] -- end configuration -- > [INFO] [release:perform] > [INFO] Checking out the project to perform the release ... > [DEBUG] release.properties not found - using empty properties > [DEBUG] cvsRoot: : > pserver:[EMAIL PROTECTED]:2401/export/home/cvs/myProject > [DEBUG] passFile: C:\Documents and Settings\Default User\.cvspass > [DEBUG] cvsroot : > > pserver:[EMAIL PROTECTED]:2401/export/home/cvs/myProjecta > lready > exist in C:\Documents and Settings\Default User\.cvspass. SKIPPED. > [INFO] Executing: cvs -z3 -f -d > :pserver:[EMAIL PROTECTED]:/export/home/cvs/myProject > -q checkout -d checkout myProject/common > [INFO] Working directory: D:\javadev\tools\continuum- > 1.0.2\apps\continuum\working-directory\58\target > [DEBUG] U checkout/.checkstyle > [DEBUG] U checkout/.classpath > [DEBUG] U checkout/.project > [DEBUG] U checkout/pom.xml > .... > -- checking out all source files here-- > .... > [DEBUG] U checkout/src/test/resources/pom.xml > [INFO] Executing: mvn deploy site-deploy --no-plugin-updates -P > continuum,defaultprofile,continuum -DperformRelease=true > [INFO] Scanning for projects... > [INFO] > > ------------------------------------------------------------------------ ---- > [INFO] Building myProject Common > [INFO] task-segment: [deploy, site-deploy] > [INFO] > > ------------------------------------------------------------------------ ---- > [INFO] artifact > org.apache.maven.plugins:maven-resources-plugin:checking for updates > from central > [WARNING] repository metadata for: 'artifact > org.apache.maven.plugins:maven-resources-plugin' could not be > retrieved from > repository: central due to an error: Error transferring file > [INFO] Repository 'central' will be blacklisted > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] The plugin > 'org.apache.maven.plugins:maven-resources-plugin' > does > not exist or no valid version could be found > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 21 seconds > [INFO] Finished at: Mon May 29 08:55:40 CEST 2006 > [INFO] Final Memory: 1M/3M > [INFO] > ------------------------------------------------------------------------ > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error executing Maven: Maven execution failed, exit code: '1' > > [INFO] > ---------------------------------------------------------------------- > -- > [DEBUG] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Error executing > Maven: Maven execution failed, exit code: '1' > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( > DefaultLifecycleExecutor.java:559) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa l( > DefaultLifecycleExecutor.java:488) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( > DefaultLifecycleExecutor.java:458) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand > leFailures > (DefaultLifecycleExecutor.java:306) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( > DefaultLifecycleExecutor.java:219) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( > DefaultLifecycleExecutor.java:140) > 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:256) > 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:324) > 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: Error executing > Maven: Maven execution failed, exit code: '1' > at org.apache.maven.plugins.release.PerformReleaseMojo.execute( > PerformReleaseMojo.java:95) > at org.apache.maven.plugin.DefaultPluginManager.executeMojo( > DefaultPluginManager.java:412) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( > DefaultLifecycleExecutor.java:534) > ... 16 more > Caused by: org.apache.maven.plugins.release.ReleaseExecutionException: > Error > executing Maven: Maven execution failed, exit code: '1' > at org.apache.maven.plugins.release.DefaultReleaseManager.perform( > DefaultReleaseManager.java:250) > at org.apache.maven.plugins.release.PerformReleaseMojo.execute( > PerformReleaseMojo.java:91) > ... 18 more > Caused by: org.apache.maven.plugins.release.exec.MavenExecutorException: > Maven execution failed, exit code: '1' > at > org.apache.maven.plugins.release.exec.ForkedMavenExecutor.executeGoals( > ForkedMavenExecutor.java:95) > at org.apache.maven.plugins.release.DefaultReleaseManager.perform( > DefaultReleaseManager.java:245) > ... 19 more > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 45 seconds > [INFO] Finished at: Mon May 29 08:55:40 CEST 2006 > [INFO] Final Memory: 4M/8M > [INFO] ------------------------------------------------------ > > This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. ********************************************************************** Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
