hibernate - Resolving Maven conflict: jBoss AS 7 duplicate Antlr jar exclussion from POM for JUnit runner -


i running issue building junit when exclude antlr hibernate-entitymanager dependency declaration in pom file.

i had exclude antlr since seems jboss 7 introducing own copy of jar file. after add exclusion able build , deploy jboss fine, not able run unit tests unless manually remove exclusion.

below relevant section of pom file.

what best way solve issue or tell maven not exclude antlr when running in junit?

<dependency>     <groupid>org.hibernate</groupid>     <artifactid>hibernate-entitymanager</artifactid>     <version>3.6.0.final</version>     <scope>compile</scope>     <!-- exclude antlr since conflicts jboss as7      <exclusions>      <exclusion>        <groupid>antlr</groupid>        <artifactid>antlr</artifactid>        </exclusion>     </exclusions>  --> </dependency> 

thanks ctomc's suggestion, used solution worked me. again!

<dependency>     <groupid>org.hibernate</groupid>     <artifactid>hibernate-entitymanager</artifactid>     <version>3.6.0.final</version>     <scope>compile</scope>     <!-- exclude antlr since conflicts jboss as7   -->     <exclusions>         <exclusion>             <groupid>antlr</groupid>             <artifactid>antlr</artifactid>         </exclusion>     </exclusions> </dependency>  <dependency>     <groupid>antlr</groupid>     <artifactid>antlr</artifactid>     <version>2.7.7</version>     <scope>provided</scope> </dependency> 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -