java - Run mvn install on a cloned repo using chef -
i've cloned small webapp onto client, next step me maven build war file can run it. i'm capable of installing maven , running command in executable block hoping on cleaner solution.
the documentation maven cookbook isn't vast , can't seem find anywhere details how run maven build commands , using it. appears used more downloading dependencies rather building projects.
any suggestions how might achieve without 'execute' block ?
it's going execute resource or call shell_out @ point. build custom resource around make more resource-y @ heart maven install procedural step, not convergent step it's going bit awkward. if want background on procedural vs. convergent, wrote guide @ https://coderanger.net/thinking/.
that said, moving forward execute
block fine. make sure consider idempotence rules, either notification or not_if
/only_if
guards.
Comments
Post a Comment