Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 496947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:44:03+00:00 2026-05-13T05:44:03+00:00

I have a Grails app consisting of main app and its local module linked

  • 0

I have a Grails app consisting of main app and its local module linked in BuildConfig.groovy:

grails.plugin.location.’mymodule’ = “modules/mymodule”

In mymodule I would like to use Helper classes from the main app, however I cannot find any way of how to make mymodule dependent to the main app. I was thinking of adding some extra part to the classpath for mymodule compile, but I’m stuck here.

Any idea how to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:44:03+00:00Added an answer on May 13, 2026 at 5:44 am

    You cannot do what you are trying to do, at least not easily. It’s a one-way dependency from the plugins, which are compiled first. The only way to do it is to create a call-back mechanism in your plugin that you can register against. This way, your app will register itself with the plugin and plugin will call the classes when needed.

    Think of plugins and their dependencies as jars – you cannot download a jar from some library and expect it to call your code, unless it’s designed that way.

    If you have helper classes, assuming they don’t depend on anything in your main app, I’d suggest you move them from main app to a separate plugin that your local plugin depends on. This way both your main app and your local plugin depend on the helper classes. Or just move the helper classes to the plugin in the first place – they will then be available to both the plugin and main app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Grails app that loads its data from xml files and delivers
I have inherited a Grails app, which uses the Acegi 0.5.3 plugin. The application
I have a grails 2.0 app which I have installed the resources plugin into,
I have a variable in my Grails app’s BootStrap.groovy : class BootStrap { def
I have a Groovy/Grails web app that reads e-mails from Gmail. It gets messages
For my Grails App i use Searchable Plugin to have an nice google-like Search.
I have a grails app that uses the Spring-Security-Core plugin, which integrates Spring Security
I have secured my Grails app using the ACEGI plugin and am using annotations
I have a Grails app running on 1.3.7 with the json-rest-api plugin version 1.0.8
So I have a Grails app running in STS on my local machine, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.