开发者

Get svn username as maven property

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜