Re: scm of maven
what is your SCM plugin version? Emmanuel yi bo a écrit : Hey, all. I can't for the life of me figure out why the CVS SCM provider can't check out my source files from CVS. I noticed in a couple prior posts that the CVSNT executable requires a login from the same shell prior to starting Continuum. I've done this, yet I still get a build error with Username isn't defined. as the cause. Here's my SCM url with username/password/host sanitized. connectionscm:cvs:pserver:myuser:[EMAIL PROTECTED]:/Root/projects/project001/connection waiting for your help ___ 抢注雅虎免费邮箱-3.5G容量,20M附件! http://cn.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: scm of maven
Have you tried this. mvn -e scm:checkout -DcheckoutDirectory=src/main/java -Dincludes=*.java -DscmVersion=My_Release_1_0 -DscmVersionType=branch -Dmaven.scm.provider.cvs.implementation=cvs_native -DconnectionUrl=scm:cvs:pserver:user_name:[EMAIL PROTECTED]:my_cvs_home_path:my_cvs_module_path The cvs_native forces it to use CVSNT location for login data. Otherwise maven looks in the user home and the .cvspass doesn't exist there, since CVSNT uses the registery. Cheers, Jim -Original Message- From: yi bo [mailto:[EMAIL PROTECTED] Sent: Monday, April 23, 2007 2:24 AM To: users@maven.apache.org Subject: scm of maven Hey, all. I can't for the life of me figure out why the CVS SCM provider can't check out my source files from CVS. I noticed in a couple prior posts that the CVSNT executable requires a login from the same shell prior to starting Continuum. I've done this, yet I still get a build error with Username isn't defined. as the cause. Here's my SCM url with username/password/host sanitized. connectionscm:cvs:pserver:myuser:[EMAIL PROTECTED]:/Root/projects/project001/connection waiting for your help ___ 抢注雅虎免费邮箱-3.5G容量,20M附件! http://cn.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SCM with Maven philosophy
The main purpose if scm:checkout is to allow user to fetch the source base on a scmurl input ( thru -DconnectionUrl), However it also can pickup the connectionUrl in the pom.xml of the execution directory ( your pom). Because of that and to work for both cases, your source files are checked out to another directory ( target/checkout) sinse we dont want the checkout out to contaminate your existing files. It is not recommended to pass in -DconnectionUrl=your current dir, since the checkout will removed your current dir first before attemp to fetch from SCM Why you want to automate commit after checkout and build? What is the flow of you script? -D On 7/17/06, HUGOT Franck [EMAIL PROTECTED] wrote: Hello, I'd like to know what is the philosophy of using maven2 scm plugin. I put my pom.xml at the root dir of my project. Projet under SVN : MyProject/Pom.xml MyProject/Src/main/java/... ... So with the maven checkout command (mvn scm:checkout...), this pom is located in target/checkout dir. Target/checkout/pom.xml Target/checkout/src/main/java/... Do I have to modify the checkout directory (-D checkoutDirectory) so that the source files will be copied in a MyProject/ dir? Is there a way to checkout, compile( ) and commit? How can I simply do this? There is a lack of documentation. I don't find a way to do this with maven. I finally decided to use a shell script that extract the source from svn and then use maven for the other goals. Do I have to use the release plugin? ~ Franck HUGOT SOFINCO - Groupe Credit Agricole Service Urbanisation Des Développements DSI/PAT/DAOS/SUDD Tel : (+33) 01 60 76 54 66 [EMAIL PROTECTED] ~
RE: SCM with Maven philosophy
In case of integration, the flow is checkout, compile, ... , and not commit (sorry for the mistake) but tagging a release for example. Today I use : 1/ svn checkout (or export) 2/ mvn compile, package, deploy, site, etc... 3/ svn tag How could I do this with maven2 ? (without continuum). I don't find a way to do this easily? It seems this is the basis of integration. ~ Franck HUGOT SOFINCO - Groupe Credit Agricole Service Urbanisation Des Développements DSI/PAT/DAOS/SUDD Tel : (+33) 01 60 76 54 66 [EMAIL PROTECTED] ~ -Message d'origine- De : dan tran [mailto:[EMAIL PROTECTED] Envoyé : lundi 17 juillet 2006 17:25 À : Maven Users List Objet : Re: SCM with Maven philosophy The main purpose if scm:checkout is to allow user to fetch the source base on a scmurl input ( thru -DconnectionUrl), However it also can pickup the connectionUrl in the pom.xml of the execution directory ( your pom). Because of that and to work for both cases, your source files are checked out to another directory ( target/checkout) sinse we dont want the checkout out to contaminate your existing files. It is not recommended to pass in -DconnectionUrl=your current dir, since the checkout will removed your current dir first before attemp to fetch from SCM Why you want to automate commit after checkout and build? What is the flow of you script? -D On 7/17/06, HUGOT Franck [EMAIL PROTECTED] wrote: Hello, I'd like to know what is the philosophy of using maven2 scm plugin. I put my pom.xml at the root dir of my project. Projet under SVN : MyProject/Pom.xml MyProject/Src/main/java/... ... So with the maven checkout command (mvn scm:checkout...), this pom is located in target/checkout dir. Target/checkout/pom.xml Target/checkout/src/main/java/... Do I have to modify the checkout directory (-D checkoutDirectory) so that the source files will be copied in a MyProject/ dir? Is there a way to checkout, compile( ) and commit? How can I simply do this? There is a lack of documentation. I don't find a way to do this with maven. I finally decided to use a shell script that extract the source from svn and then use maven for the other goals. Do I have to use the release plugin? ~ Franck HUGOT SOFINCO - Groupe Credit Agricole Service Urbanisation Des Développements DSI/PAT/DAOS/SUDD Tel : (+33) 01 60 76 54 66 [EMAIL PROTECTED] ~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SCM with Maven philosophy
it is the work if maven-release-plugin -Dan On 7/17/06, HUGOT Franck [EMAIL PROTECTED] wrote: In case of integration, the flow is checkout, compile, ... , and not commit (sorry for the mistake) but tagging a release for example. Today I use : 1/ svn checkout (or export) 2/ mvn compile, package, deploy, site, etc... 3/ svn tag How could I do this with maven2 ? (without continuum). I don't find a way to do this easily? It seems this is the basis of integration. ~ Franck HUGOT SOFINCO - Groupe Credit Agricole Service Urbanisation Des Développements DSI/PAT/DAOS/SUDD Tel : (+33) 01 60 76 54 66 [EMAIL PROTECTED] ~ -Message d'origine- De: dan tran [mailto:[EMAIL PROTECTED] Envoyé: lundi 17 juillet 2006 17:25 À: Maven Users List Objet: Re: SCM with Maven philosophy The main purpose if scm:checkout is to allow user to fetch the source base on a scmurl input ( thru -DconnectionUrl), However it also can pickup the connectionUrl in the pom.xml of the execution directory ( your pom). Because of that and to work for both cases, your source files are checked out to another directory ( target/checkout) sinse we dont want the checkout out to contaminate your existing files. It is not recommended to pass in -DconnectionUrl=your current dir, since the checkout will removed your current dir first before attemp to fetch from SCM Why you want to automate commit after checkout and build? What is the flow of you script? -D On 7/17/06, HUGOT Franck [EMAIL PROTECTED] wrote: Hello, I'd like to know what is the philosophy of using maven2 scm plugin. I put my pom.xml at the root dir of my project. Projet under SVN : MyProject/Pom.xml MyProject/Src/main/java/... ... So with the maven checkout command (mvn scm:checkout...), this pom is located in target/checkout dir. Target/checkout/pom.xml Target/checkout/src/main/java/... Do I have to modify the checkout directory (-D checkoutDirectory) so that the source files will be copied in a MyProject/ dir? Is there a way to checkout, compile( ) and commit? How can I simply do this? There is a lack of documentation. I don't find a way to do this with maven. I finally decided to use a shell script that extract the source from svn and then use maven for the other goals. Do I have to use the release plugin? ~ Franck HUGOT SOFINCO - Groupe Credit Agricole Service Urbanisation Des Développements DSI/PAT/DAOS/SUDD Tel : (+33) 01 60 76 54 66 [EMAIL PROTECTED] ~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SCM in Maven
http://maven.apache.org/faq.html#changelog-no-local-copy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, 19 March 2004 4:42 PM To: [EMAIL PROTECTED] Subject: SCM in Maven Hello, I am trying to use maven. But there is a problem about SCM plugin. I setup a CVS server with CVSNT, and create a repository: d:/cvs_folder My source code exist in d:/cvs_folder/maventest/src/... In project.xml, set repository: repository connectionscm|cvs|pserver|liuyk:[EMAIL PROTECTED]|d:/cv s_folder|maventest/connection urlhttp://cvs.apache.org/viewcvs/maven/src/plugins-build/exa mples//url /repository But after I checkout source code, I execute: maven site, the error info appears as following: /** .. .. [echo] Generating the Change Log... maven-changelog-plugin:report: [echo] Generating the changelog report SCM Working Directory: D:\maventest SCM Command Line[0]: cvs SCM Command Line[1]: -d SCM Command Line[2]: :pserver:liuyk:[EMAIL PROTECTED]:d:/cvs_folder SCM Command Line[3]: log SCM Command Line[4]: -d 2004-02-182004-03-20 cvs log: in directory .: cvs [log aborted]: there is no version here; run 'cvs checkout' first ChangeLog found: 0 entries .. .. /** Do I need to set other properties? Regards, Yongkang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]