facebook

Excluding Jars from Webproject server deployment

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

    allan_h
    Member

    I’m wondering if it’s possible to exclude 1 or 2 specific jars (from the build-path) during the Webproject deploy in MyEclipse. I have these jars in the build-path for compile-time purposes, but I don’t need them deployed to my server.

    Thanks.

    #290232 Reply

    Loyal Water
    Member

    I’m afraid that is not possible at the moment. Sorry about that.

    #290341 Reply

    corneel
    Member

    @support-nipun wrote:

    IGuys,

    this is a serious problem for us. We use WebSphere App Server 6.1. We have Spring and Hibernate libraries added to our project so that we can develop such applications. When we deploy to WebSphere – it is sending the Hibernate and Spring libraries along in the EAR file and as such WebSphere starts to check/validate all the jar files with dependencies in the Hibernate/Spring libraries. this makes it impossible to deploy such an application to WebSphere.

    How do I exclude the Spring/Hibernate libraries (or any other library for that matter) from the deployment?

    Thanks.
    Corneel.

    #290394 Reply

    Loyal Water
    Member

    Corneel,
    What you can do is have the libraries that you want to omit on the project build path. You can then go to Windows > Pref > MyEclipse > Java Enterprise Project > Web Project > Deployment and uncheck “JARS on web-project build path” under library deployment policy.

    The libraries that you want to deploy can be placed in a user library and the user library can be added to the project.

    #290395 Reply

    corneel
    Member

    Hi Nipun,

    Thanks that worked.

    Regards.
    Corneel.

    #290401 Reply

    Loyal Water
    Member

    Your welcome.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Excluding Jars from Webproject server deployment

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