Correct me if I’m wrong, but this is how I figured to mavenize a grails project:

1. Create the grails project.

2. Create the pom (optional, only if you want to have a more well defined pom at root. Else a very bare pom will be created in target. )

grails> create-pom com.example

3 Install plugin.

grails> install-plugin maven-publisher 0.8.1

4. Update BuildConfig.java

(optional, if you want to keep using the grails command prompt)

in BuildConfig.java:

grails.project.dependency.resolution = {

pom true

}

4. Call maven-install

grails> maven-install
————

*Just had to write it down step by step because currently, I’m mixing it all up. Hope this works.

Advertisements