Yes! I would even go further than saying that this is good practice. I would say that you should generate these files inside the target folder.
target is the Maven build directory, which means that all generated content should be placed under this folder. As you said in your question, this folder is usually ignored by your VCS ( svn ignore or .gitignore ), since it is a temporary directory that can be deleted at any time.
So simple: place your temporary content under target/{name-of-your-plugin} ; this makes it clear that this subfolder is your temporary folder and does not create unnecessary temporary folders.
For a side note, I don’t know why grunt-maven-plugin has a special temporary target-grunt directory, but I want to notice that from the GitHub Home page , the plugin is terminated, and this can be configured using the gruntBuildDirectory attribute.
source share