Re: exclude dependency from war file during packaging

2012-03-20 Thread satya1234567
Actually i tried with this solution but that did not work.
when i am giving scope as provided, then during build it is failing and
throwing javax.transaction class not found exception.My project is grails
project. It is using grails 1.3.7.
So i believe it required during build. This jta.jar is coming as a
transitive dependency from grails-gorm.

I tried excluding through maven-war-plugin by overlays tag also, but did not
get success.
Please suggest me.

Satya

--
View this message in context: 
http://maven.40175.n5.nabble.com/exclude-dependency-from-war-file-during-packaging-tp5573472p5579422.html
Sent from the Maven - Users mailing list archive at Nabble.com.

exclude dependency from war file during packaging

2012-03-18 Thread satya1234567
Hi,
My application uses grails 1.3.7. it is using grails-gorm artifact as a
dependency. from this artifact, jta.jar is also being added as transitive
dependency in my WEB-INF/lib folder.
I want to exclude this jar from my war file, but this jar is required during
build of the project.
The reason behind excluding this jar file is , when i am deploying the war
including this jar file on jboss 6.1 I am getting following exception:

Caused by: java.lang.LinkageError: loader constraint violation: loader
(instance of org/jboss/classloader/spi/base/BaseClassLoader) previously
initiated loading for a different type with name
"javax/transaction/xa/XAResource"

Please help me in resolving this issue.
Thanks in advance.



--
View this message in context: 
http://maven.40175.n5.nabble.com/exclude-dependency-from-war-file-during-packaging-tp5573472p5573472.html
Sent from the Maven - Users mailing list archive at Nabble.com.