-
Notifications
You must be signed in to change notification settings - Fork 41.7k
Closed
Description
we have these dependencies declared in our pom.xml
org.springframework.boot:spring-boot-starter-data-jpa:jar:1.2.0.BUILD-SNAPSHOT:compile
and
org.hornetq:hornetq-jms-server:jar:2.4.5.Final:compile
this results of being two different versions of the jboss-transaction-api are included version 1.1 and 1.2 in the resulting war file
[INFO] +- org.hornetq:hornetq-jms-server:jar:2.4.5.Final:compile
[INFO] | +- org.hornetq:hornetq-core-client:jar:2.4.5.Final:compile
[INFO] | | +- org.jgroups:jgroups:jar:3.3.4.Final:compile
[INFO] | | +- org.hornetq:hornetq-commons:jar:2.4.5.Final:compile
[INFO] | | +- org.hornetq:hornetq-journal:jar:2.4.5.Final:compile
[INFO] | | | \- org.hornetq:hornetq-native:jar:2.4.5.Final:compile
[INFO] | | \- io.netty:netty-all:jar:4.0.13.Final:compile
[INFO] | +- org.hornetq:hornetq-server:jar:2.4.5.Final:compile
[INFO] | +- org.jboss.spec.javax.jms:jboss-jms-api_2.0_spec:jar:1.0.0.Final:compile
[INFO] | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.0.Final:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:1.2.0.BUILD-SNAPSHOT:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:1.2.0.BUILD-SNAPSHOT:compile
[INFO] | | +- org.aspectj:aspectjrt:jar:1.8.4:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.8.4:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:1.2.0.BUILD-SNAPSHOT:compile
[INFO] | | +- org.springframework:spring-jdbc:jar:4.1.3.BUILD-SNAPSHOT:compile
[INFO] | | +- org.apache.tomcat:tomcat-jdbc:jar:8.0.15:compile
[INFO] | | | \- org.apache.tomcat:tomcat-juli:jar:8.0.15:compile
[INFO] | | \- org.springframework:spring-tx:jar:4.1.3.BUILD-SNAPSHOT:compile
[INFO] | +- org.hibernate:hibernate-entitymanager:jar:4.3.7.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging-annotations:jar:1.2.0.Beta1:compile
[INFO] | | +- org.hibernate:hibernate-core:jar:4.3.7.Final:compile
[INFO] | | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | | \- org.jboss:jandex:jar:1.1.0.Final:compile
[INFO] | | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | | \- xml-apis:xml-apis:jar:1.4.01:compile
[INFO] | | +- org.hibernate.common:hibernate-commons-annotations:jar:4.0.5.Final:compile
[INFO] | | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
[INFO] | | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:jar:1.0.0.Final:compile
perhaps to avoid such problems the parent pom should define the enforcer-plugin to find such version mismatches
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.3.1</version>
<configuration>
<rules>
<DependencyConvergence/>
</rules>
</configuration>
<executions>
<execution>
<id>enforce</id>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
</plugin>
Metadata
Metadata
Assignees
Labels
type: taskA general taskA general task