Reputation: 187499
I would like to use Maven for dependency resolution only in my Grails application, i.e. I will continue to use Grails commands such as grails war
and grails test-app
to build and test my app. According to the Grails documentation this is possible.
Apparently I need to specify the following in BuildConfig.groovy
grails.project.dependency.resolution = {
pom true
}
And I then specify my dependencies in my pom.xml using the usual Maven XML syntax. What should the rest of this pom.xml contain, e.g. what should I specify for the <packaging>
? I think I might need to create this pom.xml using the maven-publisher Grails plugin, but the documentation doesn't say that explicitly.
Upvotes: 0
Views: 2161