grails / grails-maven

67 stars 52 forks source link

How to build standalone jetty app using grails-maven plugin? #51

Open dsigurds opened 10 years ago

dsigurds commented 10 years ago

I'd like my maven build of our grails app to produce a standalone jetty jar. I've been using the grails-standalone-plugin and that works great when building using the grails command line, but I can't figure out how I'd do a similar thing with maven and the grails-maven plugin. I'm wondering if it'd make sense to make the package target configurable so that it could run something other than "grails package". Any thoughts?

dsigurds commented 10 years ago

Found a solution by creating a new role type (grails-standalone-jetty). Pull request to support doing this here: https://github.com/grails/grails-maven/pull/52