I want to be able to add a generate-resources plugin such as it performs everytime I run an install (at the compile step) so I don’t have to type this:
generate-sources install
How do I achieve that in my POM file?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You shouldn’t need the ‘generate-resources’ bit – this phase comes before the install phase in the lifecycle so just running
should include the generate-resources phase. See http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html for details.
If you’ve a specific plugin you want to bind to the install phase, you specify that in the plugin section in your pom. That link shows you how to do that too.