-
Jul 14th, 2010, 05:57 AM
#1
How to use Roo generated module in another project
Hi,
I created a Roo generated module which holds my "domain" classes. This will be a module which I want to be able to use in other projects.
How can I import this Roo generated module to other projects (Roo generated or not) ? And, will I be able to use methods like MyEntity.persist() or Myentity.remove() from other projects?
TIA,
Turg
-
Jul 15th, 2010, 06:12 AM
#2
I don't know.
Using maven you could install (or add to your repository) the Roo project and importing it in the second project using a pom dependency.
However, the test classes won't be included in the corresponding jar, so you won't be able to access the test classes like "dataOnDemand" and so on.
It seems Roo doesn't support multi-module projects. Therefore, the other option is to use in your second project the script created when you made your first Roo project (try script --file ... within Roo)
Be careful with the topLevelPackage (if you have com.enterprise.domain.* and you want to use in com.enterprise.new, choose com.enterprise as topLevelPackage in your second Roo project)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules