citrusframework / citrus

Framework for automated integration tests with focus on messaging integration
https://citrusframework.org
Apache License 2.0
459 stars 136 forks source link

org.eclipse.jetty dependency clash between citrus-http and citrus-remote-server #441

Open u480abt opened 6 years ago

u480abt commented 6 years ago

Citrus Version 2.7.6

Hi,

unfortunatly there is a dependency clash in citrus dependencies for org.eclipse jetty.

My Test-Setup is:

Hotfix I could solve this problem by excluding the org.eclipse.jetty dependencies from the citrus-http-dependency. But this is just a hotfix and should be solved by citrus in future.

<dependency>
            <groupId>com.consol.citrus</groupId>
            <artifactId>citrus-remote-server</artifactId>
        </dependency>
        <dependency>
            <groupId>com.consol.citrus</groupId>
            <artifactId>citrus-http</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>org.eclipse.jetty</groupId>
                    <artifactId>jetty-server</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.eclipse.jetty</groupId>
                    <artifactId>jetty-servlet</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

Kind regards abt

svettwer commented 6 years ago

Hi!

Thx for the report! I traced down the issue to the spark-core dependency which is using jetty 9.4.8 internally.

<dependency>
      <groupId>com.sparkjava</groupId>
      <artifactId>spark-core</artifactId>
</dependency>

This issue could also occur when you use citrus-http in combination with citrus-jdbc, because citrus-jdbc is also using the spark-core.

BR, Sven