mavensvnignoremojomaven-scm

Maven Mojo & SCM Plugin: Add file to ignore list / set SVN property


I'm using maven-scm-plugin from within an own Maven Mojo via an injected ScmManager object and am trying to figure out how to add a file to the SCM ignore list.

The methods that ScmManager provides don't seem to support this.

An ideal solution would work in all SCM systems that maven-scm-plugin supports. I'm not sure though if every system has such a feature. That said, a solution which only works with Subversion repositories would help me as well.

The corresponding SVN command would be something like

svn propset svn:ignore -F theFile .

If ScmManager cannot directly set ignore lists, maybe it has an ability to set these kind of SCM properties?


Solution

  • The SCM Manager is an abstraction of more or less all version control tools so i think it would never offer such a functionality. But why do you need such a thing in Maven ? Maven is a build tool...Mabe you can create a separate stand-alone Maven Plugin to handle such things if you need for SVN only.