maven -Dmaven.username=paul scm:update-project maven jar:deploy maven -Dmaven.username=webadmin site:deploy
In the event this can be resolved via configuration, I have included relevant section from my Maven configuration at the end of this posting.
If this can not be resolved via configuration, then I have the following suggestions:
1) Username property used by SCM:
Define the property maven.scm.username that default to
maven.username. maven.scm.username should be used in the
<developerConnection> tag in project.xml
2) Implement site:deploy similar to the artifact deploy in RC4.
Specifically remove the tag <siteDirectory> from project.xml
and replace it with maven.site properties, similar to the artifact
properties.
maven.site=scp://developer.foo.com
maven.site.directory=/www/projects/${pom.artifactId}
maven.site.username=foo-dev-docs
maven.site.privatekey=/cygwin/home/paul/.ssh/id_rsa
maven.site.passphrase=3) Although I have not mention the distribution deploy goals, I would expect they would be consistent with the site deploy goals.
Maven configuration: ------------------------------------------------------- *** * Configuration in project.xml ** <siteAddress>developer.foo.com</siteAddress> <siteDirectory> /www/projects/${pom.artifactId} </siteDirectory> <distributionAddress>developer.foo.com</distributionAddress> <distributionDirectory> /cygdrive/f/Maven-repository </distributionDirectory> <repository> <connection> scm:cvs:pserver:[EMAIL PROTECTED]:/foo:${pom.artifactId} </connection> <developerConnection> scm:cvs:pserver:[EMAIL PROTECTED]:/foo:${pom.artifactId} </developerConnection> </repository>
** * Configuration in project.properties ** maven.repo.remote=http://developer.foo.com/maven,http://www.ibiblio.org/maven maven.repo.list=foo maven.repo.foo=scp://developer.foo.com maven.repo.foo.username=foo-dev-docs maven.repo.foo.directory=/cygdrive/f/Maven-Repository
** * Configuration in build.properties for a developer ** maven.scp.executable=c:/cygwin/bin/scp maven.ssh.executable=c:/cygwin/bin/ssh maven.site.deploy.method=ssh
# Remote repository definitions maven.repo.foo.privatekey=/cygwin/home/paul/.ssh/id_rsa maven.repo.foo.passphrase=
-------------------------------------------------------
I would also like to say "Thank You" to the Maven developers. Paul Spencer
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
