Dónal
Dónal

Reputation: 187499

Maven dependency resolution

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

Answers (1)

Raghuram
Raghuram

Reputation: 52635

If you want to use maven to build grails application, the suggested approach is documented here

To convert an existing grails project to maven, run

mvn org.grails:grails-maven-plugin:1.3.2:create-pom -DgroupId=com.mycompany

Upvotes: 2

Related Questions