|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
BAR includes JARs |
« View previous topic :: View next topic » |
Author |
Message
|
goffinf |
Posted: Wed Feb 18, 2009 8:13 am Post subject: BAR includes JARs |
|
|
Chevalier
Joined: 05 Nov 2005 Posts: 401
|
version 6.1.
When I create a BAR a number or JARs get added. I assume this is because the compiler analyses dependancies and includes JARs as needed ??
Much of the time I don't actually want that behaviour, that is, the JARs that are included we don't want to deploy to the Broker, instead they are installed in one of the other locations that Broker class loaders look in (shared-classes or LILPATH or CLASSPATH for example).
Of course I can manually remove them from the BAR, buts that a bit of a nuisance. Plus we use auotmated build scripts to create BARs which are deployed to our production servers and, whilst it might be possible to amend these to exclude the unwanted JARs, I wondered whether there was a way of stopping them being included in the first place ??
How does the compiler actually determine what JARs the include in the BAR ?
Thanks
Fraser. |
|
Back to top |
|
 |
MQEnthu |
Posted: Thu Feb 19, 2009 12:33 am Post subject: |
|
|
 Partisan
Joined: 06 Oct 2008 Posts: 329 Location: India
|
Are you using JCN? If so your code in JCN will be packajed in JAR...
And also if you are code in JCN is accessing some functions in external jar which will also get added _________________ -----------------------------------------------
It is good to remember the past,
but don't let past capture your future |
|
Back to top |
|
 |
gs |
Posted: Thu Feb 19, 2009 2:29 am Post subject: |
|
|
 Master
Joined: 31 May 2007 Posts: 254 Location: Sweden
|
You can reference a JAR file in your java build path via a variable (e.g. M2_REPO). That way it won't be included while building the BAR file.
However, I'd like to see that this could be controlled on the "Order and Export" tab. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|