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 <[email protected]>: > > 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> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-scm-plugin</artifactId> > <configuration> > <username>kurt.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: [email protected] For additional commands, e-mail: [email protected]
