facebook

Making one Web project dependent on another

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #225966 Reply

    rafeco
    Member

    My project consists of a Java project that includes both Java classes and Hibernate mapping documents (which are generated using XDoclet), and two Web projects.

    The two Web projects both include the Java project in their build path, and one of the Web projects also includes the other Web project in its build path.

    Things are set up so that both Web projects are deployed to Tomcat 5.

    I have Smart Deployment turned on so that the classes (and generated files) in my Java project are copied out to both Web projects.

    Unfortunately, Smart Deployment doesn’t seem to work from one Web project to another. What’s the best solution to make sure that the classes from Web Project A are always up to date in Web Project B?

    #226017 Reply

    Riyad Kalla
    Member

    The two Web projects both include the Java project in their build path, and one of the Web projects also includes the other Web project in its build path.

    The first part is fine, the 2nd part (Web deps on Web) is not supported by deployment tool. There is no ‘commonly defined’ way to combine two web projects during deployment.

    Unfortunately, Smart Deployment doesn’t seem to work from one Web project to another.

    Correct, for the reason stated above.

    What’s the best solution to make sure that the classes from Web Project A are always up to date in Web Project B?

    There isn’t really, the code should most likely be broken out into a library if it needs to be shared between two web apps; that is how to properly setup this relationship in ME.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Making one Web project dependent on another

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