AutomatedOwl / allure-environment-writer

Java library which allows to write environment.xml file into allure-results directory.
Apache License 2.0
25 stars 5 forks source link

Guava dependancy conflict #4

Open dwilliams-gs opened 2 years ago

dwilliams-gs commented 2 years ago

Description of issue

When upgrading our version of selenium-java to 4.1.2 we see the following issue due to a conflict in the dependancy version of Guava used within the dependancy.

java.lang.NoSuchMethodError: com.google.common.collect.ImmutableMap.of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap;
    at org.openqa.selenium.chrome.AddHasCasting.getAdditionalCommands(AddHasCasting.java:38)
    at org.openqa.selenium.chrome.ChromeDriver$ChromeDriverCommandExecutor.getExtraCommands(ChromeDriver.java:123)
    at org.openqa.selenium.chrome.ChromeDriver$ChromeDriverCommandExecutor.<init>(ChromeDriver.java:118)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:106)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:93)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:82)

Interim fix

Adding an exclusion onto the dependancy within the pom.xml

        <dependency>
            <groupId>com.github.automatedowl</groupId>
            <artifactId>allure-environment-writer</artifactId>
            <version>1.0.0</version>
            <exclusions>
                <exclusion>
                    <groupId>com.google.guava</groupId>
                    <artifactId>guava</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

Fix

Info

AutomatedOwl commented 2 years ago

Thanks a lot for opening the issue. Currently i'm in a super-busy days at work. Would really appreciate if you or another member can open PR accordingly. Anyways, will try to reach it ASAP. @dwilliams-gs

AutomatedOwl commented 7 months ago

Please try with the newly released version