-
Notifications
You must be signed in to change notification settings - Fork 32
Add documentation for excludedResources #53
Comments
The whole point of grunt-maven-plugin is to have build in separate directory (for reasons stated in readme), so for me config snippet you posted above is a hack. That's why i don't want to post it as part of official guide, especially that it has some elements specific to your build (like .sass-cache, .tmp). grunt-maven builds in separate dir, so you don't have to worry about excluding grunt artifacts, list of which depends on plugins used and might change as grunt build evolves. |
I am using grunt-maven-plugin to build my yeoman-angular project on Bamboo. Locally, I prefer to run Even if you think my usage of |
Okay, so it's not part of Java/mvn project at all? Let me understand your usage of gmp, so i might come up with some solution that will be satisfying for both of us :) Could you show simplified |
Sorry, I can't give you the tree due to confidentiality issues. Basically, we have a system that is written (mostly) in Java and use Maven as our main build tool with Bamboo as a CI. The grunt project is a pure Angular UI and does not contain any Java components. We use grunt-maven-plugin to run the tests (and collect test reports) for the project and build a ZIP file that we can later deploy to a web server. The code interfaces with the Java backend over REST calls. So I use grunt directly for development, but use grunt-maven-plugin to seamlessly integrate the frontend with our CI infrastructure and software development processes in general. Does that make our use case clearer? |
Okay, i think i start to get it - maybe this is the case in which |
Hi,
I was trying to figure out how to use the
<excludedResources>
element to excludenode_modules
,bower_component
,dist
,.tmp
and.sass-cache
so I can run grunt serve locally in thesrc/main/resources/static
directory without all that stuff being copied over to the build directory when I run maven. I finally found the solution:Would you add this to the README in order to save others the trouble of figuring this out on their own?
Cheers,
Jannik
The text was updated successfully, but these errors were encountered: