facebook

How to tell MyEclipse to not include a jar file at deploymen

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

    Max Mirabito
    Participant

    Dear support,

    I am wondering if you could provide some help with myEcplise built-in deployment. We have a webapp that is deployed as single WAR file. When we target a server container for example Jboss we want to be able to tell the deployer for both packaged and exploded deployment to excluded 1 jar library (e.g. wasp.jar). We need to have the jar file in the lib path for compilation but is not required for deployment and in order to avoid conflict it does not need to be exported in the WAR package.

    How can I tell myecipse deployed to exclude a single jar file?
    Thanks in advance

    max

    #333064 Reply

    Max Mirabito
    Participant

    Forgot to say that I am running

    MyEclipse Enterprise Workbench Version: 10.6 Build id: 10.6-20120727

    #333070 Reply

    support-swapna
    Moderator

    MMirabito,

    You can add the jar file to a User Library and then add the User Library to your project.
    Right click on your project and go to Build Path > Add Libraries > User Library and follow the wizard to add a User Library to your project.
    Go to your project properties, under MyEclipse > Web > Deployment tab , uncheck the option ‘Jars from User Libraries’ under Library Deployment Policies.

    Let us know if you see any issues.

    #334773 Reply

    Reviving an old thread.

    My checkboxes under deployement are

    X Jars from Build Path
    _ Jars from User Libraries
    X Jars exported from Dependent Projects
    X User Libraries exported from Dependent Java projects

    My project settings have a bunch of jars(

    a.jar, b.jar

    etc.,) and the USER_LIB called JTA_MAIL which contains the

     jta.jar, mail.jar

    .

    When I deploy I expect all the regular jars

     a.jar and b.jar

    to be copied to WEB-INF/lib but the

     jta.jar and mail.jar

    not to get copied over.

    However all the jars are getting copied to WEB-INF/lib folder.

    I see a.jar, b.jar, jta.jar, mail.jar in the WEB-INF/lib.

    How can I avoid jta.jar and mail.jar from getting copied over please ?

    -Narahari

    #334816 Reply

    support-swapna
    Moderator

    Narahari,

    Sorry that you are seeing this issue. I could not replicate the issue at my end.

    1. Can you please share the Installation Details from MyEclipse > Installation Summary > Installation Details ?
    2. On which server are you deploying the project ?
    3. Please prepare a sample project with the user library added to the build path and attach it for me to take a look.

    #334873 Reply

    support-swapna
    Moderator

    Narahari,

    Can you clarify if you have dependent projects and if they export the jars through the user library ?

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: How to tell MyEclipse to not include a jar file at deploymen

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