Hi, >-----Original Message----- >From: ext Emmanuel Venisse [mailto:[EMAIL PROTECTED]
>With username/password define in scm url or in command line parameters The doc (http://maven.apache.org/scm/plugins/status-mojo.html) says that the parameters are only evaluated for svn and starteam protocol, but when I use: <developerConnection>scm:cvs:pserver::@localhost:/cvs:jsr264-private/oss_om_distribution</developerConnection> And then run: C:\USERS\My Development\ossj\tigersripe_ws\oss_om_distribution>mvn -X -Dusername=aebbert -Dpassword= XXXXXX -DconnectionType=developerConnection scm:changelog It does work too :-) >> I've tried to put the password in the pom (in the >developerConnection url) and that worked :-) Is there another way? > >yes :-) >You can define them in your settings.xml, in <servers> part like this: > ><servers> > <server> > <id>your_host</id> You can use your_host:your_port, if >a port is defined in your scm url > <username>user<username> > <password>password</password> > </server> ></servers> What I tried now is to create a profile in the settings.xml: <profile> <id>default</id> <activation><activeByDefault/></activation> <properties> <javanetUsername>aebbert</javanetUsername> <javanetPassword>XXXXXXX</javanetPassword> <javanetCVSServer>localhost</javanetCVSServer> </properties> </profile> And then use the scm url as: scm:cvs:pserver:${javanetUsername}:[EMAIL PROTECTED]:/cvs:jsr264-private/oss_om_distribution But maven didn't like that :-( [DEBUG] (f) developerConnectionUrl = scm:cvs:pserver:null:[EMAIL PROTECTED]:/cvs:jsr264-private/oss_om_disTribution I will try your suggestion with the server settings. >> So my next tasks are: >> >> 1) use the preferences and profiles as you suggested to move >the url out of the POM. >> 2) make the first steps to connect to scm with my own plugin *scary* > >Why do you create your own scm plugin? I don't want to create my own scm plugin, I'm creating a plugin, which is using the maven-scm-api, and before I do that, I wanted to make sure that I have a rough understanding how the stuff is working :-) Background is, that if you want to have your custom website within your project on java.net, you have to upload it to your cvs repository, thus my plugin which integrates the project to java.net shall be able to commit the whole generated site to cvs. _ __ _ _ //\ndreas.[|-bbert-[]/arroum(a)[|\|okia.com `- ` Andreas Ebbert-Karroum Software Design Engineer - Nokia Networks Services / Middleware phone: +49-211-94123928, fax: +49-211-9412-3838 Heltorfer Straße 1, 40472 Düsseldorf, Germany ---------------------------------------------------------------------- This message is confidential. If you have received this message in error, please delete it from your system. You should not copy it for any purpose, or disclose its contents to any other person. Internet communications are not secure and therefore Nokia GmbH does not accept legal responsibility for the contents of this message as it has been transmitted over a public network. Thank you. Nokia GmbH, Nokia Networks is a German Company. Further information about the Company is available from its principal offices at Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the website at http://www.nokia.com/ ---------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
