facebook

How to? Develop common modules across projects.

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #271503 Reply

    Hi folks,

    There is something that Eclipse has “hinted at to me” about being able to do but I’m missing something in the execution. I’ve come up with a workaround but it isn’t all that acceptable a workaround for me.

    I’ve grown very fond of using MyEclipseIDE to develop Hibernate based “infrastructures” to access data in various databases. I develop web applications around these and then when I need to develop another application against the same database I end up copying the file tree from one project to another and going from there.

    What I really want to be able to do is develop my persistance layer as a seperate project and then reference that project from other projects. Optionally I’d love to be able to have that persistance layer get targetted to a jar file. When I make changes to the persistance layer the referencing projects would then “do the right thing” with appropriate recompiles as necessary.

    Then when I deploy the web projects the persistance layer should go with them as appropriate.

    At least that’s my vision.

    Now, when I look at the Eclipse IDE I can see that there is provision for one project to reference another. Yet when I try and invoke that feature and a compile is necessary it fails to see the classes that were defined in the referenced project.

    What am I missing here?

    #271517 Reply

    Loyal Water
    Member

    Hi Peter,
    Like Eclipse had hinted to you, you can create a separate project with you persistance layer code and then add it as a dependency to your web projects by going to Project > Properties > Project References and checking you persistance layer project. When you deploy you web app, the Persistance Layer project will get deployed along with the web project just the way you want.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to? Develop common modules across projects.

You must be logged in to post in the forum log in