I have cloned a remote SVN repository with git-svn. I have modified a pom.xml file in this cloned repo in a way that the code compiles. This setup is exclusive for me. Thus
It might be easier to solve your problem outside of git.
You can define a property with a default value in pom.xml,
which everyone uses.
And for your exclusive setup you simply override the property in your ${user.home}/.m2/settings.xml or on maven command-line using -Dproperty=value.
Or similarly, you can create another profile and activate it based on an environment variable that you export in your, say, ~/.bashrc.
For a git solution, I was accomplishing what you want with some discipline in following the workflow properly:
git svn rebase to pull new commits from SVN, resolve conflicts.git rebase -i svn/trunk (or whatever is your svn remote branch) (this will start interactive rebase of all your local changes on top of SVN)git svn dcommit --dry-run @~1 (or git svn dcommit --dry-run HEAD~1 in older git) to see what's going to be pushed to SVN repository; make sure your local-only commits are not in the list.git svn dcommit @~1 (or git svn dcommit HEAD~1) to finally push your changes to SVN repository.git svn rebase to pull new commits from SVN.It may sounds complicated, but it's pretty simple once you get used to it. Basically, you have one (or more) local commits, which you never push to SVN. I haven't had a wrongly pushed commit in more than a year using this workflow with multiple commits and repositories. It's quite useful for having some local debug-only changes, for example (although it's better to introduce an environment variable or some settings file for this).
Furthermore, this can be enhanced with a pre-dcommit hook in git, which would make sure that local-only changes are not being dcommit'ed. Unfortunately, I don't see a standard git-svn hook for this, but one could use git-svn-hooks to implement those.