Grails Project - General Java Project Dependence on Eclipse

All,

We have standard java projects that contain our common data model, common usage classes, etc.

What I cannot understand is how to make my Grails project (in Eclipse) dependent on another standard (non Grails) java project in the workspace. When I add a project to the "Java Build Path", the project does not show any compiler errors, but when it starts "Grails Tools → Refresh Dependencies" or an attempt to start the project (run-app) it fails.

This seems to be a fairly common thing, but I searched all over the internet and couldn't find a solution. We do not use maven in our environment. Since we are building client-side Eclipse RCP applications, we use OSGI manifests to manage project / package dependencies.

+5
source share
3 answers

You can use linked source directories to include Java or Groovy dependencies in the grails project, and you need to set the output directory in Project / target / classes (these configurations are included in the grails project settings in the Java Build Path options → Source tab).

Eclipse grails run-app.

.

, Java Groovy

+2

.

BuildConfig.groovy:

grails.compiler.dependencies = {
    fileset (dir:"/path/to/jars")
}

.

0

Ivy/Maven, AFAIK - lib Grails.

0

All Articles