开发者

Get svn username as maven property

开发者 https://www.devze.com 2023-01-25 14:53 出处:网络
Is there a way to have svn user name used to checkout a project visible as a maven property ? Something like scm.svn.username ? If not, what solutions can you imagine to let me get that pr开发者_Stack

Is there a way to have svn user name used to checkout a project visible as a maven property ? Something like scm.svn.username ? If not, what solutions can you imagine to let me get that pr开发者_StackOverflow社区operty ?

The ultimate goal is to use svn username for some resource filtering.

EDIT Seems like maven-scm plugin provides an ScmManager object. Can I use it in my POM ? Or maybe in some groovy code I could write ?


The simplest would be to add a user name property into a settings.xml

An alternative would be to build a custom Maven plugin to read svn user name from a local svn configuration, or extend an existing one to support such feature, e.g. look at buildnumber-maven-plugin.

0

精彩评论

暂无评论...
验证码 换一张
取 消