[maven-scm-plugin] Why does scm:update fail on a branch?
I am using the maven-scm-plugin with git. I find that the following succeeds: mvn -DscmVersion=abc -DscmVersionType=branch scm:bootstrap whereas the following, seemingly identical except for the command fails: mvn -X -DscmVersion=rpm -DscmVersionType=branch scm:update [ERROR] Provider message: [ERROR] The git-log command failed. [ERROR] Command output: [ERROR] fatal: ambiguous argument 'rpm': unknown revision or path not in the working tree. Use '--' to separate paths from revisions This looks like a bug in the plugin, but I don't really know. Why would the same specification fail for update but succeed for bootstrap? Other commands, such as scm:diff, scm:status, smc:checkout also work. Is this a bug and is there a workaround?
RE: [maven-scm-plugin] Why does scm:update fail on a branch?
The error message below should have been: [ERROR] fatal: ambiguous argument 'abc': unknown revision or path not in the working tree. - Original Message - Subject: [maven-scm-plugin] Why does scm:update fail on a branch? From: sco...@javactivity.org Date: 12/8/15 9:33 am To: users@maven.apache.org I am using the maven-scm-plugin with git. I find that the following succeeds: mvn -DscmVersion=abc -DscmVersionType=branch scm:bootstrap whereas the following, seemingly identical except for the command fails: mvn -X -DscmVersion=rpm -DscmVersionType=branch scm:update [ERROR] Provider message: [ERROR] The git-log command failed. [ERROR] Command output: [ERROR] fatal: ambiguous argument 'rpm': unknown revision or path not in the working tree. Use '--' to separate paths from revisions This looks like a bug in the plugin, but I don't really know. Why would the same specification fail for update but succeed for bootstrap? Other commands, such as scm:diff, scm:status, smc:checkout also work. Is this a bug and is there a workaround?
[ANN] Apache Maven SCM Plugin 1.9 Released
The Apache Maven team is pleased to announce the release of the Apache Maven SCM Plugin, version 1.9 The SCM Plugin offers vendor independent access to common scm commands by offering a set of command mappings for the configured scm. http://maven.apache.org/scm/maven-scm-plugin/ You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.9/version /plugin Release Notes - Maven SCM Plugin - Version 1.9 Bug [SCM-435] - can not work with local copy [SCM-503] - create a native Java GIT provider using JGit [SCM-650] - HgChangeLogConsumer generates phantom 'null' changeset at the end [SCM-681] - Git blame fails to report line authors on windows with core.autocrlf = true [SCM-702] - Incorrect documentation for parameter skip of goal check-local-modification of the plugin [SCM-705] - Git pushes tag ambigiously [SCM-709] - REGRESSION: git status doesn't work if repository root is not the working directory [SCM-733] - Bugfixes to mercurial changelog [SCM-737] - can't build CVS provider from source release zip file due to missing CVS test repository Improvement [SCM-487] - support --parents option for svn copy (tag commands) (svn 1.5 required) [SCM-565] - scm:validate should not fork the build [SCM-636] - Provide documentation about connection and developerConnection [SCM-736] - update plugin to use plugin-tools java 5 annotations New Feature [SCM-727] - integrate scm-provider based on jgit Enjoy, -The Apache Maven team -- Dominik Bartholdi
Re: Maven SCM plugin fails to do a scm:update after a scm:checkout with strange error message Command failed.The git-log command failed.
Hi, Don't you have to use the https or ssh transport for github write access? The git protocol is read-only on github. Anyway you're right, the error message is a bit confusing. ;) Andreas Am Donnerstag, 28. Februar 2013 schrieb seba.wag...@gmail.com : Hi, I have configured a Maven project to checkout a Git project using: scm developerConnectionscm:git:g...@git.github.com: example/myproject.git/developerConnection /scm Using: mvn scm:checkout The project checks out fine into target/checkout I would expect if do a scm:update it would simply work, cause scm:checkout works. But it doesn't. By running with the -e option (mvn -e scm:update) to get the full stack trace, it will show some obscure error message: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-plugin:1.8.1:update (default-cli) on project mysampleproject: Command failed.The git-log command failed. - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-scm-plugin:1.8.1:update (default-cli) on project mysampleproject: Command failed.The git-log command failed. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Command failed.The git-log command failed. at org.apache.maven.scm.plugin.AbstractScmMojo.checkResult(AbstractScmMojo.java:439) at org.apache.maven.scm.plugin.UpdateMojo.execute(UpdateMojo.java:93) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Now what should this error tell me ? git log of course works. If I cd to the directory that Maven did checkout using scm:checkout, I can perform git log and will get the correct output. I have found the source code that produces the the Maven error: http://maven.apache.org/scm/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/xref/org/apache/maven/scm/provider/git/gitexe/command/update/GitUpdateCommand.html The git-log command failed. :) But it does not really tell me why git-log failed or what I could do to resolve it. Any ideas about how I can further debug or resolve that issue? Sebastian -- Sebastian Wagner https://twitter.com/#!/dead_lock http://www.webbase-design.de http://www.wagner-sebastian.com seba.wag...@gmail.com javascript:;
Re: Maven SCM plugin fails to do a scm:update after a scm:checkout with strange error message Command failed.The git-log command failed.
Hi Andreas, sorry its actually a private Git repo, I just replaced/obfuscated the domain name Sebastian Am 01.03.2013 20:56 schrieb Andreas Gudian andreas.gud...@gmail.com: Hi, Don't you have to use the https or ssh transport for github write access? The git protocol is read-only on github. Anyway you're right, the error message is a bit confusing. ;) Andreas Am Donnerstag, 28. Februar 2013 schrieb seba.wag...@gmail.com : Hi, I have configured a Maven project to checkout a Git project using: scm developerConnectionscm:git:g...@git.github.com: example/myproject.git/developerConnection /scm Using: mvn scm:checkout The project checks out fine into target/checkout I would expect if do a scm:update it would simply work, cause scm:checkout works. But it doesn't. By running with the -e option (mvn -e scm:update) to get the full stack trace, it will show some obscure error message: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-plugin:1.8.1:update (default-cli) on project mysampleproject: Command failed.The git-log command failed. - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-scm-plugin:1.8.1:update (default-cli) on project mysampleproject: Command failed.The git-log command failed. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Command failed.The git-log command failed. at org.apache.maven.scm.plugin.AbstractScmMojo.checkResult(AbstractScmMojo.java:439) at org.apache.maven.scm.plugin.UpdateMojo.execute(UpdateMojo.java:93) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Now what should this error tell me ? git log of course works. If I cd to the directory that Maven did checkout using scm:checkout, I can perform git log and will get the correct output. I have found the source code that produces the the Maven error: http://maven.apache.org/scm/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/xref/org/apache/maven/scm/provider/git/gitexe/command/update/GitUpdateCommand.html The git-log command failed. :) But it does not really tell me why git-log failed or what I could do to resolve it. Any ideas about how I can further debug or resolve that issue? Sebastian -- Sebastian Wagner https://twitter.com/#!/dead_lock http://www.webbase-design.de http://www.wagner-sebastian.com seba.wag...@gmail.com javascript:;
Help with scm plugin
Hi, I am trying to perform checkout using the maven-scm-plugin (Using SVN), but I keep getting: (Checkout branch) on project installation: Cannot run checkout command : Can't load the scm provider. No such provider: 's'. - [Help 1] Is this error familiar? I did manage to create a branch, just the checkout seems to cause issues -- View this message in context: http://maven.40175.n5.nabble.com/Help-with-scm-plugin-tp5729486.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Help with scm plugin
(Checkout branch) on project installation: Cannot run checkout command : Can't load the scm provider. No such provider: 's'. - [Help 1] Looks like the URL might be wrong. What does it look like? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Exporting Individual Files with the SCM Plugin
I agree it's a bit confusing as most of scm doesn't support includes/excludes for checkout/export operations :-( Maybe we could mimic that and deleting files/directories after the whole checkout/export. Again the reason of seeing that in the doc is because this field is in AbstractScmMojo class but used only for commit operations. 2012/9/28 Christopher Gardner chris.r.gard...@gmail.com: I am curious why scm export supports the includes and excludes tags. On Sep 27, 2012 6:32 PM, Olivier Lamy ol...@apache.org wrote: 2012/9/28 Olivier Lamy ol...@apache.org: 2012/9/28 Christopher Gardner chris.r.gard...@gmail.com: I'd like to export a few jar files from an svn location. These jar files are developed by other developers at my company and have no maven support, and probably never will. sad :-) I have the following entry in my pom: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.8/version configuration usernamemyusername/username passwordmypassword/password checkoutDirectorytarget/checkout/checkoutDirectory connectionTypeconnection/connectionType connectionUrlscm:svn:http://machine/svn/project/connectionUrl includesfoo.jar,bar.jar/includes /configuration goals goalexport/goal /goals /plugin That won't work (in fact includes is in parent class so this parameter is listed in this mojo). Why because svn cli doesn't support that :-) Maybe we could do that tru svnkit with the svnjava implementation (http://code.google.com/a/apache-extras.org/p/maven-scm-provider-svnjava/) Just an idea as I didn't check the svnkit api Maybe you can use a http get to the svn path ? the plugin http://mojo.codehaus.org/wagon-maven-plugin/ can help for that. It appears that the includes tag is ignored, as the entire project directory is being exported. Any ideas as to what I'm doing wrong? I'm using this version of maven: Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500) Thanks in advance. -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Exporting Individual Files with the SCM Plugin
On 27 Sep 2012, at 23:14, Christopher Gardner chris.r.gard...@gmail.com wrote: I'd like to export a few jar files from an svn location. These jar files are developed by other developers at my company and have no maven support, and probably never will. Import the jars into your own maven repository, keeping your own copy. Configure your build as you normally would. Trying to bend your maven pom into something ugly goes against maven, rather keep things as clean as possible. If they don't version their artifacts, version them for them, but make it crystal clear where the artifacts came from. You don't want to rely on someone else's system that may or may not be available at a future date, and suddenly you're panicking because your code no longer builds. Regards, Graham -- - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Exporting Individual Files with the SCM Plugin
Philosophically I agree with your suggestion, but I am curious why I'm having trouble with the includes tag. Shouldn't it just work? On Sep 27, 2012 6:25 PM, Graham Leggett minf...@sharp.fm wrote: On 27 Sep 2012, at 23:14, Christopher Gardner chris.r.gard...@gmail.com wrote: I'd like to export a few jar files from an svn location. These jar files are developed by other developers at my company and have no maven support, and probably never will. Import the jars into your own maven repository, keeping your own copy. Configure your build as you normally would. Trying to bend your maven pom into something ugly goes against maven, rather keep things as clean as possible. If they don't version their artifacts, version them for them, but make it crystal clear where the artifacts came from. You don't want to rely on someone else's system that may or may not be available at a future date, and suddenly you're panicking because your code no longer builds. Regards, Graham -- - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Exporting Individual Files with the SCM Plugin
2012/9/28 Christopher Gardner chris.r.gard...@gmail.com: I'd like to export a few jar files from an svn location. These jar files are developed by other developers at my company and have no maven support, and probably never will. sad :-) I have the following entry in my pom: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.8/version configuration usernamemyusername/username passwordmypassword/password checkoutDirectorytarget/checkout/checkoutDirectory connectionTypeconnection/connectionType connectionUrlscm:svn:http://machine/svn/project/connectionUrl includesfoo.jar,bar.jar/includes /configuration goals goalexport/goal /goals /plugin That won't work (in fact includes is in parent class so this parameter is listed in this mojo). Why because svn cli doesn't support that :-) Maybe you can use a http get to the svn path ? the plugin http://mojo.codehaus.org/wagon-maven-plugin/ can help for that. It appears that the includes tag is ignored, as the entire project directory is being exported. Any ideas as to what I'm doing wrong? I'm using this version of maven: Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500) Thanks in advance. -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Exporting Individual Files with the SCM Plugin
2012/9/28 Olivier Lamy ol...@apache.org: 2012/9/28 Christopher Gardner chris.r.gard...@gmail.com: I'd like to export a few jar files from an svn location. These jar files are developed by other developers at my company and have no maven support, and probably never will. sad :-) I have the following entry in my pom: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.8/version configuration usernamemyusername/username passwordmypassword/password checkoutDirectorytarget/checkout/checkoutDirectory connectionTypeconnection/connectionType connectionUrlscm:svn:http://machine/svn/project/connectionUrl includesfoo.jar,bar.jar/includes /configuration goals goalexport/goal /goals /plugin That won't work (in fact includes is in parent class so this parameter is listed in this mojo). Why because svn cli doesn't support that :-) Maybe we could do that tru svnkit with the svnjava implementation (http://code.google.com/a/apache-extras.org/p/maven-scm-provider-svnjava/) Just an idea as I didn't check the svnkit api Maybe you can use a http get to the svn path ? the plugin http://mojo.codehaus.org/wagon-maven-plugin/ can help for that. It appears that the includes tag is ignored, as the entire project directory is being exported. Any ideas as to what I'm doing wrong? I'm using this version of maven: Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500) Thanks in advance. -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Exporting Individual Files with the SCM Plugin
I am curious why scm export supports the includes and excludes tags. On Sep 27, 2012 6:32 PM, Olivier Lamy ol...@apache.org wrote: 2012/9/28 Olivier Lamy ol...@apache.org: 2012/9/28 Christopher Gardner chris.r.gard...@gmail.com: I'd like to export a few jar files from an svn location. These jar files are developed by other developers at my company and have no maven support, and probably never will. sad :-) I have the following entry in my pom: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.8/version configuration usernamemyusername/username passwordmypassword/password checkoutDirectorytarget/checkout/checkoutDirectory connectionTypeconnection/connectionType connectionUrlscm:svn:http://machine/svn/project/connectionUrl includesfoo.jar,bar.jar/includes /configuration goals goalexport/goal /goals /plugin That won't work (in fact includes is in parent class so this parameter is listed in this mojo). Why because svn cli doesn't support that :-) Maybe we could do that tru svnkit with the svnjava implementation (http://code.google.com/a/apache-extras.org/p/maven-scm-provider-svnjava/) Just an idea as I didn't check the svnkit api Maybe you can use a http get to the svn path ? the plugin http://mojo.codehaus.org/wagon-maven-plugin/ can help for that. It appears that the includes tag is ignored, as the entire project directory is being exported. Any ideas as to what I'm doing wrong? I'm using this version of maven: Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500) Thanks in advance. -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-scm-plugin example/help
Hi, If you want to release your project (i.e creating a tag then deploying the version) you must have a look at the release plugin which will will do the stuff for you. 2012/5/2 Billy Newman newman...@gmail.com: I was looking at possibly using the maven-scm-plugin to tag my releases in scm. A couple quick questions. Does anyone have a quick example of creating a tag from an scm trunk inside of a maven build, maybe a profile? What about only running the scm:tag goal if the version I am deploying is not a SNAPSHOT. IE I don't want to tag my snapshots, only releases deployed that are not SNAPSHOTs. Thanks! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-scm-plugin example/help
Release plugin looks ok but thinking scm plugin might work a little better in my dev environment. Anyone know if the scm plugin can do what I want (see first post)? Thanks. On May 2, 2012, at 1:35 AM, Olivier Lamy ol...@apache.org wrote: Hi, If you want to release your project (i.e creating a tag then deploying the version) you must have a look at the release plugin which will will do the stuff for you. 2012/5/2 Billy Newman newman...@gmail.com: I was looking at possibly using the maven-scm-plugin to tag my releases in scm. A couple quick questions. Does anyone have a quick example of creating a tag from an scm trunk inside of a maven build, maybe a profile? What about only running the scm:tag goal if the version I am deploying is not a SNAPSHOT. IE I don't want to tag my snapshots, only releases deployed that are not SNAPSHOTs. Thanks! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-scm-plugin example/help
The option could be having a profile which call the tag goal of the maven scm plugin Something like plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.7/version executions execution goals goaltag/goal /goals /execution /executions /plugin But honestly, I have never tested that :-) 2012/5/2 Billy Newman newman...@gmail.com: Release plugin looks ok but thinking scm plugin might work a little better in my dev environment. Anyone know if the scm plugin can do what I want (see first post)? Thanks. On May 2, 2012, at 1:35 AM, Olivier Lamy ol...@apache.org wrote: Hi, If you want to release your project (i.e creating a tag then deploying the version) you must have a look at the release plugin which will will do the stuff for you. 2012/5/2 Billy Newman newman...@gmail.com: I was looking at possibly using the maven-scm-plugin to tag my releases in scm. A couple quick questions. Does anyone have a quick example of creating a tag from an scm trunk inside of a maven build, maybe a profile? What about only running the scm:tag goal if the version I am deploying is not a SNAPSHOT. IE I don't want to tag my snapshots, only releases deployed that are not SNAPSHOTs. Thanks! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-scm-plugin example/help
Thanks Olivier, I will give that a go. I would like to only tag if the version is not a SNAPSHOT, not sure if I can do that or not. I.E. pretty sure that I will not be able to control flow like that. Basically I have a jenkins job that runs my 'deploy'. We developers update the code they can just run the jenkins job to deploy a release to our local repository (SNAPSHOT or otherwise). I would like that job to automatically create a tag when a developer runs the job with a version that is not a SNAPSHOT. On Wed, May 2, 2012 at 10:26 AM, Olivier Lamy ol...@apache.org wrote: The option could be having a profile which call the tag goal of the maven scm plugin Something like plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.7/version executions execution goals goaltag/goal /goals /execution /executions /plugin But honestly, I have never tested that :-) 2012/5/2 Billy Newman newman...@gmail.com: Release plugin looks ok but thinking scm plugin might work a little better in my dev environment. Anyone know if the scm plugin can do what I want (see first post)? Thanks. On May 2, 2012, at 1:35 AM, Olivier Lamy ol...@apache.org wrote: Hi, If you want to release your project (i.e creating a tag then deploying the version) you must have a look at the release plugin which will will do the stuff for you. 2012/5/2 Billy Newman newman...@gmail.com: I was looking at possibly using the maven-scm-plugin to tag my releases in scm. A couple quick questions. Does anyone have a quick example of creating a tag from an scm trunk inside of a maven build, maybe a profile? What about only running the scm:tag goal if the version I am deploying is not a SNAPSHOT. IE I don't want to tag my snapshots, only releases deployed that are not SNAPSHOTs. Thanks! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven-scm-plugin example/help
I was looking at possibly using the maven-scm-plugin to tag my releases in scm. A couple quick questions. Does anyone have a quick example of creating a tag from an scm trunk inside of a maven build, maybe a profile? What about only running the scm:tag goal if the version I am deploying is not a SNAPSHOT. IE I don't want to tag my snapshots, only releases deployed that are not SNAPSHOTs. Thanks! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How scm plugin encyrpts cvs password ?
Greetings, I got a cvs authentification problem with the following items : Used elements : cvsnt maven 3 scm 1.6 Windows 2003 Server Procedure follows (No .cvspass in my USER_DIR) : . 1. I run a mvn --encrypt password password and copy paste the result in my scmconnection tags. 2. I run scm:status - Authentification fails, .cvspass is created with a wrong password. 3. I login to cvs with my cvsnt client and retrieve the password from the registry. 4. I copy paste the password from the registry into the csvpass, in place of the one generated by the Maven plugin. 5. I run scm:status - Authentification succeeds. .cvspass still contains the password (of course, since a mvn -X shows me that file creation was skipped) 6. I change the user/password in the scm tag, putting invalid ones : I run scm:status - Authentification succeeds. .cvspass still contains the password : my credentials were ignored since contained in cvspass. My questions : Why is maven unable to generate a proper cvs encrypted password and store it in the .cvspass ? What did I miss ? I suppose the credentials contained in the pom only serve as fallback if no .cvspass exist (given that the Source control used is CVS). Is it correct ? Thank you for your help !
Re: SCM Plugin - How to Set Up for Release Using Mercurial
Hi Again, I've set up a Hudson job to do the release but it fails with this error: [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s) [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on project TestJar: Cannot prepare the release because you have local modifications : [.maven/repo/ca/shaw/eng/nms/nms-super-pom/1.0/_maven.repositories:unknown] [.maven/repo/ca/shaw/eng/nms/nms-super-pom/1.0/nms-super-pom-1.0.pom:unknown] [.maven/repo/ca/shaw/eng/nms/nms-super-pom/1.0/nms-super-pom-1.0.pom.sha1:unknown] ... many, many more lines of this nature . What local modifications is Maven encountering? Since the project is being pulled from the repo, the only change I can think of is the update to the pom file (removing SNAPSHOT from the version). But Maven shouldn't be complaining about this since it made the change itself, no? - Original Message - From: sdoca sdoca sd...@shaw.ca Date: Thursday, January 12, 2012 5:19 pm Subject: SCM Plugin - How to Set Up for Release Using Mercurial To: users@maven.apache.org Hi, I am attempting to do a release via the Maven release plugin and am having issues with the SCM config. I am using Eclipse with m2eclipse installed. We use Mercurial and on my machine (Win7) I have TortoiseHg installed. I have a test project that creates a jar. We make use of a super pom for our projects, so the test project pom does as well. I have set up this in the super pom: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin version1.6/version configuration connectionTypeconnection/connectionType /configuration /plugin /plugins /build My test project pom looks like this: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion groupIdmy.group/groupId artifactIdTestJar version1.0-SNAPSHOT/version parent groupIdmy.group/groupId artifactIdsuper-pom version1.0/version /parent scm connectionscm:hg:ssh://our.scm.server:22//path/to/TestJarProject/connection /scm /project Note that we ssh to our SCM server. In my settings.xml file, I added this: servers ... server idour.scm.server/id usernameusername/username passwordpassword/password /server /servers When I run release:prepare release:perform, a TortoisePlink dialog pops up prompting me for a password. The dialog box is asking of @our.scm.server's password. It appears it is not using the username or password from the settings.xml file which is what I was expecting by adding the server element to it. Should it be? I have also tried adding my username to the connection url connectionscm:hg:ssh://usern...@our.scm.server:22//path/to/TestJarProject/connection but am still prompted for an empty username's password. Once I get this working, I want to be able to use this to do releases in Hudson. If somebody could help me figure out how to set this up, it would be most appreciated! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
SCM Plugin - How to Set Up for Release Using Mercurial
Hi, I am attempting to do a release via the Maven release plugin and am having issues with the SCM config. I am using Eclipse with m2eclipse installed. We use Mercurial and on my machine (Win7) I have TortoiseHg installed. I have a test project that creates a jar. We make use of a super pom for our projects, so the test project pom does as well. I have set up this in the super pom: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.6/version configuration connectionTypeconnection/connectionType /configuration /plugin /plugins /build My test project pom looks like this: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion groupIdmy.group/groupId artifactIdTestJar/artifactId version1.0-SNAPSHOT/version parent groupIdmy.group/groupId artifactIdsuper-pom/artifactId version1.0/version /parent scm connectionscm:hg:ssh://our.scm.server:22//path/to/TestJarProject/connection /scm /project Note that we ssh to our SCM server. In my settings.xml file, I added this: servers ... server idour.scm.server/id usernameusername/username passwordpassword/password /server /servers When I run release:prepare release:perform, a TortoisePlink dialog pops up prompting me for a password. The dialog box is asking of @our.scm.server's password. It appears it is not using the username or password from the settings.xml file which is what I was expecting by adding the server element to it. Should it be? I have also tried adding my username to the connection url connectionscm:hg:ssh://usern...@our.scm.server:22//path/to/TestJarProject/connection but am still prompted for an empty username's password. Once I get this working, I want to be able to use this to do releases in Hudson. If somebody could help me figure out how to set this up, it would be most appreciated! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: scm plugin -- what are the config-info?
Am 20.11.2011 06:26, schrieb rop: But I cant find anywhere what is the purpose of the url tag? http://maven.apache.org/pom.html#SCM HTH Best regards Ansgar - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
scm plugin -- what are the config-info?
Question re. the Maven scm-plugin: * http://maven.apache.org/scm/plugins/usage.html * Example, in pom.xml: scm connectionscm:svn:http://somerepository.com/svn_repo/trunk/connection developerConnectionscm:svn:https://somerepository.com/svn_repo/trunk/developerConnection urlhttp://somerepository.com/view.cvs/url /scm *What exactly is the url tag used for?* The other two I found explained here: * http://maven.apache.org/pom.html * *connection, developerConnection: The two connection elements convey to how one is to connect to the version control system through Maven. Where connection requires read access for Maven to be able to find the source code (for example, an update), developerConnection requires a connection that will give write access.* But I cant find anywhere what is the purpose of the url tag? *In particular, does url have any effect on the deploy-cycle or the mvn release:prepare mvn release:perform commands? * Thanks,
Maven SCM plugin and CCRC
I'm having an issue getting the Maven SCM Plugin configured to use CCRC (ClearCase Remote Client v7.1.1). 1. What should the clearcase-settings.xml for Clear Case and location 2. What are the SCM setting SCM settings /SCM 3. Is there anything in the POM that is needed for configuration of the SCM plugin Thanks, Jeff CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information or otherwise protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Re: Maven SCM plugin and CCRC
I tried to get this to work but have up after getting no where for a few days. Chris On Oct 20, 2010, at 12:59, Lucas, Jeffrey A. jeffrey.lu...@anthem.com wrote: I'm having an issue getting the Maven SCM Plugin configured to use CCRC (ClearCase Remote Client v7.1.1). 1. What should the clearcase-settings.xml for Clear Case and location 2. What are the SCM setting SCM settings /SCM 3. Is there anything in the POM that is needed for configuration of the SCM plugin Thanks, Jeff CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information or otherwise protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven SCM plugin and CCRC
Hello, as far as I know, there is no scm implementation of CCRC for Maven. Clearcase Base/UCM are partially supported, it is far from perfect to be able to do the checkout/release roundtrip. I am guessing you read the documentation for the Clearcase (heavy client) implementation Cheers, Vincent 2010/10/20 Lucas, Jeffrey A. jeffrey.lu...@anthem.com I'm having an issue getting the Maven SCM Plugin configured to use CCRC (ClearCase Remote Client v7.1.1). 1. What should the clearcase-settings.xml for Clear Case and location 2. What are the SCM setting SCM settings /SCM 3. Is there anything in the POM that is needed for configuration of the SCM plugin Thanks, Jeff CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information or otherwise protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. -- Vincent
Re: Maven SCM plugin and CCRC
Some time ago I investigated this and found some mail from an IBM guy looking into this. Apparently they had some support customer asking. However, not too surprisingly he didn't report back... /Anders On Wed, Oct 20, 2010 at 20:04, Vincent Latombe vincent.lato...@gmail.comwrote: Hello, as far as I know, there is no scm implementation of CCRC for Maven. Clearcase Base/UCM are partially supported, it is far from perfect to be able to do the checkout/release roundtrip. I am guessing you read the documentation for the Clearcase (heavy client) implementation Cheers, Vincent 2010/10/20 Lucas, Jeffrey A. jeffrey.lu...@anthem.com I'm having an issue getting the Maven SCM Plugin configured to use CCRC (ClearCase Remote Client v7.1.1). 1. What should the clearcase-settings.xml for Clear Case and location 2. What are the SCM setting SCM settings /SCM 3. Is there anything in the POM that is needed for configuration of the SCM plugin Thanks, Jeff CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information or otherwise protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. -- Vincent
SCM Plugin Default Directory
Hello Everyone, I am using CVS as my scm. As I'm project converting from M1 to M2 I noticed that my default checkout is $basedir/target/checkout. So should I modify my buildsourceDirectory element to point to the source in $basedir/target/checkout/src? Or modify my checkoutDirectory? What are your suggestions regarding this? Thanks, Dave
Re: SCM Plugin Default Directory
What are you trying to do? Are you checking out your project with the maven-scm-plugin? /Anders On Tue, Jun 1, 2010 at 17:32, D D dawi...@gmail.com wrote: Hello Everyone, I am using CVS as my scm. As I'm project converting from M1 to M2 I noticed that my default checkout is $basedir/target/checkout. So should I modify my buildsourceDirectory element to point to the source in $basedir/target/checkout/src? Or modify my checkoutDirectory? What are your suggestions regarding this? Thanks, Dave
Re: SCM Plugin Default Directory
Yes, I am using scm:checkout to get a project from cvs repository. Since I'm converting my projects from M1 to M2 I would like to know what is the best practice. Thanks, Dave On Tue, Jun 1, 2010 at 1:18 PM, Anders Hammar and...@hammar.net wrote: What are you trying to do? Are you checking out your project with the maven-scm-plugin? /Anders On Tue, Jun 1, 2010 at 17:32, D D dawi...@gmail.com wrote: Hello Everyone, I am using CVS as my scm. As I'm project converting from M1 to M2 I noticed that my default checkout is $basedir/target/checkout. So should I modify my buildsourceDirectory element to point to the source in $basedir/target/checkout/src? Or modify my checkoutDirectory? What are your suggestions regarding this? Thanks, Dave
Re: SCM Plugin Default Directory
Ok, I see. I very rearly use scm:checkout (I normally checkout from Eclipse or some other tool). But when I do, I pass along the -DcheckoutDirectory=whatever flag to get the checked out project where I want it. That checkout folder is going to be your new basedir. You should keep your direcotyr layout according to Maven's default layout (see http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html). I.e. don't fight Maven. /Anders On Tue, Jun 1, 2010 at 20:56, D D dawi...@gmail.com wrote: Yes, I am using scm:checkout to get a project from cvs repository. Since I'm converting my projects from M1 to M2 I would like to know what is the best practice. Thanks, Dave On Tue, Jun 1, 2010 at 1:18 PM, Anders Hammar and...@hammar.net wrote: What are you trying to do? Are you checking out your project with the maven-scm-plugin? /Anders On Tue, Jun 1, 2010 at 17:32, D D dawi...@gmail.com wrote: Hello Everyone, I am using CVS as my scm. As I'm project converting from M1 to M2 I noticed that my default checkout is $basedir/target/checkout. So should I modify my buildsourceDirectory element to point to the source in $basedir/target/checkout/src? Or modify my checkoutDirectory? What are your suggestions regarding this? Thanks, Dave
Re: SCM Plugin Default Directory
Thanks, I'm using the checkoutDirectory in my trial pom.xml so it's here to stay. As far as the standard directory layout my hands are tied I think. My team is using IBM's RAD and it has a mind of its own but Maven is assembling all I need rather nicely once I implemented proper locations for code and META-INF Cheers, Dave On Tue, Jun 1, 2010 at 2:17 PM, Anders Hammar and...@hammar.net wrote: Ok, I see. I very rearly use scm:checkout (I normally checkout from Eclipse or some other tool). But when I do, I pass along the -DcheckoutDirectory=whatever flag to get the checked out project where I want it. That checkout folder is going to be your new basedir. You should keep your direcotyr layout according to Maven's default layout (see http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html ). I.e. don't fight Maven. /Anders On Tue, Jun 1, 2010 at 20:56, D D dawi...@gmail.com wrote: Yes, I am using scm:checkout to get a project from cvs repository. Since I'm converting my projects from M1 to M2 I would like to know what is the best practice. Thanks, Dave On Tue, Jun 1, 2010 at 1:18 PM, Anders Hammar and...@hammar.net wrote: What are you trying to do? Are you checking out your project with the maven-scm-plugin? /Anders On Tue, Jun 1, 2010 at 17:32, D D dawi...@gmail.com wrote: Hello Everyone, I am using CVS as my scm. As I'm project converting from M1 to M2 I noticed that my default checkout is $basedir/target/checkout. So should I modify my buildsourceDirectory element to point to the source in $basedir/target/checkout/src? Or modify my checkoutDirectory? What are your suggestions regarding this? Thanks, Dave
Re: maven scm plugin: accurev scm provider
Thanks! can you give me an example of how the connectionUrl should look like with accurev? E. On Fri, Apr 23, 2010 at 11:04 AM, Grant Gardner gdgard...@optusnet.com.auwrote: If you want to use the new version, take the code attached to issue, bump parent version to 1.3 and change the artifact version to 1.4-SNAPSHOT then build and install to your local repository. Then in your project pom add this as a dependency to the maven-scm-plugin as follows. build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.3/version dependencies dependency groupIdorg.apache.maven.scm/groupId artifactIdmaven-scm-provider-accurev/artifactId version1.4-SNAPSHOT/version /dependency /dependencies /plugin plugins /build On Wed, 21 Apr 2010 15:56:50 +0300, eyal edri eyal.e...@gmail.com wrote: Anyone has used accurev + scm plugin yet? i know issue 445 on the scm-accurev-provider should fix most problems once ver 1.4 is due, is there any way i can use the plugin in the meantime and test connection to the accurev server? thanks. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Eyal Edri
Re: maven scm plugin: accurev scm provider
the site documentation for that version is available here http://lastweekend.com.au/projects/maven-scm-provider-accurev/site/ On Wed, 28 Apr 2010 14:11:07 +0300, eyal edri eyal.e...@gmail.com wrote: Thanks! can you give me an example of how the connectionUrl should look like with accurev? E. On Fri, Apr 23, 2010 at 11:04 AM, Grant Gardner gr...@lastweekend.com.auwrote: If you want to use the new version, take the code attached to issue, bump parent version to 1.3 and change the artifact version to 1.4-SNAPSHOT then build and install to your local repository. Then in your project pom add this as a dependency to the maven-scm-plugin as follows. build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.3/version dependencies dependency groupIdorg.apache.maven.scm/groupId artifactIdmaven-scm-provider-accurev/artifactId version1.4-SNAPSHOT/version /dependency /dependencies /plugin plugins /build On Wed, 21 Apr 2010 15:56:50 +0300, eyal edri eyal.e...@gmail.com wrote: Anyone has used accurev + scm plugin yet? i know issue 445 on the scm-accurev-provider should fix most problems once ver 1.4 is due, is there any way i can use the plugin in the meantime and test connection to the accurev server? thanks. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven scm plugin: accurev scm provider
If you want to use the new version, take the code attached to issue, bump parent version to 1.3 and change the artifact version to 1.4-SNAPSHOT then build and install to your local repository. Then in your project pom add this as a dependency to the maven-scm-plugin as follows. build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.3/version dependencies dependency groupIdorg.apache.maven.scm/groupId artifactIdmaven-scm-provider-accurev/artifactId version1.4-SNAPSHOT/version /dependency /dependencies /plugin plugins /build On Wed, 21 Apr 2010 15:56:50 +0300, eyal edri eyal.e...@gmail.com wrote: Anyone has used accurev + scm plugin yet? i know issue 445 on the scm-accurev-provider should fix most problems once ver 1.4 is due, is there any way i can use the plugin in the meantime and test connection to the accurev server? thanks. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven scm plugin: accurev scm provider
Anyone has used accurev + scm plugin yet? i know issue 445 on the scm-accurev-provider should fix most problems once ver 1.4 is due, is there any way i can use the plugin in the meantime and test connection to the accurev server? thanks. -- Eyal Edri
how to use maven-scm-plugin to checkout a CVS tag
Hi every one, I have a need to checkout a CVS tag at build time, and have no idea how to configure the tag. Any advice is greatly appreciated here is my configuration configuration connectionUrl${cvsroot}:mymodule/connectionUrl /configuration Thanks -Dan - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: how to use maven-scm-plugin to checkout a CVS tag
never mind, The secret is in scmVersionType adn scmVervsion configuration On Thu, Mar 18, 2010 at 1:02 AM, Dan Tran dant...@gmail.com wrote: Hi every one, I have a need to checkout a CVS tag at build time, and have no idea how to configure the tag. Any advice is greatly appreciated here is my configuration configuration connectionUrl${cvsroot}:mymodule/connectionUrl /configuration Thanks -Dan - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: having problems with the scm plugin
According to the docs, the project.scm.connection element is used by default. Keep username and password in the plugin configuration and make sure that the project.scm.connection is correct. If you want to use developerConnection instead that's påossible to configure on the scm plugin, see the docs. http://maven.apache.org/scm/plugins/usage.html /Anders On Thu, Feb 25, 2010 at 01:52, Grant Lewis ukchuckt...@gmail.com wrote: The line breaks aren't the problem. I made some progress. I'm still a little confused by connectionUrl versus developerConnectionUrl but the following in my parent POM file finally worked for me. I never got developerConnectionUrl to work and I'm honestly not sure how the property is used by the plugin. plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.3/version configuration connectionUrlscm:svn: https://10.6.22.11/svn/icfdev/NE-FIMS/trunk/${project.artifactId}https://10.6.22.11/svn/icfdev/NE-FIMS/trunk/$%7Bproject.artifactId%7D /connectionUrl username${svn.username}/username password${svn.password}/password /configuration /plugin /plugins On Feb 24, 2010, at 6:51 PM, Bastian Spanneberg wrote: Grant Lewis schrieb: As far as I can tell my configuration is correct, using Maven 2.2.1, scm 1.3 and OS X 10.6.2. The relevant parts of my POM file are included. The tags are in my parent POM file so I expect the child project to inherit. I don't really understand the difference between connection and developerConnection so I set them both. When I try to run mvn scm:checkout on a child project I observe the error shown below from the plug-in. I also tried adding connectionUrl in the configuration for the plugin but that didn't help, same error. Anyone have some ideas? I'm not having any problems with command-line svn, only the Maven svn integration. Thanks. are these line breaks also in your pom, or just in this mail ? i remember i've got problems once with a similar situation, just cannot remember if it was with a scm connection url. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
having problems with the scm plugin
As far as I can tell my configuration is correct, using Maven 2.2.1, scm 1.3 and OS X 10.6.2. The relevant parts of my POM file are included. The tags are in my parent POM file so I expect the child project to inherit. I don't really understand the difference between connection and developerConnection so I set them both. scm connection scm:svn:https://10.6.22.11/svn/icfdev/NE-FIMS/trunk /connection developerConnection scm:svn:https://10.6.22.11/svn/icfdev/NE-FIMS/trunk /developerConnection /scm plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.3/version configuration username${svn.username}/username password${svn.password}/password /configuration /plugin /plugins When I try to run mvn scm:checkout on a child project I observe the error shown below from the plug-in. I also tried adding connectionUrl in the configuration for the plugin but that didn't help, same error. Anyone have some ideas? I'm not having any problems with command-line svn, only the Maven svn integration. Thanks. Grant STACK TRACE org.apache.maven.lifecycle.LifecycleExecutionException: Cannot run checkout command : at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) 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:597) 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: Cannot run checkout command : at org.apache.maven.scm.plugin.CheckoutMojo.checkout(CheckoutMojo.java:134) at org.apache.maven.scm.plugin.CheckoutMojo.execute(CheckoutMojo.java:93) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more Caused by: org.apache.maven.scm.ScmException: Can't load the scm provider. at org.apache.maven.scm.plugin.AbstractScmMojo.getScmRepository(AbstractScmMojo.java:334) at org.apache.maven.scm.plugin.CheckoutMojo.checkout(CheckoutMojo.java:112) ... 20 more Caused by: java.lang.NullPointerException: You need to define a connectionUrl parameter at org.apache.maven.scm.plugin.AbstractScmMojo.getConnectionUrl(AbstractScmMojo.java:222) at org.apache.maven.scm.plugin.AbstractScmMojo.getScmRepository(AbstractScmMojo.java:271) ... 21 more /STACK TRACE - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: having problems with the scm plugin
Grant Lewis schrieb: As far as I can tell my configuration is correct, using Maven 2.2.1, scm 1.3 and OS X 10.6.2. The relevant parts of my POM file are included. The tags are in my parent POM file so I expect the child project to inherit. I don't really understand the difference between connection and developerConnection so I set them both. When I try to run mvn scm:checkout on a child project I observe the error shown below from the plug-in. I also tried adding connectionUrl in the configuration for the plugin but that didn't help, same error. Anyone have some ideas? I'm not having any problems with command-line svn, only the Maven svn integration. Thanks. are these line breaks also in your pom, or just in this mail ? i remember i've got problems once with a similar situation, just cannot remember if it was with a scm connection url. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: having problems with the scm plugin
The line breaks aren't the problem. I made some progress. I'm still a little confused by connectionUrl versus developerConnectionUrl but the following in my parent POM file finally worked for me. I never got developerConnectionUrl to work and I'm honestly not sure how the property is used by the plugin. plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.3/version configuration connectionUrlscm:svn:https://10.6.22.11/svn/icfdev/NE-FIMS/trunk/${project.artifactId}/connectionUrl username${svn.username}/username password${svn.password}/password /configuration /plugin /plugins On Feb 24, 2010, at 6:51 PM, Bastian Spanneberg wrote: Grant Lewis schrieb: As far as I can tell my configuration is correct, using Maven 2.2.1, scm 1.3 and OS X 10.6.2. The relevant parts of my POM file are included. The tags are in my parent POM file so I expect the child project to inherit. I don't really understand the difference between connection and developerConnection so I set them both. When I try to run mvn scm:checkout on a child project I observe the error shown below from the plug-in. I also tried adding connectionUrl in the configuration for the plugin but that didn't help, same error. Anyone have some ideas? I'm not having any problems with command-line svn, only the Maven svn integration. Thanks. are these line breaks also in your pom, or just in this mail ? i remember i've got problems once with a similar situation, just cannot remember if it was with a scm connection url. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: error using scm:accurev with the scm plugin
I have written a replacement accurev provider that works with continuum and the release plugin See http://jira.codehaus.org/browse/SCM-445 A number of the issues and how I worked around them are in the site documentation, which I've put up at http://lastweekend.com.au/projects/maven-scm-provider-accurev/site/ I'm currently trying to get this included into maven-scm-1.3, to use it in the meantime you'll need to download and build and then reference version 1.2.1-SNAPSHOT in your pom. Stephen Connolly-2 wrote: I told you already, Accurev does not play well with Maven... and IMHO, it cannot be made to play well with Maven without Accurev re-architecting some things. -Stephen 2009/12/30 eyal edri eyal.e...@gmail.com: i'm trying to use the scm plugin with the Accurev SCM. Here's my pom: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.company.sql/groupId artifactIdDbUtil/artifactId packagingjar/packaging version0.0.3/version nameDbUtil/name parent groupIdcom.company.maven.pom/groupId artifactIdWebSecParent/artifactId version0.0.1/version /parent dependencies dependency groupIdcom.microsoft.sqlserver.jdbc/groupId artifactIdsqljdbc/artifactId version2.0/version /dependency dependency groupIdorg.apache.maven.scm/groupId artifactIdmaven-scm-provider-accurev/artifactId version1.1/version /dependency /dependencies scm connectionscm:accurev:server:5050/CTTest/DbUtil//connection /scm build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.0/version configuration goalsinstall/goals /configuration /plugin /plugins /build /project when i run scm:compile: [INFO] Scanning for projects... [INFO] [INFO] Building DbUtil [INFO] task-segment: [scm:validate] (aggregator-style) [INFO] [INFO] Preparing scm:validate [INFO] No goals needed for project - skipping [INFO] [scm:validate {execution: default-cli}] [ERROR] Validation of scm url connection (connectionUrl) failed : [ERROR] No such provider installed 'accurev'. [ERROR] The invalid scm url connection: 'scm:accurev:server:5050/CTTest/DbUtil/'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Command failed. Bad Scm URL. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Wed Dec 30 15:00:28 IST 2009 [INFO] Final Memory: 11M/73M [INFO] Any idea? -- Eyal Edri - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://old.nabble.com/error-using-scm%3Aaccurev-with-the-scm-plugin-tp26967303p27083572.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: error using scm:accurev with the scm plugin
not bad you've hit the same issues I saw Sent from my [rhymes with tryPod] ;-) On 8 Jan 2010, at 23:18, lwoggardner gr...@lastweekend.com.au wrote: I have written a replacement accurev provider that works with continuum and the release plugin See http://jira.codehaus.org/browse/SCM-445 A number of the issues and how I worked around them are in the site documentation, which I've put up at http://lastweekend.com.au/projects/maven-scm-provider-accurev/site/ I'm currently trying to get this included into maven-scm-1.3, to use it in the meantime you'll need to download and build and then reference version 1.2.1-SNAPSHOT in your pom. Stephen Connolly-2 wrote: I told you already, Accurev does not play well with Maven... and IMHO, it cannot be made to play well with Maven without Accurev re-architecting some things. -Stephen 2009/12/30 eyal edri eyal.e...@gmail.com: i'm trying to use the scm plugin with the Accurev SCM. Here's my pom: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.company.sql/groupId artifactIdDbUtil/artifactId packagingjar/packaging version0.0.3/version nameDbUtil/name parent groupIdcom.company.maven.pom/groupId artifactIdWebSecParent/artifactId version0.0.1/version /parent dependencies dependency groupIdcom.microsoft.sqlserver.jdbc/groupId artifactIdsqljdbc/artifactId version2.0/version /dependency dependency groupIdorg.apache.maven.scm/groupId artifactIdmaven-scm-provider-accurev/artifactId version1.1/version /dependency /dependencies scm connectionscm:accurev:server:5050/CTTest/DbUtil//connection /scm build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.0/version configuration goalsinstall/goals /configuration /plugin /plugins /build /project when i run scm:compile: [INFO] Scanning for projects... [INFO] --- --- -- [INFO] Building DbUtil [INFO]task-segment: [scm:validate] (aggregator-style) [INFO] --- --- -- [INFO] Preparing scm:validate [INFO] No goals needed for project - skipping [INFO] [scm:validate {execution: default-cli}] [ERROR] Validation of scm url connection (connectionUrl) failed : [ERROR] No such provider installed 'accurev'. [ERROR] The invalid scm url connection: 'scm:accurev:server:5050/CTTest/DbUtil/'. [INFO] --- --- -- [ERROR] BUILD ERROR [INFO] --- --- -- [INFO] Command failed. Bad Scm URL. [INFO] --- --- -- [INFO] For more information, run Maven with the -e switch [INFO] --- --- -- [INFO] Total time: 4 seconds [INFO] Finished at: Wed Dec 30 15:00:28 IST 2009 [INFO] Final Memory: 11M/73M [INFO] --- --- -- Any idea? -- Eyal Edri - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://old.nabble.com/error-using-scm%3Aaccurev-with-the-scm-plugin-tp26967303p27083572.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
error using scm:accurev with the scm plugin
i'm trying to use the scm plugin with the Accurev SCM. Here's my pom: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.company.sql/groupId artifactIdDbUtil/artifactId packagingjar/packaging version0.0.3/version nameDbUtil/name parent groupIdcom.company.maven.pom/groupId artifactIdWebSecParent/artifactId version0.0.1/version /parent dependencies dependency groupIdcom.microsoft.sqlserver.jdbc/groupId artifactIdsqljdbc/artifactId version2.0/version /dependency dependency groupIdorg.apache.maven.scm/groupId artifactIdmaven-scm-provider-accurev/artifactId version1.1/version /dependency /dependencies scm connectionscm:accurev:server:5050/CTTest/DbUtil//connection /scm build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.0/version configuration goalsinstall/goals /configuration /plugin /plugins /build /project when i run scm:compile: [INFO] Scanning for projects... [INFO] [INFO] Building DbUtil [INFO]task-segment: [scm:validate] (aggregator-style) [INFO] [INFO] Preparing scm:validate [INFO] No goals needed for project - skipping [INFO] [scm:validate {execution: default-cli}] [ERROR] Validation of scm url connection (connectionUrl) failed : [ERROR] No such provider installed 'accurev'. [ERROR] The invalid scm url connection: 'scm:accurev:server:5050/CTTest/DbUtil/'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Command failed. Bad Scm URL. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Wed Dec 30 15:00:28 IST 2009 [INFO] Final Memory: 11M/73M [INFO] Any idea? -- Eyal Edri
Re: error using scm:accurev with the scm plugin
I told you already, Accurev does not play well with Maven... and IMHO, it cannot be made to play well with Maven without Accurev re-architecting some things. -Stephen 2009/12/30 eyal edri eyal.e...@gmail.com: i'm trying to use the scm plugin with the Accurev SCM. Here's my pom: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.company.sql/groupId artifactIdDbUtil/artifactId packagingjar/packaging version0.0.3/version nameDbUtil/name parent groupIdcom.company.maven.pom/groupId artifactIdWebSecParent/artifactId version0.0.1/version /parent dependencies dependency groupIdcom.microsoft.sqlserver.jdbc/groupId artifactIdsqljdbc/artifactId version2.0/version /dependency dependency groupIdorg.apache.maven.scm/groupId artifactIdmaven-scm-provider-accurev/artifactId version1.1/version /dependency /dependencies scm connectionscm:accurev:server:5050/CTTest/DbUtil//connection /scm build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.0/version configuration goalsinstall/goals /configuration /plugin /plugins /build /project when i run scm:compile: [INFO] Scanning for projects... [INFO] [INFO] Building DbUtil [INFO] task-segment: [scm:validate] (aggregator-style) [INFO] [INFO] Preparing scm:validate [INFO] No goals needed for project - skipping [INFO] [scm:validate {execution: default-cli}] [ERROR] Validation of scm url connection (connectionUrl) failed : [ERROR] No such provider installed 'accurev'. [ERROR] The invalid scm url connection: 'scm:accurev:server:5050/CTTest/DbUtil/'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Command failed. Bad Scm URL. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Wed Dec 30 15:00:28 IST 2009 [INFO] Final Memory: 11M/73M [INFO] Any idea? -- Eyal Edri - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: error using scm:accurev with the scm plugin
Actually, i might not need the maven scm plugin... if i've got hudson working with accurev - that's settles the automatic building... and i can use accurev plugin for eclipse for checkin/out releases. I've expressed what you said about accurev to my team leader, and he said those are not relevant to our environment.. so in the meantime.. we're going on accurev... -Eyal On Wed, Dec 30, 2009 at 4:04 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: I told you already, Accurev does not play well with Maven... and IMHO, it cannot be made to play well with Maven without Accurev re-architecting some things. -Stephen 2009/12/30 eyal edri eyal.e...@gmail.com: i'm trying to use the scm plugin with the Accurev SCM. Here's my pom: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.company.sql/groupId artifactIdDbUtil/artifactId packagingjar/packaging version0.0.3/version nameDbUtil/name parent groupIdcom.company.maven.pom/groupId artifactIdWebSecParent/artifactId version0.0.1/version /parent dependencies dependency groupIdcom.microsoft.sqlserver.jdbc/groupId artifactIdsqljdbc/artifactId version2.0/version /dependency dependency groupIdorg.apache.maven.scm/groupId artifactIdmaven-scm-provider-accurev/artifactId version1.1/version /dependency /dependencies scm connectionscm:accurev:server:5050/CTTest/DbUtil//connection /scm build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.0/version configuration goalsinstall/goals /configuration /plugin /plugins /build /project when i run scm:compile: [INFO] Scanning for projects... [INFO] [INFO] Building DbUtil [INFO]task-segment: [scm:validate] (aggregator-style) [INFO] [INFO] Preparing scm:validate [INFO] No goals needed for project - skipping [INFO] [scm:validate {execution: default-cli}] [ERROR] Validation of scm url connection (connectionUrl) failed : [ERROR] No such provider installed 'accurev'. [ERROR] The invalid scm url connection: 'scm:accurev:server:5050/CTTest/DbUtil/'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Command failed. Bad Scm URL. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Wed Dec 30 15:00:28 IST 2009 [INFO] Final Memory: 11M/73M [INFO] Any idea? -- Eyal Edri - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Eyal Edri
Re: error using scm:accurev with the scm plugin
I might mention some of the data inconsistencies we found when migrating some of the file versions that Accurev would tell you existed, but would refuse to give... and the 8 hour window for which recreating a snapshot within that time creates a different snapshot from one created at the exact same time during the 8h window... Now some of these issues could be the result of our 11 year history in accurev, and if you are starting clean, you might not find these issues, but anywho... -Stephen P.S. We were being forced to change SCM from Accurev in any case... it was to be to ClearCrap but then the powers that be were convinced that Subversion was a better plan (And I was not involved in the convincing!) 2009/12/30 eyal edri eyal.e...@gmail.com: Actually, i might not need the maven scm plugin... if i've got hudson working with accurev - that's settles the automatic building... and i can use accurev plugin for eclipse for checkin/out releases. I've expressed what you said about accurev to my team leader, and he said those are not relevant to our environment.. so in the meantime.. we're going on accurev... -Eyal On Wed, Dec 30, 2009 at 4:04 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: I told you already, Accurev does not play well with Maven... and IMHO, it cannot be made to play well with Maven without Accurev re-architecting some things. -Stephen 2009/12/30 eyal edri eyal.e...@gmail.com: i'm trying to use the scm plugin with the Accurev SCM. Here's my pom: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.company.sql/groupId artifactIdDbUtil/artifactId packagingjar/packaging version0.0.3/version nameDbUtil/name parent groupIdcom.company.maven.pom/groupId artifactIdWebSecParent/artifactId version0.0.1/version /parent dependencies dependency groupIdcom.microsoft.sqlserver.jdbc/groupId artifactIdsqljdbc/artifactId version2.0/version /dependency dependency groupIdorg.apache.maven.scm/groupId artifactIdmaven-scm-provider-accurev/artifactId version1.1/version /dependency /dependencies scm connectionscm:accurev:server:5050/CTTest/DbUtil//connection /scm build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.0/version configuration goalsinstall/goals /configuration /plugin /plugins /build /project when i run scm:compile: [INFO] Scanning for projects... [INFO] [INFO] Building DbUtil [INFO] task-segment: [scm:validate] (aggregator-style) [INFO] [INFO] Preparing scm:validate [INFO] No goals needed for project - skipping [INFO] [scm:validate {execution: default-cli}] [ERROR] Validation of scm url connection (connectionUrl) failed : [ERROR] No such provider installed 'accurev'. [ERROR] The invalid scm url connection: 'scm:accurev:server:5050/CTTest/DbUtil/'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Command failed. Bad Scm URL. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Wed Dec 30 15:00:28 IST 2009 [INFO] Final Memory: 11M/73M [INFO] Any idea? -- Eyal Edri - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Eyal Edri - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: error using scm:accurev with the scm plugin
To put it another way... when I first started using Accurev, I was a big fan... after writing a tool to convert to Subversion (we were looking at using the Subversion - clearcase migration tools to get our history to the Corp mandated SCM tool) I have lost all confidence in Accurev. (Thankfully, corp came to their senses before we started moving svn 2 clearcrap) IMHO, SCM has been reduced to two choices (for now) * Subversion * Git Or some combination of the two (using the svn git bridge) Git is great for distributed devel, but I suspect that Maven needs to adapt somewhat to the infinite branching mode of Git Subversion is great for single authorative development (a.k.a. enterprise). Branching is not as well supported as Git. If you need better branch-merge support with the authoritive end of Svn, I'n use Svn Git bridge so that the authoritive development line lives in Svn and the branches are handled in Git Just my €0.02 2009/12/30 Stephen Connolly stephen.alan.conno...@gmail.com: I might mention some of the data inconsistencies we found when migrating some of the file versions that Accurev would tell you existed, but would refuse to give... and the 8 hour window for which recreating a snapshot within that time creates a different snapshot from one created at the exact same time during the 8h window... Now some of these issues could be the result of our 11 year history in accurev, and if you are starting clean, you might not find these issues, but anywho... -Stephen P.S. We were being forced to change SCM from Accurev in any case... it was to be to ClearCrap but then the powers that be were convinced that Subversion was a better plan (And I was not involved in the convincing!) 2009/12/30 eyal edri eyal.e...@gmail.com: Actually, i might not need the maven scm plugin... if i've got hudson working with accurev - that's settles the automatic building... and i can use accurev plugin for eclipse for checkin/out releases. I've expressed what you said about accurev to my team leader, and he said those are not relevant to our environment.. so in the meantime.. we're going on accurev... -Eyal On Wed, Dec 30, 2009 at 4:04 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: I told you already, Accurev does not play well with Maven... and IMHO, it cannot be made to play well with Maven without Accurev re-architecting some things. -Stephen 2009/12/30 eyal edri eyal.e...@gmail.com: i'm trying to use the scm plugin with the Accurev SCM. Here's my pom: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.company.sql/groupId artifactIdDbUtil/artifactId packagingjar/packaging version0.0.3/version nameDbUtil/name parent groupIdcom.company.maven.pom/groupId artifactIdWebSecParent/artifactId version0.0.1/version /parent dependencies dependency groupIdcom.microsoft.sqlserver.jdbc/groupId artifactIdsqljdbc/artifactId version2.0/version /dependency dependency groupIdorg.apache.maven.scm/groupId artifactIdmaven-scm-provider-accurev/artifactId version1.1/version /dependency /dependencies scm connectionscm:accurev:server:5050/CTTest/DbUtil//connection /scm build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.0/version configuration goalsinstall/goals /configuration /plugin /plugins /build /project when i run scm:compile: [INFO] Scanning for projects... [INFO] [INFO] Building DbUtil [INFO] task-segment: [scm:validate] (aggregator-style) [INFO] [INFO] Preparing scm:validate [INFO] No goals needed for project - skipping [INFO] [scm:validate {execution: default-cli}] [ERROR] Validation of scm url connection (connectionUrl) failed : [ERROR] No such provider installed 'accurev'. [ERROR] The invalid scm url connection: 'scm:accurev:server:5050/CTTest/DbUtil/'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Command failed. Bad Scm URL. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Wed Dec 30 15:00:28 IST 2009 [INFO] Final Memory: 11M/73M [INFO
Re: SCM plugin password encryption
With maven 2.2 and java 6 you're supposed to take advantage of kerberos authentification, just by having a file such the following in your home directory: com.sun.security.jgss.krb5.initiate { com.sun.security.auth.module.Krb5LoginModule required client=TRUE doNotPrompt=false useTicketCache=true debug=true; }; Kind regards, Nicolas
SCM plugin password encryption
I feel like I must be missing something because I have yet found a way to encrypt my SCM password in my Maven POM. I am using the maven release plugin and need to use some credentials on the CI server, but I don't want to store the password in clear text. Is there a way to encrypt the password and reference it in the Maven SCM plugin? I've tried using the Maven encryption guide (http://maven.apache.org/guides/mini/guide-encryption.html) which works well for encrypting Maven repository credentials. The problem is that you can't (from what I've seen) reference the id for a server in the Maven SCM plugin. Here's an example of what I'd like to see in the POM: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId configuration usernamekurt.tometich/username password{encrypted password here}/password /configuration /plugin Any ideas of how to do this would be welcome. Thanks in advance. Kurt
RE: SCM plugin password encryption
We just need to add this feature to maven-scm-plugin. We could use maven-sql-plugin as an example, it can read encrypted DB password in the same manner as repository credentials. Andrei Solntsev, Software Developer, HireRight Estonia -Original Message- From: KURT TOMETICH [mailto:boomtow...@msn.com] Sent: Thursday, August 13, 2009 7:07 PM To: users@maven.apache.org Subject: SCM plugin password encryption I feel like I must be missing something because I have yet found a way to encrypt my SCM password in my Maven POM. I am using the maven release plugin and need to use some credentials on the CI server, but I don't want to store the password in clear text. Is there a way to encrypt the password and reference it in the Maven SCM plugin? I've tried using the Maven encryption guide (http://maven.apache.org/guides/mini/guide-encryption.html) which works well for encrypting Maven repository credentials. The problem is that you can't (from what I've seen) reference the id for a server in the Maven SCM plugin. Here's an example of what I'd like to see in the POM: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId configuration usernamekurt.tometich/username password{encrypted password here}/password /configuration /plugin Any ideas of how to do this would be welcome. Thanks in advance. Kurt - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: SCM plugin password encryption
please create a jira! I'll try to go over a few scm issues this weekend, maybe I have time for this too. LieGrue, strub - Original Message From: Andrei Solntsev asolnt...@hireright.ee To: Maven Users List users@maven.apache.org Sent: Friday, August 14, 2009 9:23:28 AM Subject: RE: SCM plugin password encryption We just need to add this feature to maven-scm-plugin. We could use maven-sql-plugin as an example, it can read encrypted DB password in the same manner as repository credentials. Andrei Solntsev, Software Developer, HireRight Estonia -Original Message- From: KURT TOMETICH [mailto:boomtow...@msn.com] Sent: Thursday, August 13, 2009 7:07 PM To: users@maven.apache.org Subject: SCM plugin password encryption I feel like I must be missing something because I have yet found a way to encrypt my SCM password in my Maven POM. I am using the maven release plugin and need to use some credentials on the CI server, but I don't want to store the password in clear text. Is there a way to encrypt the password and reference it in the Maven SCM plugin? I've tried using the Maven encryption guide (http://maven.apache.org/guides/mini/guide-encryption.html) which works well for encrypting Maven repository credentials. The problem is that you can't (from what I've seen) reference the id for a server in the Maven SCM plugin. Here's an example of what I'd like to see in the POM: org.apache.maven.plugins maven-scm-plugin kurt.tometich {encrypted password here} Any ideas of how to do this would be welcome. Thanks in advance. Kurt - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: SCM plugin password encryption
can you not put your password in a property defined in your ~/.m2/settings.xml file and then reference that property in your scm config section? that way you can change the permissions on your ~/.m2/settings.xml file to make it only readable by yourself (unless you are using FAT/FAT32 as your filesystem eek!) -Stephen 2009/8/13 KURT TOMETICH boomtow...@msn.com: I feel like I must be missing something because I have yet found a way to encrypt my SCM password in my Maven POM. I am using the maven release plugin and need to use some credentials on the CI server, but I don't want to store the password in clear text. Is there a way to encrypt the password and reference it in the Maven SCM plugin? I've tried using the Maven encryption guide (http://maven.apache.org/guides/mini/guide-encryption.html) which works well for encrypting Maven repository credentials. The problem is that you can't (from what I've seen) reference the id for a server in the Maven SCM plugin. Here's an example of what I'd like to see in the POM: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId configuration usernamekurt.tometich/username password{encrypted password here}/password /configuration /plugin Any ideas of how to do this would be welcome. Thanks in advance. Kurt - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: SCM plugin password encryption
can you not put your password in a property defined in your ~/.m2/settings.xml file and then reference that property in your scm config section? Writing passwords into poms is surely always a dirty hack and using the private settings.xml is a good point indeed. But on a CI server, the CI user usually is accessible by a lot of people. Storing private credentials imho simply doesn't work in this case. Otoh, for shadow password functionality, I fear this won't work since there is no way to restore the original password for sending it to the SCM system. Imho the best way would be to create an own user for the CI system in the SCM which only has readonly access. LieGrue, strub - Original Message From: Stephen Connolly stephen.alan.conno...@gmail.com To: Maven Users List users@maven.apache.org Sent: Friday, August 14, 2009 10:10:32 AM Subject: Re: SCM plugin password encryption can you not put your password in a property defined in your ~/.m2/settings.xml file and then reference that property in your scm config section? that way you can change the permissions on your ~/.m2/settings.xml file to make it only readable by yourself (unless you are using FAT/FAT32 as your filesystem eek!) -Stephen 2009/8/13 KURT TOMETICH : I feel like I must be missing something because I have yet found a way to encrypt my SCM password in my Maven POM. I am using the maven release plugin and need to use some credentials on the CI server, but I don't want to store the password in clear text. Is there a way to encrypt the password and reference it in the Maven SCM plugin? I've tried using the Maven encryption guide (http://maven.apache.org/guides/mini/guide-encryption.html) which works well for encrypting Maven repository credentials. The problem is that you can't (from what I've seen) reference the id for a server in the Maven SCM plugin. Here's an example of what I'd like to see in the POM: org.apache.maven.plugins maven-scm-plugin kurt.tometich {encrypted password here} Any ideas of how to do this would be welcome. Thanks in advance. Kurt - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to use maven-scm-plugin with subversion and without a command line
On Fri, Jul 10, 2009 at 8:19 AM, Benson Marguliesbimargul...@gmail.com wrote: The doc for the svn piece of the scm-plugin has several tantalizing hints that suggest that there is some way to use an API to svn instead of running commands. Since I've got some people on Windows with cygwin, where the command line is not working, I'd like to try that out. Could someone please post the recipe? I'd be willing to type it into Confluence if I just knew what it was. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org You probably want to join the subversion users mailing list [information and a link to the list archives over at http://subversion.tigris.org ] Subversion itself exposes a high level API [C calling conventions] this is what the svn command line client, and the 'javahl' library use. There is also at least one pure java svn client library [svnkit] and it is likely that the scm plugin can use either the svnkit or the javahl libraries, as they are designed to maintain compatibility. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to use maven-scm-plugin with subversion and without a command line
We didn't understand each other, but I can now post the answer for the record. If you look at http://maven.apache.org/scm/plugins/update-mojo.html#privateKey, you will see a reference to 'javasvn'. It turns out that this is a separate plugin: http://code.google.com/p/maven-scm-provider-svnjava/ On Mon, Jul 13, 2009 at 2:38 PM, Dave Levittdave.lev...@gmail.com wrote: On Fri, Jul 10, 2009 at 8:19 AM, Benson Marguliesbimargul...@gmail.com wrote: The doc for the svn piece of the scm-plugin has several tantalizing hints that suggest that there is some way to use an API to svn instead of running commands. Since I've got some people on Windows with cygwin, where the command line is not working, I'd like to try that out. Could someone please post the recipe? I'd be willing to type it into Confluence if I just knew what it was. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org You probably want to join the subversion users mailing list [information and a link to the list archives over at http://subversion.tigris.org ] Subversion itself exposes a high level API [C calling conventions] this is what the svn command line client, and the 'javahl' library use. There is also at least one pure java svn client library [svnkit] and it is likely that the scm plugin can use either the svnkit or the javahl libraries, as they are designed to maintain compatibility. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to use maven-scm-plugin with subversion and without a command line
The doc for the svn piece of the scm-plugin has several tantalizing hints that suggest that there is some way to use an API to svn instead of running commands. Since I've got some people on Windows with cygwin, where the command line is not working, I'd like to try that out. Could someone please post the recipe? I'd be willing to type it into Confluence if I just knew what it was. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
scm plugin - checkin or update as needed?
I'm strugging to use the scm plugin in the seemingly obvious scenario of 'use update if the tree is there, otherwise run checkout'. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: scm plugin - checkin or update as needed?
which tree you are setting up dependency for? src tree, classes tree, resources, oak, tree,cactus? thanks, Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 8 Jul 2009 21:49:01 -0400 Subject: scm plugin - checkin or update as needed? From: bimargul...@gmail.com To: users@maven.apache.org I'm strugging to use the scm plugin in the seemingly obvious scenario of 'use update if the tree is there, otherwise run checkout'. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org _ Lauren found her dream laptop. Find the PC that’s right for you. http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
Re: scm plugin - checkin or update as needed?
None of the above. I have a custom plugin that is used to train an NLP model from a bunch of corpora. The corpora are stored in svn. They are big, so I don't want to refetch on each training. So, in generate-resources I want to check them out if they aren't checked out, and update them if they are. I set up a profile with two executions: one for checkout and one for update, and set the skipIfExists property to true for the checkout. It seems to be doing the right thing, but I am worry about how to ensure the correct order. 2009/7/8 Martin Gainty mgai...@hotmail.com: which tree you are setting up dependency for? src tree, classes tree, resources, oak, tree,cactus? thanks, Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 8 Jul 2009 21:49:01 -0400 Subject: scm plugin - checkin or update as needed? From: bimargul...@gmail.com To: users@maven.apache.org I'm strugging to use the scm plugin in the seemingly obvious scenario of 'use update if the tree is there, otherwise run checkout'. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org _ Lauren found her dream laptop. Find the PC that’s right for you. http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven-scm-plugin
Can I use this plugin for the following purpose? Project A build has a folder in its directory structure that holds assets from a different svn location/project (project B) that I want to include in my build. During my build before the compile phase I would like to use this plugin to do an svn update and get the latest file from Project B and store it in this folder. I am setting up my pom like this plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.2/version configuration usernameme/username password*/password basedir${tomcat.home}/webapps/pub/swf/basedir connectionTypeconnection/connectionType connectionUrlscm:svn:https://projectB/trunk/bin/connectionUrl /configuration executions execution idgetting_updated_swf/id phaseprocess-resources/phase goals goalupdate/goal /goals /execution /executions /plugin My build is throwing errors and I am confused as to why: [INFO] [scm:update] [INFO] Executing: cmd.exe /X /C svn --username me --password * --non-interactive update C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\pub\swf [INFO] Working directory: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\pub\swf [ERROR] While building project: Reason: Cannot run update command : The working directory is the correct directory i want to update but the one in the update command is not the connectionURL. Is this possible? Can anyone help me work through the error message? Thanks, Barry
Re: Maven-scm-plugin define -Dmaven.scm.provider.cvs.implementation in pom?
2009/3/16 Eric B. ebe...@hotmail.com: I've been trying to figure out if there is a way to specify the maven.scm.provider.cvs.implementation in the pom or in a profile, but haven't been able to find anything. I know I can specify -Dmaven.scm.provider.cvs.implementation=cvs_native on the command line, but would like to do it from the pom. I did find http://jira.codehaus.org/browse/SCM-303, but I am running scm 2.0-beta-8 and I still cant seem to get it to work. I can only confirm that it doesn't work for me either. I tried it with putting the property in an always active profile in my settings.xml. I am running Maven 2.0.9 on Windows 2000SP4 Ringo - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven-scm-plugin define -Dmaven.scm.provider.cvs.implementation in pom?
Hi, I've been trying to figure out if there is a way to specify the maven.scm.provider.cvs.implementation in the pom or in a profile, but haven't been able to find anything. I know I can specify -Dmaven.scm.provider.cvs.implementation=cvs_native on the command line, but would like to do it from the pom. I did find http://jira.codehaus.org/browse/SCM-303, but I am running scm 2.0-beta-8 and I still cant seem to get it to work. Does anyone have any ideas? Thanks, Eric - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
scm plugin help please
I am trying to use the scm plugin to perform an svn update. I can successfully run svn cleanup, svn up, and svn ci from the command line. But when I run a mvn scm:update -e I get an error saying my pom.xml is locked as shown below: *733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $ svn cleanup 733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $ svn up At revision 5.* *733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $ mvn scm:update -e* *+ Error stacktraces are turned on.* *[INFO] Scanning for projects...* *[INFO] Searching repository for plugin with prefix: 'scm'.* *WAGON_VERSION: 1.0-beta-2* *[INFO] * *[INFO] Building FXG:: POM* *[INFO]task-segment: [scm:update] (aggregator-style)* *[INFO] * *[INFO] [scm:update]* *[INFO] Executing: cmd.exe /X /C svn --non-interactive update c:\opt\projects\grd\trunk\fxg-pom* *[INFO] Working directory: c:\opt\projects\grd\trunk\fxg-pom* *[INFO] Svn command failed due to some locks in working copy. We try to run a 'svn cleanup'.* *[INFO] Executing: cmd.exe /X /C svn* *[INFO] Working directory: c:\opt\projects\grd\trunk\fxg-pom* *[ERROR] Provider message:* *[ERROR] The svn command failed.* *[ERROR] Command output:* *[ERROR] svn: Working copy 'c:\opt\projects\grd\trunk\fxg-pom' locked svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details) Type 'svn help' for usage.* *[INFO] * *[ERROR] BUILD ERROR* *[INFO] * *[INFO] Command failed.The svn command failed.* *[INFO] * *[INFO] Trace* *org.apache.maven.lifecycle.LifecycleExecutionException: Command failed.The svn command failed.* *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) * *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) * *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) * *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) * *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227) * *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) * *at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)* *at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)* *at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)* *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:597)* *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: Command failed.The svn command failed.* *at org.apache.maven.scm.plugin.AbstractScmMojo.checkResult(AbstractScmMojo.java:400) * *at org.apache.maven.scm.plugin.UpdateMojo.execute(UpdateMojo.java:93)* *at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) * *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) * *... 16 more* *[INFO] * *[INFO] Total time: 7 seconds* *[INFO] Finished at: Fri Feb 20 09:34:57 EST 2009* *[INFO] Final Memory: 8M/16M* *[INFO] * *733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $* --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Twitter: http://twitter.com/mickknutson Vacation Rental: http://tahoe.baselogic.com ---
AW: scm plugin help please
may this be a reincarnation of the --non-interactive bug with svn-1.5 on MacOsX? http://jira.codehaus.org/browse/SCM-402 what says svn if you execute the SVN command with and without the --non-interactive? txs and LieGrue, strub --- Mick Knutson mickknut...@gmail.com schrieb am Fr, 20.2.2009: Von: Mick Knutson mickknut...@gmail.com Betreff: scm plugin help please An: maven users@maven.apache.org Datum: Freitag, 20. Februar 2009, 15:38 I am trying to use the scm plugin to perform an svn update. I can successfully run svn cleanup, svn up, and svn ci from the command line. But when I run a mvn scm:update -e I get an error saying my pom.xml is locked as shown below: *733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $ svn cleanup 733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $ svn up At revision 5.* *733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $ mvn scm:update -e* *+ Error stacktraces are turned on.* *[INFO] Scanning for projects...* *[INFO] Searching repository for plugin with prefix: 'scm'.* *WAGON_VERSION: 1.0-beta-2* *[INFO] * *[INFO] Building FXG:: POM* *[INFO]task-segment: [scm:update] (aggregator-style)* *[INFO] * *[INFO] [scm:update]* *[INFO] Executing: cmd.exe /X /C svn --non-interactive update c:\opt\projects\grd\trunk\fxg-pom* *[INFO] Working directory: c:\opt\projects\grd\trunk\fxg-pom* *[INFO] Svn command failed due to some locks in working copy. We try to run a 'svn cleanup'.* *[INFO] Executing: cmd.exe /X /C svn* *[INFO] Working directory: c:\opt\projects\grd\trunk\fxg-pom* *[ERROR] Provider message:* *[ERROR] The svn command failed.* *[ERROR] Command output:* *[ERROR] svn: Working copy 'c:\opt\projects\grd\trunk\fxg-pom' locked svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details) Type 'svn help' for usage.* *[INFO] * *[ERROR] BUILD ERROR* *[INFO] * *[INFO] Command failed.The svn command failed.* *[INFO] * *[INFO] Trace* *org.apache.maven.lifecycle.LifecycleExecutionException: Command failed.The svn command failed.* *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) * *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) * *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) * *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) * *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227) * *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) * *at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)* *at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)* *at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)* *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:597)* *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: Command failed.The svn command failed.* *at org.apache.maven.scm.plugin.AbstractScmMojo.checkResult(AbstractScmMojo.java:400) * *at org.apache.maven.scm.plugin.UpdateMojo.execute(UpdateMojo.java:93)* *at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) * *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) * *... 16 more* *[INFO] * *[INFO] Total time: 7 seconds* *[INFO] Finished at: Fri Feb 20 09:34:57 EST 2009* *[INFO] Final Memory: 8M/16M* *[INFO] * *733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $* --- Thank You… Mick Knutson
Re: scm plugin help please
Does not look like that is it: 733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $ 733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $ 733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $ *svn --non-interactive up At revision 5.* 733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $ svn cleanup --non-interactive 733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $* svn up At revision 5.* 733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $ svn cleanup 733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $ --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Twitter: http://twitter.com/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Fri, Feb 20, 2009 at 9:44 AM, Mark Struberg strub...@yahoo.de wrote: may this be a reincarnation of the --non-interactive bug with svn-1.5 on MacOsX? http://jira.codehaus.org/browse/SCM-402 what says svn if you execute the SVN command with and without the --non-interactive? txs and LieGrue, strub --- Mick Knutson mickknut...@gmail.com schrieb am Fr, 20.2.2009: Von: Mick Knutson mickknut...@gmail.com Betreff: scm plugin help please An: maven users@maven.apache.org Datum: Freitag, 20. Februar 2009, 15:38 I am trying to use the scm plugin to perform an svn update. I can successfully run svn cleanup, svn up, and svn ci from the command line. But when I run a mvn scm:update -e I get an error saying my pom.xml is locked as shown below: *733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $ svn cleanup 733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $ svn up At revision 5.* *733...@d5400lpl: /cygdrive/c/opt/projects/grd/trunk/fxg-pom $ mvn scm:update -e* *+ Error stacktraces are turned on.* *[INFO] Scanning for projects...* *[INFO] Searching repository for plugin with prefix: 'scm'.* *WAGON_VERSION: 1.0-beta-2* *[INFO] * *[INFO] Building FXG:: POM* *[INFO]task-segment: [scm:update] (aggregator-style)* *[INFO] * *[INFO] [scm:update]* *[INFO] Executing: cmd.exe /X /C svn --non-interactive update c:\opt\projects\grd\trunk\fxg-pom* *[INFO] Working directory: c:\opt\projects\grd\trunk\fxg-pom* *[INFO] Svn command failed due to some locks in working copy. We try to run a 'svn cleanup'.* *[INFO] Executing: cmd.exe /X /C svn* *[INFO] Working directory: c:\opt\projects\grd\trunk\fxg-pom* *[ERROR] Provider message:* *[ERROR] The svn command failed.* *[ERROR] Command output:* *[ERROR] svn: Working copy 'c:\opt\projects\grd\trunk\fxg-pom' locked svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details) Type 'svn help' for usage.* *[INFO] * *[ERROR] BUILD ERROR* *[INFO] * *[INFO] Command failed.The svn command failed.* *[INFO] * *[INFO] Trace* *org.apache.maven.lifecycle.LifecycleExecutionException: Command failed.The svn command failed.* *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) * *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) * *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) * *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) * *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227) * *at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) * *at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)* *at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)* *at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)* *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:597)* *at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)* *at org.codehaus.classworlds.Launcher.launch
CI checkout on floating tag, then using maven-scm-plugin to update pom.xml to latest?
Hello, I am trying to use Hudson to perform automated software releases based on a floating CVS tag. When developers move the floating tag on the sources, they indicate that the tagged code can go in a next build. Hudson then checks out the code and executes a release:prepare. Problem now is that the changes to pom.xml (done by the release plugin) can't be checked in since the CVS information indicates that the version retrieved is a sticky tag (although usually it is the latest version). To get around this, I want to use maven-scm-plugin (in the validate phase of my Maven run) to update pom.xml to the latest version. However, I tried several goals (update, checkout, export) but pom.xml remains the the version based on the tag. Can anyone tell me how to update pom.xml to the latest version coming from the branch configured in the connectionUrl/developerConnectionUrl info from the POM? Also, my experiments so far seem to indicate that includes/excludes configuration is ignored in the goals tried. Known bug? Ringo * Dit e-mail bericht inclusief eventuele ingesloten bestanden kan informatie bevatten die vertrouwelijk is en/of beschermd door intellectuele eigendomsrechten. Dit bericht is uitsluitend bestemd voor de geadresseerde(n). Elk gebruik van de informatie vervat in dit bericht (waaronder de volledige of gedeeltelijke reproductie of verspreiding onder elke vorm) door andere personen dan de geadresseerde(n) is verboden. Indien u dit bericht per vergissing heeft ontvangen, gelieve de afzender hiervan te verwittigen en dit bericht te verwijderen. This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the addressees. Any use of the information contained herein (including but not limited to total or partial reproduction or distribution in any form) by other persons than the addressees is prohibited. If you have received this e-mail in error, please notify the sender and delete its contents. Ce courriel et les annexes �ventuelles peuvent contenir des informations confidentielles et/ou prot�g�es par des droits de propri�t� intellectuelle. Ce message est adress� exclusivement � son (ses) destinataire(s). Toute utilisation du contenu de ce message (y compris la reproduction ou diffusion partielle ou compl�te sous toute forme) par une autre personne que le(s) destinataire(s) est formellement interdite. Si vous avez re�u ce message par erreur, veuillez pr�venir l'exp�diteur du message et en d�truire le contenu. *
RE: SCM plugin project
I haven't gotten a response from an SCM plugin development person. Perhaps someone on the Maven list could guide me in the right direction. I would like contribute a fix to the SCM plugin. I am trying to build the project but I have questions/issues. Who can I talk to regarding these? Thanks all. And sorry for creating some noise on the Maven list. --- Todd Thiessen -Original Message- From: Thiessen, Todd (BVW:9T16) Sent: Friday, January 09, 2009 5:13 PM To: 'scm-...@maven.apache.org' Cc: 'Maven Users List' Subject: SCM plugin project I have downloaded the source for this project have and have a number questions/concerns. Most of the code seems be under the scm directory. ie: http://svn.apache.org/repos/asf/maven/scm There is a POM at the highest level, with an artifact ID of maven-scm, which indicates many sub-directories as sub-modules. However, there is one sub-module that confuses me: maven-scm-plugin. You would normally expect the parent for this pom to be the parent in the higher directory. However, this isn't the case. Its parent is maven-plugins which is a different artifact altogether. This really seems to make building and versioning of the entire project confusing. Do you release the maven-scm project or the maven-scm-plugin project? I naturally expected to release the maven-scm project but the maven-scm-plugin stands out in that it doesn't define maven-scm as the parent and it also includes all the maven-scm submodule projects as dependancies by explicitly specifying their version. How are the version numbers of all these dependencies incremented when a new version of the plugin is released? --- Todd Thiessen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: SCM plugin project
Hi Todd! maven-scm defines a SPI + a few plugins for various SCMs. But although the name of the project is maven-scm it is not only intended to be used with maven only. There are other projecs (e.g. continuum) which use maven-scm for accessing SCMs without maven. The maven-scm-plugin on the other side is really a maven-plugin! And maven-scm-plugin uses maven-scm to access the SCM you are using. That's the reason why maven-scm-plugin uses the common parent pom used for all maven-plugins (see maven-plugin-plugin for more details) and maven-scm doesn't. LieGrue, strub --- Todd Thiessen thies...@nortel.com schrieb am Di, 13.1.2009: Von: Todd Thiessen thies...@nortel.com Betreff: RE: SCM plugin project An: scm-...@maven.apache.org CC: Maven Users List users@maven.apache.org Datum: Dienstag, 13. Januar 2009, 18:47 I haven't gotten a response from an SCM plugin development person. Perhaps someone on the Maven list could guide me in the right direction. I would like contribute a fix to the SCM plugin. I am trying to build the project but I have questions/issues. Who can I talk to regarding these? Thanks all. And sorry for creating some noise on the Maven list. --- Todd Thiessen -Original Message- From: Thiessen, Todd (BVW:9T16) Sent: Friday, January 09, 2009 5:13 PM To: 'scm-...@maven.apache.org' Cc: 'Maven Users List' Subject: SCM plugin project I have downloaded the source for this project have and have a number questions/concerns. Most of the code seems be under the scm directory. ie: http://svn.apache.org/repos/asf/maven/scm There is a POM at the highest level, with an artifact ID of maven-scm, which indicates many sub-directories as sub-modules. However, there is one sub-module that confuses me: maven-scm-plugin. You would normally expect the parent for this pom to be the parent in the higher directory. However, this isn't the case. Its parent is maven-plugins which is a different artifact altogether. This really seems to make building and versioning of the entire project confusing. Do you release the maven-scm project or the maven-scm-plugin project? I naturally expected to release the maven-scm project but the maven-scm-plugin stands out in that it doesn't define maven-scm as the parent and it also includes all the maven-scm submodule projects as dependancies by explicitly specifying their version. How are the version numbers of all these dependencies incremented when a new version of the plugin is released? --- Todd Thiessen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: SCM plugin project
Thanks for the response Mark. Are you considered an SCM committer/developer? I have a fix/enchancement I would like to submit and am seeking some guidance. If we should take this strictly to the scm-dev list that is fine too. I don't want to create unnessary noice on the Maven list although there may be others would are looking to do this too. --- Todd Thiessen -Original Message- From: Mark Struberg [mailto:strub...@yahoo.de] Sent: Tuesday, January 13, 2009 3:06 PM To: scm-...@maven.apache.org; Maven Users List Subject: RE: SCM plugin project Hi Todd! maven-scm defines a SPI + a few plugins for various SCMs. But although the name of the project is maven-scm it is not only intended to be used with maven only. There are other projecs (e.g. continuum) which use maven-scm for accessing SCMs without maven. The maven-scm-plugin on the other side is really a maven-plugin! And maven-scm-plugin uses maven-scm to access the SCM you are using. That's the reason why maven-scm-plugin uses the common parent pom used for all maven-plugins (see maven-plugin-plugin for more details) and maven-scm doesn't. LieGrue, strub --- Todd Thiessen thies...@nortel.com schrieb am Di, 13.1.2009: Von: Todd Thiessen thies...@nortel.com Betreff: RE: SCM plugin project An: scm-...@maven.apache.org CC: Maven Users List users@maven.apache.org Datum: Dienstag, 13. Januar 2009, 18:47 I haven't gotten a response from an SCM plugin development person. Perhaps someone on the Maven list could guide me in the right direction. I would like contribute a fix to the SCM plugin. I am trying to build the project but I have questions/issues. Who can I talk to regarding these? Thanks all. And sorry for creating some noise on the Maven list. --- Todd Thiessen -Original Message- From: Thiessen, Todd (BVW:9T16) Sent: Friday, January 09, 2009 5:13 PM To: 'scm-...@maven.apache.org' Cc: 'Maven Users List' Subject: SCM plugin project I have downloaded the source for this project have and have a number questions/concerns. Most of the code seems be under the scm directory. ie: http://svn.apache.org/repos/asf/maven/scm There is a POM at the highest level, with an artifact ID of maven-scm, which indicates many sub-directories as sub-modules. However, there is one sub-module that confuses me: maven-scm-plugin. You would normally expect the parent for this pom to be the parent in the higher directory. However, this isn't the case. Its parent is maven-plugins which is a different artifact altogether. This really seems to make building and versioning of the entire project confusing. Do you release the maven-scm project or the maven-scm-plugin project? I naturally expected to release the maven-scm project but the maven-scm-plugin stands out in that it doesn't define maven-scm as the parent and it also includes all the maven-scm submodule projects as dependancies by explicitly specifying their version. How are the version numbers of all these dependencies incremented when a new version of the plugin is released? --- Todd Thiessen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: SCM plugin project
the maven-scm-plugin inherits from maven-plugins' project which make sense since it is a plugin. But that introduces confusion. We can follow the surefire model, to make the plugins inherits from surefire's parent but change groupId -D On Tue, Jan 13, 2009 at 12:39 PM, Todd Thiessen thies...@nortel.com wrote: Thanks for the response Mark. Are you considered an SCM committer/developer? I have a fix/enchancement I would like to submit and am seeking some guidance. If we should take this strictly to the scm-dev list that is fine too. I don't want to create unnessary noice on the Maven list although there may be others would are looking to do this too. --- Todd Thiessen -Original Message- From: Mark Struberg [mailto:strub...@yahoo.de] Sent: Tuesday, January 13, 2009 3:06 PM To: scm-...@maven.apache.org; Maven Users List Subject: RE: SCM plugin project Hi Todd! maven-scm defines a SPI + a few plugins for various SCMs. But although the name of the project is maven-scm it is not only intended to be used with maven only. There are other projecs (e.g. continuum) which use maven-scm for accessing SCMs without maven. The maven-scm-plugin on the other side is really a maven-plugin! And maven-scm-plugin uses maven-scm to access the SCM you are using. That's the reason why maven-scm-plugin uses the common parent pom used for all maven-plugins (see maven-plugin-plugin for more details) and maven-scm doesn't. LieGrue, strub --- Todd Thiessen thies...@nortel.com schrieb am Di, 13.1.2009: Von: Todd Thiessen thies...@nortel.com Betreff: RE: SCM plugin project An: scm-...@maven.apache.org CC: Maven Users List users@maven.apache.org Datum: Dienstag, 13. Januar 2009, 18:47 I haven't gotten a response from an SCM plugin development person. Perhaps someone on the Maven list could guide me in the right direction. I would like contribute a fix to the SCM plugin. I am trying to build the project but I have questions/issues. Who can I talk to regarding these? Thanks all. And sorry for creating some noise on the Maven list. --- Todd Thiessen -Original Message- From: Thiessen, Todd (BVW:9T16) Sent: Friday, January 09, 2009 5:13 PM To: 'scm-...@maven.apache.org' Cc: 'Maven Users List' Subject: SCM plugin project I have downloaded the source for this project have and have a number questions/concerns. Most of the code seems be under the scm directory. ie: http://svn.apache.org/repos/asf/maven/scm There is a POM at the highest level, with an artifact ID of maven-scm, which indicates many sub-directories as sub-modules. However, there is one sub-module that confuses me: maven-scm-plugin. You would normally expect the parent for this pom to be the parent in the higher directory. However, this isn't the case. Its parent is maven-plugins which is a different artifact altogether. This really seems to make building and versioning of the entire project confusing. Do you release the maven-scm project or the maven-scm-plugin project? I naturally expected to release the maven-scm project but the maven-scm-plugin stands out in that it doesn't define maven-scm as the parent and it also includes all the maven-scm submodule projects as dependancies by explicitly specifying their version. How are the version numbers of all these dependencies incremented when a new version of the plugin is released? --- Todd Thiessen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: SCM plugin project
you can always open a discussion, or submit a patch with test. -D On Tue, Jan 13, 2009 at 1:27 PM, Dan Tran dant...@gmail.com wrote: the maven-scm-plugin inherits from maven-plugins' project which make sense since it is a plugin. But that introduces confusion. We can follow the surefire model, to make the plugins inherits from surefire's parent but change groupId -D On Tue, Jan 13, 2009 at 12:39 PM, Todd Thiessen thies...@nortel.com wrote: Thanks for the response Mark. Are you considered an SCM committer/developer? I have a fix/enchancement I would like to submit and am seeking some guidance. If we should take this strictly to the scm-dev list that is fine too. I don't want to create unnessary noice on the Maven list although there may be others would are looking to do this too. --- Todd Thiessen -Original Message- From: Mark Struberg [mailto:strub...@yahoo.de] Sent: Tuesday, January 13, 2009 3:06 PM To: scm-...@maven.apache.org; Maven Users List Subject: RE: SCM plugin project Hi Todd! maven-scm defines a SPI + a few plugins for various SCMs. But although the name of the project is maven-scm it is not only intended to be used with maven only. There are other projecs (e.g. continuum) which use maven-scm for accessing SCMs without maven. The maven-scm-plugin on the other side is really a maven-plugin! And maven-scm-plugin uses maven-scm to access the SCM you are using. That's the reason why maven-scm-plugin uses the common parent pom used for all maven-plugins (see maven-plugin-plugin for more details) and maven-scm doesn't. LieGrue, strub --- Todd Thiessen thies...@nortel.com schrieb am Di, 13.1.2009: Von: Todd Thiessen thies...@nortel.com Betreff: RE: SCM plugin project An: scm-...@maven.apache.org CC: Maven Users List users@maven.apache.org Datum: Dienstag, 13. Januar 2009, 18:47 I haven't gotten a response from an SCM plugin development person. Perhaps someone on the Maven list could guide me in the right direction. I would like contribute a fix to the SCM plugin. I am trying to build the project but I have questions/issues. Who can I talk to regarding these? Thanks all. And sorry for creating some noise on the Maven list. --- Todd Thiessen -Original Message- From: Thiessen, Todd (BVW:9T16) Sent: Friday, January 09, 2009 5:13 PM To: 'scm-...@maven.apache.org' Cc: 'Maven Users List' Subject: SCM plugin project I have downloaded the source for this project have and have a number questions/concerns. Most of the code seems be under the scm directory. ie: http://svn.apache.org/repos/asf/maven/scm There is a POM at the highest level, with an artifact ID of maven-scm, which indicates many sub-directories as sub-modules. However, there is one sub-module that confuses me: maven-scm-plugin. You would normally expect the parent for this pom to be the parent in the higher directory. However, this isn't the case. Its parent is maven-plugins which is a different artifact altogether. This really seems to make building and versioning of the entire project confusing. Do you release the maven-scm project or the maven-scm-plugin project? I naturally expected to release the maven-scm project but the maven-scm-plugin stands out in that it doesn't define maven-scm as the parent and it also includes all the maven-scm submodule projects as dependancies by explicitly specifying their version. How are the version numbers of all these dependencies incremented when a new version of the plugin is released? --- Todd Thiessen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: SCM plugin project
Thanks Dan. I think I understand the reasoning for the distintion. Now I would like to get a fix/enhancement built and submitted. I can revisit this issue again (I have for the most part dropped it for this week) and work on simply building the maven-scm-plugin project and not all of maven-scm. I wouldn't mind in parrallel going through the steps to get my contribution reviewed, submitted and cut a new release of the plugin. --- Todd Thiessen -Original Message- From: Dan Tran [mailto:dant...@gmail.com] Sent: Tuesday, January 13, 2009 4:28 PM To: Maven Users List Subject: Re: SCM plugin project the maven-scm-plugin inherits from maven-plugins' project which make sense since it is a plugin. But that introduces confusion. We can follow the surefire model, to make the plugins inherits from surefire's parent but change groupId -D On Tue, Jan 13, 2009 at 12:39 PM, Todd Thiessen thies...@nortel.com wrote: Thanks for the response Mark. Are you considered an SCM committer/developer? I have a fix/enchancement I would like to submit and am seeking some guidance. If we should take this strictly to the scm-dev list that is fine too. I don't want to create unnessary noice on the Maven list although there may be others would are looking to do this too. --- Todd Thiessen -Original Message- From: Mark Struberg [mailto:strub...@yahoo.de] Sent: Tuesday, January 13, 2009 3:06 PM To: scm-...@maven.apache.org; Maven Users List Subject: RE: SCM plugin project Hi Todd! maven-scm defines a SPI + a few plugins for various SCMs. But although the name of the project is maven-scm it is not only intended to be used with maven only. There are other projecs (e.g. continuum) which use maven-scm for accessing SCMs without maven. The maven-scm-plugin on the other side is really a maven-plugin! And maven-scm-plugin uses maven-scm to access the SCM you are using. That's the reason why maven-scm-plugin uses the common parent pom used for all maven-plugins (see maven-plugin-plugin for more details) and maven-scm doesn't. LieGrue, strub --- Todd Thiessen thies...@nortel.com schrieb am Di, 13.1.2009: Von: Todd Thiessen thies...@nortel.com Betreff: RE: SCM plugin project An: scm-...@maven.apache.org CC: Maven Users List users@maven.apache.org Datum: Dienstag, 13. Januar 2009, 18:47 I haven't gotten a response from an SCM plugin development person. Perhaps someone on the Maven list could guide me in the right direction. I would like contribute a fix to the SCM plugin. I am trying to build the project but I have questions/issues. Who can I talk to regarding these? Thanks all. And sorry for creating some noise on the Maven list. --- Todd Thiessen -Original Message- From: Thiessen, Todd (BVW:9T16) Sent: Friday, January 09, 2009 5:13 PM To: 'scm-...@maven.apache.org' Cc: 'Maven Users List' Subject: SCM plugin project I have downloaded the source for this project have and have a number questions/concerns. Most of the code seems be under the scm directory. ie: http://svn.apache.org/repos/asf/maven/scm There is a POM at the highest level, with an artifact ID of maven-scm, which indicates many sub-directories as sub-modules. However, there is one sub-module that confuses me: maven-scm-plugin. You would normally expect the parent for this pom to be the parent in the higher directory. However, this isn't the case. Its parent is maven-plugins which is a different artifact altogether. This really seems to make building and versioning of the entire project confusing. Do you release the maven-scm project or the maven-scm-plugin project? I naturally expected to release the maven-scm project but the maven-scm-plugin stands out in that it doesn't define maven-scm as the parent and it also includes all the maven-scm submodule projects as dependancies by explicitly specifying their version. How are the version numbers of all these dependencies incremented when a new version of the plugin is released? --- Todd Thiessen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: SCM plugin project
Hi Todd! Is it a) an enhancement to the maven-scm-plugin itself? Or b) does it dig deeper into maven-scm and we have to change the scm-API too? For both options you'd probably file a Jira [1] which describes the motivation and the changes you like to do first. Then you may attach a patch or provide your changes via a online repo. I personally would prefer git ;) For option b) we should definitely switch over to the scm-dev list again. LieGrue, strub [1] http://jira.codehaus.org/browse/SCM --- Todd Thiessen thies...@nortel.com schrieb am Di, 13.1.2009: Von: Todd Thiessen thies...@nortel.com Betreff: RE: SCM plugin project An: Maven Users List users@maven.apache.org Datum: Dienstag, 13. Januar 2009, 22:39 Thanks Dan. I think I understand the reasoning for the distintion. Now I would like to get a fix/enhancement built and submitted. I can revisit this issue again (I have for the most part dropped it for this week) and work on simply building the maven-scm-plugin project and not all of maven-scm. I wouldn't mind in parrallel going through the steps to get my contribution reviewed, submitted and cut a new release of the plugin. --- Todd Thiessen -Original Message- From: Dan Tran [mailto:dant...@gmail.com] Sent: Tuesday, January 13, 2009 4:28 PM To: Maven Users List Subject: Re: SCM plugin project the maven-scm-plugin inherits from maven-plugins' project which make sense since it is a plugin. But that introduces confusion. We can follow the surefire model, to make the plugins inherits from surefire's parent but change groupId -D On Tue, Jan 13, 2009 at 12:39 PM, Todd Thiessen thies...@nortel.com wrote: Thanks for the response Mark. Are you considered an SCM committer/developer? I have a fix/enchancement I would like to submit and am seeking some guidance. If we should take this strictly to the scm-dev list that is fine too. I don't want to create unnessary noice on the Maven list although there may be others would are looking to do this too. --- Todd Thiessen -Original Message- From: Mark Struberg [mailto:strub...@yahoo.de] Sent: Tuesday, January 13, 2009 3:06 PM To: scm-...@maven.apache.org; Maven Users List Subject: RE: SCM plugin project Hi Todd! maven-scm defines a SPI + a few plugins for various SCMs. But although the name of the project is maven-scm it is not only intended to be used with maven only. There are other projecs (e.g. continuum) which use maven-scm for accessing SCMs without maven. The maven-scm-plugin on the other side is really a maven-plugin! And maven-scm-plugin uses maven-scm to access the SCM you are using. That's the reason why maven-scm-plugin uses the common parent pom used for all maven-plugins (see maven-plugin-plugin for more details) and maven-scm doesn't. LieGrue, strub --- Todd Thiessen thies...@nortel.com schrieb am Di, 13.1.2009: Von: Todd Thiessen thies...@nortel.com Betreff: RE: SCM plugin project An: scm-...@maven.apache.org CC: Maven Users List users@maven.apache.org Datum: Dienstag, 13. Januar 2009, 18:47 I haven't gotten a response from an SCM plugin development person. Perhaps someone on the Maven list could guide me in the right direction. I would like contribute a fix to the SCM plugin. I am trying to build the project but I have questions/issues. Who can I talk to regarding these? Thanks all. And sorry for creating some noise on the Maven list. --- Todd Thiessen -Original Message- From: Thiessen, Todd (BVW:9T16) Sent: Friday, January 09, 2009 5:13 PM To: 'scm-...@maven.apache.org' Cc: 'Maven Users List' Subject: SCM plugin project I have downloaded the source for this project have and have a number questions/concerns. Most of the code seems be under the scm directory. ie: http://svn.apache.org/repos/asf/maven/scm There is a POM at the highest level, with an artifact ID of maven-scm, which indicates many sub-directories as sub-modules. However, there is one sub-module that confuses me: maven-scm-plugin. You would normally expect the parent for this pom to be the parent in the higher directory. However, this isn't the case. Its parent is maven-plugins which is a different artifact altogether. This really seems to make building and versioning of the entire project confusing. Do you release the maven-scm project or the maven-scm-plugin project? I naturally expected to release the maven-scm project but the maven-scm-plugin stands out in that it doesn't define maven-scm as the parent and it also includes all the maven
Release mavn-scm plugin project
I have copied the scm plugin to my local repo and want to make some customizations (I can't submit these back to the public repo yet) but I am having trouble using the release plugin to release this project and deploy to our internal Maven repo.. However, the release fails because of the GpgPlugin, which I never used before. But the gpg plugin is defined in the maven-parent pom? Is there a way I can stop the scm project from using it without having to also download maven-parent pom project and remove it from there? --- Todd Thiessen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
SCM plugin project
I have downloaded the source for this project have and have a number questions/concerns. Most of the code seems be under the scm directory. ie: http://svn.apache.org/repos/asf/maven/scm There is a POM at the highest level, with an artifact ID of maven-scm, which indicates many sub-directories as sub-modules. However, there is one sub-module that confuses me: maven-scm-plugin. You would normally expect the parent for this pom to be the parent in the higher directory. However, this isn't the case. Its parent is maven-plugins which is a different artifact altogether. This really seems to make building and versioning of the entire project confusing. Do you release the maven-scm project or the maven-scm-plugin project? I naturally expected to release the maven-scm project but the maven-scm-plugin stands out in that it doesn't define maven-scm as the parent and it also includes all the maven-scm submodule projects as dependancies by explicitly specifying their version. How are the version numbers of all these dependencies incremented when a new version of the plugin is released? --- Todd Thiessen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Release mavn-scm plugin project
On Fri, Jan 9, 2009 at 1:51 PM, Todd Thiessen thies...@nortel.com wrote: I have copied the scm plugin to my local repo and want to make some customizations (I can't submit these back to the public repo yet) but I am having trouble using the release plugin to release this project and deploy to our internal Maven repo.. However, the release fails because of the GpgPlugin, which I never used before. Change the parent of the modified plugin to your own organizational parent, (or none at all). You might want to review the original parent to see if you need to copy anything else down into the modified plugin's pom, since it will not be inherited. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
scm plugin 1.1 problems
Hi, When I run mvn scm:checkout I keep hitting the issue below: [INFO] Cannot run status command : Embedded error: Can't login. Perforce password (P4PASSWD) invalid or unset. [INFO] I am using Perforce and I have tried setting P4PASSWD, ensuring I am logged in before running the command, and configuring the plugin with a valid username and password. I have run with -X to ensure username and password are correct and they are. But I can't get past this error. Has anyone come across this before? -- Robert
Problem with Perforce SCM plugin: requires password
I've been using the Perforce SCM plugin for about a year now in our project and it has worked fine up until today. Now suddenly when I try to do releases of our project, the SCM plugin fails with the exception: password is required for the perforce scm plugin Searching for this online I find that a recent patch to the plugin forces a password to be set. Here's a link to a post about this: http://www.nabble.com/-jira--Created:-(SCM-415)-1.1-requires-setting-a-Perforce-password-breaking-Perforce-setup-for-external-authentication-td19713201.html Apparently this problem is recognized and this post contains a patch for it but I have no way of knowing how to use it. Is there a work-around for this problem? This is a serious show-stopper right now. I can't build new releases of our product until I have a work around for this. Thanks -- View this message in context: http://www.nabble.com/Problem-with-Perforce-SCM-plugin%3A-requires-password-tp20343436p20343436.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using a previous version of release and/or the maven SCM plugin
I seem to be stumbling hard over a few bugs that have already been identified, reported, and it looks like patches are available - http://jira.codehaus.org/browse/SCM-415. Almost all of my environment is using token based authentication with Perforce, so I thought I'd just push back to the previous version of the Maven SCM plugin (1.0) until a fix is formally released. Unfortunately, I don't seem to be quite grokking how to do that. I've tried adding the following into my project POM stanza, but it's not terribly happy about it: build plugins groupIdorg.apache.maven.release/groupId artifactIdmaven-release/artifactId version4/version /plugins ... /build I've also tried just aiming it at the SCM plugin: build plugins groupIdorg.apache.maven.scm/groupId artifactIdmaven-scm/artifactId version1.0/version /plugins ... /build I've got 1.0 working fine on another system, but I'm at a complete loss on how to specify that I want to use an earlier version of the SCM or release plugin (and it's dependencies) until the kinks get worked out of this latest version. Can anyone enlighten me? -joe Joseph Heck Disney Interactive Media Group - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using a previous version of release and/or the maven SCM plugin
Ah, nevermind - After I asked, I tried a few more variations, finally actually LOOKING at the super-pom to find out where it was supposed to go. GFor the reference archives, my solution is: build ... pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version2.0-beta-7/version /plugin /plugins /pluginManagement ... /build -joe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Heck, Joe Sent: Wednesday, November 05, 2008 3:27 PM To: Maven Users List Cc: Jackson, Brian R Subject: Using a previous version of release and/or the maven SCM plugin I seem to be stumbling hard over a few bugs that have already been identified, reported, and it looks like patches are available - http://jira.codehaus.org/browse/SCM-415. Almost all of my environment is using token based authentication with Perforce, so I thought I'd just push back to the previous version of the Maven SCM plugin (1.0) until a fix is formally released. Unfortunately, I don't seem to be quite grokking how to do that. I've tried adding the following into my project POM stanza, but it's not terribly happy about it: build plugins groupIdorg.apache.maven.release/groupId artifactIdmaven-release/artifactId version4/version /plugins ... /build I've also tried just aiming it at the SCM plugin: build plugins groupIdorg.apache.maven.scm/groupId artifactIdmaven-scm/artifactId version1.0/version /plugins ... /build I've got 1.0 working fine on another system, but I'm at a complete loss on how to specify that I want to use an earlier version of the SCM or release plugin (and it's dependencies) until the kinks get worked out of this latest version. Can anyone enlighten me? -joe Joseph Heck Disney Interactive Media Group - 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]
Re: Can use Maven SCM plugin API to Move some versiond SVN File from one folde to another?
I find a pure java SVN client here:http://svnkit.com/ and I can use mvn move,mvn commit.in java client. 2008/10/20 sean.chen(陈思淼) [EMAIL PROTECTED] I have some project have bad structure and I want to modify it to SVN fold structure, If do it manually, i will be time consuming and easily make mistakes. I want to ask ,can Maven SCM API Help me do this kind of things?
Can use Maven SCM plugin API to Move some versiond SVN File from one folde to another?
I have some project have bad structure and I want to modify it to SVN fold structure, If do it manually, i will be time consuming and easily make mistakes. I want to ask ,can Maven SCM API Help me do this kind of things?
Maven2, maven-scm-plugin, svn, interactive mode
Hi all, I'm trying to use the scm plugin to bootstrap a project from a SVN repository. Using: mvn scm:bootstrap -DconnectionUrl=scm:svn:$SCM_PATH -DscmVersion=$SCM_REVISION -DscmVersionType=$SCM_REVISION_TYPE -Dusername=$SCM_USER -Dpassword=$SCM_PWD -Dgoals=install All works well However, the end user of this script would like SVN to prompt for username, password, and certificate trusting... Per the svn scm provider plugin, I created a config file with useNonInteractivefalse/, which works: maven calls SVN without the -non-interactive option. However, it seems that maven doesn't pipe the svn command's inputs and outputs: On windows (xp sp2), it just hangs (no cpu), as if it were waiting for input, but there is no message On Solaris (5.6, sh), I do get a request for a password, based on the current user (although this isn't the user I want to use, this seems to be a logical svn behaviour), but doesn't react to input. Has anyone had any success using the interactive mode for svn with the scm plugin? Also, are there any known plans on making the interactive mode available via a -D switch? [Based on my reading of maven-scm-provider-svn-commons-1.1-sources maven-scm-provider-svnexe-1.1-sources, there is nothing in that direction so far] My current workaround is to prompt for username password in the script, and pass these to maven, using the non-interactive default mode, although this does not cater for certificate problems. Thanks in advance, Jonathan Winterflood Capgemini Ouest - Agence de Brest
Custom locations with maven-scm-plugin (SVN)
Hi everyone, I am trying to structure a complex Maven structure for a multi-module-multi-projects delivery chain, based on a set of Subversion repositories. I have been browsing around the maven-scm-plugin configuration and usage, but could not solve this simple problem: - how to define a custom checkout location ? I don't (necessarily) want the pom.xml to be located in the Subversion repository configured under the scm, nor do I want this repository to be checked-out right under the current working directory... - IF this is done in the $user.home/.scm/???-settings.xml, how can I instruct Maven to actually look into another place for this file ? (i.e. the purpose is to have different checkout locations for different projects) Any help appreciated! Thanks Olivier -- *Olivier Gies* *Delivery Manager Customs Tax Software Engineering Center Bull, Architect of an Open World ^TM Phone: +86 (10) 65978001 - Ext 555 * *www.bull.com http://www.bull.com/* *This e-mail contains material that is confidential for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.*
Anyone using Synergy in SCM Plugin under Linux ?
Hello, anyone using Synergy unter Linux ? I facing a Problem that i cannot figure out how to provide a path to the database. Running Synergy under Windows causes no Problem. A command like that should be generated : ccm start -nogui -m -q -n user -pw secret -d /path/to/db/skm/ccm_databases/ But it outputs something like that: [INFO] Removing /home/build/maven-test-checkout/target/checkout [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Cannot run checkout command : Embedded error: Exception while executing SCM command. Commandeline = /bin/sh -c ccm start -nogui -m -q -n user -pw secret STDOUT = STDERR = Warning: /database/db does not exist. Warning: Telelogic Synergy startup failed. Kindly Regards, Jens - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-scm-plugin connectionUrl scm:svn:file:///
I am trying to use the SCM plugin to commit a file back to SVN after the build is complete. The build takes place on our CI server, which causes a buildnumber to increment, which we need stored in svn. So while our SVN repo is remote to my development box, it is actually local to the CI server (svn and CI on the same box) For me to hitup svn, I have a username and password and use svn+ssh, but for a commit from the same box, we have the scm connection url set to scm:file. Everything goes well until the commit after the build where we are getting [INFO] [scm:checkin] [INFO] Executing: svn --username tomcat --password * --non-interactive commit --file /tmp/maven-scm-1772422631.commit [INFO] Working directory: /usr/local/.../hudson/jobs/projectname/workspace/projectname [ERROR] Provider message: [ERROR] The svn command failed. [ERROR] Command output: [ERROR] svn: Commit failed (details follow): svn: Can't create directory '/usr/local/.../svnrepos/projectname/db/transactions/205-1.txn': Permission denied I can scm:update, scm:changelog, or whatever else I want, but I can't checkin because of this permission denied. My configuration is plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.0-rc1/version configuration connectionTypeconnection/connectionType includesbuildNumber.properies/includes message automated build, incremented buildnumber /message usernamemyusername/username passwordmypassword/password connectionUrl scm:svn:file:///usr/local/.../svnrepos/project /connectionUrl /configuration executions execution idchecking_incremented_buildnumber/id phasepost-integration-test/phase goals goalcheckin/goal /goals /execution /executions /plugin My question is: is the username and password ignored when the connection is scm:file ?? Another question I suppose is does the error that is occurring look like its a result of a username and password being invalid or not supplied? Thanks. -- View this message in context: http://n2.nabble.com/maven-scm-plugin-connectionUrl-scm%3Asvn%3Afile%3Atp681339p681339.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-scm-plugin connectionUrl scm:svn:file:///
I don't think SVN is able to use the username and password for filesystem changes since that won't change the active system user. You should have to run the command as a user that has permission to write to the file repository, or use a different front end like SVN. I don't think this is related to the Maven plugins at all, or that there is anything they can do to help, sorry. Cheers, Brett 2008/8/9 mikenereson [EMAIL PROTECTED]: I am trying to use the SCM plugin to commit a file back to SVN after the build is complete. The build takes place on our CI server, which causes a buildnumber to increment, which we need stored in svn. So while our SVN repo is remote to my development box, it is actually local to the CI server (svn and CI on the same box) For me to hitup svn, I have a username and password and use svn+ssh, but for a commit from the same box, we have the scm connection url set to scm:file. Everything goes well until the commit after the build where we are getting [INFO] [scm:checkin] [INFO] Executing: svn --username tomcat --password * --non-interactive commit --file /tmp/maven-scm-1772422631.commit [INFO] Working directory: /usr/local/.../hudson/jobs/projectname/workspace/projectname [ERROR] Provider message: [ERROR] The svn command failed. [ERROR] Command output: [ERROR] svn: Commit failed (details follow): svn: Can't create directory '/usr/local/.../svnrepos/projectname/db/transactions/205-1.txn': Permission denied I can scm:update, scm:changelog, or whatever else I want, but I can't checkin because of this permission denied. My configuration is plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.0-rc1/version configuration connectionTypeconnection/connectionType includesbuildNumber.properies/includes message automated build, incremented buildnumber /message usernamemyusername/username passwordmypassword/password connectionUrl scm:svn:file:///usr/local/.../svnrepos/project /connectionUrl /configuration executions execution idchecking_incremented_buildnumber/id phasepost-integration-test/phase goals goalcheckin/goal /goals /execution /executions /plugin My question is: is the username and password ignored when the connection is scm:file ?? Another question I suppose is does the error that is occurring look like its a result of a username and password being invalid or not supplied? Thanks. -- View this message in context: http://n2.nabble.com/maven-scm-plugin-connectionUrl-scm%3Asvn%3Afile%3Atp681339p681339.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Brett Porter Blog: http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Stat-scm plugin 1.1.0
Hi, I want to generate my project's site. I'm using stat-scm plugin of net.sf version 1.1.0 to generate some SVN reports. After building my project (site:site) , stat-scm plugin generates some charts in ${myproject}/target/site/statscm folder and pages in {$myproject}/target/generated-site folder and in xml format (not in html). How can I configure stat-scm plugin to generate pages in html format not in xml and generate them in ${myproject}/target/site/statscm folder not in {$myproject}/target/generated-site folder. This is my reporting section in pom.xml project .. reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId version2.4/version configuration source1.5/source doclet gr.spinellis.umlgraph.doclet.UmlGraphDoc /doclet docletArtifact groupIdgr.spinellis/groupId artifactIdUmlGraph/artifactId version4.4/version /docletArtifact additionalparam -inferrel -inferdep -hide java.* -collpackages java.util.* -attributes -operations -enumerations -enumconstants -visibility /additionalparam /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jxr-plugin/artifactId version2.1/version /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-report-plugin/artifactId version2.4.3/version /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdtaglist-maven-plugin/artifactId version2.2/version /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.4/version configuration targetJdk1.5/targetJdk /configuration /plugin plugin groupIdnet.sf/groupId artifactIdstat-scm/artifactId version1.1.0/version /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId version2.2/version /plugin /plugins /reporting .. /project Thanks, Arsen -- View this message in context: http://www.nabble.com/Stat-scm-plugin-1.1.0-tp18354960p18354960.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn site / reports / scm plugin
Yes, it worked manually from my console. Also, now I finally got an idea of how to not duplicate the scm connection details for every project, i just added: scm connectionscm:svn:${svn-repository}/${project.artifactId}/connection developerConnectionscm:svn:${svn-repository}/${project.artifactId}/developerConnection url${svn-repository}/${project.artifactId}//url /scm As the artifactId is always the name of the project in svn, this works for all projects (and I don't get the The scm url does not contain a valid delimiter. error, nor the server certificate verification failed: certificate issued for a different hostname, issuer is not trusted error anymore. Thanks.
Re: mvn site / reports / scm plugin
Hm, could noone help me, plase? :-((( To make a long story short: I would like to use the changelog plugin as part of my site generation. The changelog plugin again is using the scm plugin, to retrieve changes from subversion. I am looking for the best / easiest way of how to configure the thing so that it generates those reports for all my sub projects that all are sharing the same parent pom. Anyone??? Thanks, Peter
Re: mvn site / reports / scm plugin
Server certificate verification failed: certificate issued for a different hostname, issuer is not trusted Seems that you have a problem with the certificate. Can you run the failing svn command on the command line? svn --non-interactive log -v -r {2008-05-31 16:02:01+}:{2008-07-01 16:02:01 +} https://myURL:443/myMainProject/TRUNK/subprojectXY Peter Horlock wrote: Hi folks, I am using Maven 2.09 with site plugin 2.0-beta-6, maven-project-info-reports-plugin 2.0.1 and the maven-changelog-plugin 2.1. In my parent pom I got: […] scm connectionscm:svn:https://myURL:443/myMainProject/TRUNK /connection developerConnectionscm:svn:https://myURL:443/myMainProject/TRUNK /developerConnection urlhttps://myURL:443/myMainProject/TRUNK //url /scm […] 1. Running mvn site just for the parent pom works fine. Running mvn site for sub projects works fine,* IF*: a) I am running it by typing mvn site from the parent pom project *AND* b) I added the foldername of the sub project to the scm url 2. When I am in the folder of a sub project, and run mvn site –o, it also works. I guess the offline mode will exclude the scm report. 3. When I am in the folder of a sub project, and I run mvn site, *without *adding the name of the sub project to the scm url, I get this error: [INFO] Error during page generation Embedded error: Error rendering Maven report: Cannot run changelog command : *The scm url does not contain a valid delimiter.* 4. When I add the name of the sub folder to the scm url, like this: scm connectionscm:svn:https://myURL:443/myMainProject/TRUNK/*mySubProjectXY* /connection developerConnectionscm:svn:https://myURL:443/myMainProject/TRUNK/* mySubProjectXY* /developerConnection urlhttps://myURL:443/myMainProject/TRUNK //*mySubProjectXY*//url /scm I get: [INFO] Generating changed sets xml to: target\changelog.xml [INFO] Executing: svn --non-interactive log -v -r {2008-05-31 16:02:01 +}:{ 2008-07-01 16:02:01 +} https://myURL:443/myMainProject/TRUNK/subprojectXY [INFO] Working directory: C:\subprojectXY [ERROR] Provider message: [ERROR] The svn command failed. [ERROR] Command output: [ERROR] svn: PROPFIND request failed on '/myMainProject/TRUNK/subprojectXY' svn: PROPFIND of '/myMainProject/TRUNK/subprojectXY': *Server certificate verification fail ed: certificate issued for a different hostname, issuer is not trusted (https:// myURL) *- while the same thing* IS *working when I am calling mvn site from the parent pom folder.* * Question: How can I make this work (best was if I just had to adjust the parent pom, and not to adjust the scm url for each sub project…) – Do I have to add the name of a sub project to the scm url? If so, why does it say issuer is not trusted – when I am in the folder of the parent pom and do the same, it does work without this error… I know I had this working a while ago - maybe they changed the way the site / scm plugin is working??? Thanks in advance, Peter -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn site / reports / scm plugin
Hi folks, I am using Maven 2.09 with site plugin 2.0-beta-6, maven-project-info-reports-plugin 2.0.1 and the maven-changelog-plugin 2.1. In my parent pom I got: […] scm connectionscm:svn:https://myURL:443/myMainProject/TRUNK /connection developerConnectionscm:svn:https://myURL:443/myMainProject/TRUNK /developerConnection urlhttps://myURL:443/myMainProject/TRUNK //url /scm […] 1. Running mvn site just for the parent pom works fine. Running mvn site for sub projects works fine,* IF*: a) I am running it by typing mvn site from the parent pom project *AND* b) I added the foldername of the sub project to the scm url 2. When I am in the folder of a sub project, and run mvn site –o, it also works. I guess the offline mode will exclude the scm report. 3. When I am in the folder of a sub project, and I run mvn site, *without *adding the name of the sub project to the scm url, I get this error: [INFO] Error during page generation Embedded error: Error rendering Maven report: Cannot run changelog command : *The scm url does not contain a valid delimiter.* 4. When I add the name of the sub folder to the scm url, like this: scm connectionscm:svn:https://myURL:443/myMainProject/TRUNK/*mySubProjectXY* /connection developerConnectionscm:svn:https://myURL:443/myMainProject/TRUNK/* mySubProjectXY* /developerConnection urlhttps://myURL:443/myMainProject/TRUNK //*mySubProjectXY*//url /scm I get: [INFO] Generating changed sets xml to: target\changelog.xml [INFO] Executing: svn --non-interactive log -v -r {2008-05-31 16:02:01 +}:{ 2008-07-01 16:02:01 +} https://myURL:443/myMainProject/TRUNK/subprojectXY [INFO] Working directory: C:\subprojectXY [ERROR] Provider message: [ERROR] The svn command failed. [ERROR] Command output: [ERROR] svn: PROPFIND request failed on '/myMainProject/TRUNK/subprojectXY' svn: PROPFIND of '/myMainProject/TRUNK/subprojectXY': *Server certificate verification fail ed: certificate issued for a different hostname, issuer is not trusted (https:// myURL) *- while the same thing* IS *working when I am calling mvn site from the parent pom folder.* * Question: How can I make this work (best was if I just had to adjust the parent pom, and not to adjust the scm url for each sub project…) – Do I have to add the name of a sub project to the scm url? If so, why does it say issuer is not trusted – when I am in the folder of the parent pom and do the same, it does work without this error… I know I had this working a while ago - maybe they changed the way the site / scm plugin is working??? Thanks in advance, Peter
help regarding checkout according to tagname using mvn scm plugin
I want to checkout my project according to tagname.Can anyone helpme out with the command? -- View this message in context: http://www.nabble.com/help-regarding-checkout-according-to-tagname-using-mvn-scm-plugin-tp17885847p17885847.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with maven 1.x SCM plugin
Hi, I'm using CruiseControl Maven (1.x) Plugin, I have a problem with cvs update of my project files. From that what i know, CCM plugin by default invokes maven scm plugin to update project (maven scm:update-project) and when it's done, build process starts. After recent update I found a lot of empty directories in CC checkout directory, those were dirs removed from CVS. I wanted to add -P parameter to cvs command to prune empty directories during cvs update, but I don't know where to put this parameter. I checked scm plugin site and search through mailing list without significant result. What should I do to execute cvs update with this parameter? Thanks in advance Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SCM plugin 1.5
Vitaliy Geraymovych wrote: Is there any way to configure scm:update to prune empty dirs? or just add -P option to cvs? (Replying to an old post because it was the best link that came up in Google - hope it saves someone else some time...) It seems that there is no option to do prune empty directories in the current version of scm:update. Aside from the documented options that can be affected by -D properties, the cvs options used by scm:update are hard coded. I confirmed this by looking at source: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/CvsCommandUtils.java?view=log CvsCommandUtils.java and http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/update/AbstractCvsUpdateCommand.java?view=log AbstractCvsUpdateCommand.java -- View this message in context: http://www.nabble.com/SCM-plugin-1.5-tp934368p17245754.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: scm plugin
Subversion is the default client (svn), the default server(svnserve) and the default tools (svnadmin, svnlook) in one package. There is no server edition. (Or maybe the apache mod could be called the server edition. So subversion is your client. Tortoise is just a GUI, with the svn libraries inside. To use the SCM you'll need the command line svn client. I am learning something new every day! :-) Thanks!!! It works now! Stefanie -- Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! http://games.entertainment.gmx.net/de/entertainment/games/free - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
scm plugin
Hi, desperately, I am trying to integrate a subversion connection into maven 2.08. I read: http://maven.apache.org/scm/plugins/usage.html Then I added to my parent pom: developerConnection scm:svn:https://MYSECRET_INTERNAL_IP:443//THE_MAIN_PROJECT/TRUNK/MY_SUB_PROJECT /developerConnection build ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId configuration goalsinstall/goals usernameMY_SECRET_USERNAME/username passwordMY_SECRET_PWD/password connectionTypedeveloperConnection/connectionType /configuration /plugin /plugins /build However, this (mvn scm:update) didn't work. Somewhere I read I had to add a svn-settings.xml file to my USER-HOME? But no idea what I would put there.. mvn scm:validate says: INFO] connectionUrl scm connection string is valid. INFO] project.scm.developerConnection scm connection string is valid. I am using Windows and am running behind a proxy, but I added the proxy settings to settings.xml, and downloading depedencies works with these settings. However, mvn scm:update fails! :-( Any ideas? Help would be greatly appreciated!!! :-))) Thanks in advance, Stefanie -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: scm plugin
On Tuesday 11 March 2008 [EMAIL PROTECTED] wrote: Then I added to my parent pom: developerConnection scm:svn:https://MYSECRET_INTERNAL_IP:443//THE_MAIN_PROJECT/TRUNK/MY_SUB_PROJECT /developerConnection [...] Did you miss the repository part in your URL? Andy why do you have two slashes? Something like this should work: scm:svn:https://MYSECRET_INTERNAL_IP:443/MY_REPO/THE_MAIN_PROJECT/TRUNK/MY_SUB_PROJECT Eventually try a 'svn list' for the part following 'scm:', this should list your subversion repo. Does this work? However, this (mvn scm:update) didn't work. Somewhere I read I had to add a svn-settings.xml file to my USER-HOME? But no idea what I would put there.. I use svn without a svn-settings.xml file, works fine here. mvn scm:validate says: INFO] connectionUrl scm connection string is valid. INFO] project.scm.developerConnection scm connection string is valid. [...] However, mvn scm:update fails! :-( If above doesn't work, try running mvn -X and paste the error message here. hth, - martin -- Martin Höller | [EMAIL PROTECTED] *x Software + Systeme | http://www.xss.co.at/ Karmarschgasse 51/2/20 | Tel: +43-1-6060114-30 A-1100 Vienna, Austria | Fax: +43-1-6060114-71 signature.asc Description: This is a digitally signed message part.