Get svn username as maven property

Is there a way for the svn username to be used to validate the project visible as a maven property? Something like scm.svn.username? If not, what solutions can you imagine to let me get this property?

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

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

+3
source share
1 answer

The simplest would be to add a username property in settings.xml

An alternative would be to create a custom Maven plugin to read the svn username from the local svn configuration or extend an existing one to support such a function, for example. look at buildnumber-maven-plugin .

+1
source

Source: https://habr.com/ru/post/1775210/


All Articles