Pom.xml configuration for different env for deploying Grails plugin

15 views
Skip to first unread message

clr meno

unread,
Jun 8, 2017, 12:34:59 PM6/8/17
to Grails Dev Discuss
I have separated out the domain classes to a plugin and am including it in the main application through entry in BuildConfig.groovy as I am using Grails 2.4.4. Locally I run maven-install to get the plugin zip installed to the local maven cache.
If I have to configure it in a CI tool like Bamboo I would have to do it through pom.xml.  What is the best way to configure different env through poml.xml so that the generated grails plugin is deployed onto local cache for local env and onto company repository for higher environments.
Thanks for the inputs.

Jeff Scott Brown

unread,
Jun 8, 2017, 9:32:53 PM6/8/17
to Grails Dev Discuss
Why is it that you think you have to do this through pom.xml?

When you say “…is deployed onto local cache for local env and onto
company repository for higher environments” what is it that you mean
by “local env” and what do you mean by “higher environments”?




JSB

--
Jeff Scott Brown
OCI Grails Practice Lead
Principal Software Engineer

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/

clr meno

unread,
Jun 12, 2017, 11:52:45 AM6/12/17
to Grails Dev Discuss
Thanks for your response Jeff.
By local environment I mean my workspace on my laptop. By higher environment I mean the stage and prod env which uses CI (Bamboo) to do the build and deploy. My assumption was that I would have to do it through pom, but please advise if there is a better way.

clr meno

unread,
Jun 12, 2017, 11:27:54 PM6/12/17
to Grails Dev Discuss
For local workspace on my laptop I need to install the plugin onto local maven cache. I need to get the grails plugin from local maven cache if it is not present in enterprise repo. For CI server configurations, I need to install/deploy the plugin on to enterprise repository and I need to load the plugin from enterprise repo. Any advise is much appreciated.

Thanks!
Reply all
Reply to author
Forward
0 new messages