- This topic has 5 replies, 3 voices, and was last updated 11 years, 10 months ago by support-swapna.
-
AuthorPosts
-
Max MirabitoParticipantDear 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 advancemax
Max MirabitoParticipantForgot to say that I am running
MyEclipse Enterprise Workbench Version: 10.6 Build id: 10.6-20120727
support-swapnaModeratorMMirabito,
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.
Narahari LakshminarayanaMemberReviving 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 projectsMy 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
support-swapnaModeratorNarahari,
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.
support-swapnaModeratorNarahari,
Can you clarify if you have dependent projects and if they export the jars through the user library ?
-
AuthorPosts