facebook

How to exclude jars to be deployed to server

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

    Tolga Umut
    Participant

    I have four questions, they are kind of related. I have couple of Java WebProjects setup in my ide, and have questions about deploying these to a tomcat 6 server

    1. How can I include the tomcat’s shared jars into my classpath only for compilation purposes but not for deployment to a server since they are already in tomcat?
    2. When I go to the a Project’s Java Build Path Libraries configuration, and click on the Add Lilbrary button, in the window that pops up I see a “WTP Server Runtime (MyEclipse Incompatible)” option, but when I select this option, in the next window, I do not see the tomcat 6 libraries here. Is there a way to add the tomcat 6 libs to show up here?
    3. I have some additional jars that I only use for testing, and I do not what these to be deployed to the server as well. Is there any way to mark these so that they do not get deployed as well?
    4. Is there also a way to mark source folders that are in the build path so that they do not get deployed as well? E.g we have test source forders in the build path

    Thanks

    #288499 Reply

    Riyad Kalla
    Member

    1. You can add them to your project in a number of different ways (User Library, External JAR, etc.) and then go to your project properties, under MyEclipse > Web and the Deployment tab, and adjust the deployment rules to exclude the type of resource you added them as.

    2. You will want to use the Add External JAR button or add a User Library, not the WTP Runtime Libs.

    3. Same strategy as 1

    4. Not really, but you *can* change the output path they are built to to not be the default /WEB-INF/classes dir which gets deployed, instead you could deploy them to say /bin under your project root and MyEclipse will ignore them.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to exclude jars to be deployed to server

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