facebook

Auto deploy sub-project as JAR instead of CLASS files?

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

    Akumadevil
    Member

    Hi,

    I have a parent ‘web project’ and a child ‘java project’. The child project is meant to be a JAR file used by the parent. I have added the child project to the build path of the parent.

    When I deploy the parent it includes the CLASS files of the child (under /WEB-INF/classes/), but I would prefer the child classes be exported as a JAR file and placed in the LIB directory of the parent.

    I can manually go “export > JAR” in the child project, but this is less than ideal.

    Any help would be greatly appreciated,
    Cheers.

    #310537 Reply

    Akumadevil,
    If you deploy your application in Packaged mode, the dependent java project will be added as a jar file.
    Please refer to the following link for further reference –
    http://www.myeclipseide.com/documentation/quickstarts/webprojects/#advanced_features

    Let me know if that helps.

    #310578 Reply

    Akumadevil
    Member

    Thank you!

    Preferences -> MyEclipse -> Web Project –> Deployment -> “Jar dependent Java project…” did the trick.

    #310618 Reply

    Akumadevil,
    Good to know that you are all set.
    Do let us know if you have any issues.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Auto deploy sub-project as JAR instead of CLASS files?

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

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