title: Use grails plugin datasource
body: <p>I'm using Grails 2.2.4 to build a plugin. The plugin is an access manager and need to access some datasources (more than one). As the Grails manual specify in <a href="http://grails.org/doc/2.2.4/guide/plugins.html#providingBasicArtefacts" rel="nofollow">Providing Basic Artefacts</a>, the <strong><em>DataSource.groovy</em></strong> is not bundled with the plugin.</p>
  
  <p>Is there a way to "copy" the datasources defined on the plugin DataSource.groovy file to the application's DataSource.groovy file that uses the plugin?</p>
  
  <p>I really don't want to manually define the plugin datasources on every application that uses the plugin.</p>
  
  <p>============</p>
  
  <p>Full stacktrace (requested in comments)</p>
  
  <pre><code>2013-12-11 11:39:33,055 ERROR org.codehaus.groovy.grails.web.context.GrailsConte
  xtLoader - Error initializing the application: groovy.lang.MissingMethodExceptio
  n: No signature of method: portal.Aplicacao.methodMissing() is applicable for ar
  gument types: () values: []
  org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMetho
  dException: No signature of method: portal.Aplicacao.methodMissing() is applicab
  le for argument types: () values: []
          at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.
  java:308)
          at grails.util.Environment.executeForEnvironment(Environment.java:301)
          at grails.util.Environment.executeForCurrentEnvironment(Environment.java
  :277)
          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
          at java.util.concurrent.FutureTask.run(FutureTask.java:138)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
  utor.java:886)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor     .java:908)
          at java.lang.Thread.run(Thread.java:662)
  Caused by: groovy.lang.MissingMethodException: No signature of method: portal.Ap
  licacao.methodMissing() is applicable for argument types: () values: []
          at portal.PortalService.criaAplicacaoNoPortal(PortalService.groovy:233)
          at BootStrap$_closure1.doCall(BootStrap.groovy:16)
          ... 8 more
  </code></pre>