Comments (12)
@p00j4 I think this is because of another slf4j implementation we load in Allure: https://github.com/allure-framework/allure-core/blob/master/pom.xml#L354
I would try to exclude this dependency if you're already using another one:
<dependency>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-java-adaptor-api</artifactId> <!-- Replace this with your actual dependency -->
<version>1.7.7</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
Did it help?
from allure-maven.
@vania-pooh :did you mean this? It didn't work .
<dependency>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-testng-adaptor</artifactId>
<version>1.4.1</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
from allure-maven.
@p00j4 yes, that's what I mean. My idea is to eliminate the second logger. Your project is using logback whereas we're using log4j. You should verify in Maven dependency tree that only logback is present and log4j is not. If log4j is still present - please try to exclude it.
from allure-maven.
ok, I'm excluding log4J, here is my dependency tree , can you please point me if there is something missing from my end!
[INFO] Scanning for projects...Project
[WARNING]
[WARNING] Some problems were encountered while building the effective model for Project:Project:jar:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-surefire-plugin @ line 181, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ Project ---
[INFO] Project:Project:jar:0.0.1-SNAPSHOT
[INFO] +- org.seleniumhq.selenium:selenium-java:jar:2.42.2:compile
[INFO] | +- org.seleniumhq.selenium:selenium-chrome-driver:jar:2.42.2:compile
[INFO] | | \- org.seleniumhq.selenium:selenium-remote-driver:jar:2.42.2:compile
[INFO] | | +- cglib:cglib-nodep:jar:2.1_3:compile
[INFO] | | \- org.json:json:jar:20080701:compile
[INFO] | +- org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.42.2:compile
[INFO] | | \- net.sourceforge.htmlunit:htmlunit:jar:2.14:compile
[INFO] | | +- xalan:xalan:jar:2.7.1:compile
[INFO] | | | \- xalan:serializer:jar:2.7.1:compile
[INFO] | | +- org.apache.commons:commons-lang3:jar:3.2.1:compile
[INFO] | | +- org.apache.httpcomponents:httpmime:jar:4.3.2:compile
[INFO] | | +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.14:compile
[INFO] | | +- xerces:xercesImpl:jar:2.11.0:compile
[INFO] | | | \- xml-apis:xml-apis:jar:1.4.01:compile
[INFO] | | +- net.sourceforge.nekohtml:nekohtml:jar:1.9.20:compile
[INFO] | | +- net.sourceforge.cssparser:cssparser:jar:0.9.13:compile
[INFO] | | | \- org.w3c.css:sac:jar:1.3:compile
[INFO] | | \- org.eclipse.jetty:jetty-websocket:jar:8.1.14.v20131031:compile
[INFO] | | +- org.eclipse.jetty:jetty-util:jar:8.1.14.v20131031:compile
[INFO] | | +- org.eclipse.jetty:jetty-io:jar:8.1.14.v20131031:compile
[INFO] | | \- org.eclipse.jetty:jetty-http:jar:8.1.14.v20131031:compile
[INFO] | +- org.seleniumhq.selenium:selenium-firefox-driver:jar:2.42.2:compile
[INFO] | | +- commons-io:commons-io:jar:2.4:compile
[INFO] | | \- org.apache.commons:commons-exec:jar:1.1:compile
[INFO] | +- org.seleniumhq.selenium:selenium-ie-driver:jar:2.42.2:compile
[INFO] | | +- net.java.dev.jna:jna:jar:3.4.0:compile
[INFO] | | \- net.java.dev.jna:platform:jar:3.4.0:compile
[INFO] | +- org.seleniumhq.selenium:selenium-safari-driver:jar:2.42.2:compile
[INFO] | +- org.seleniumhq.selenium:selenium-support:jar:2.42.2:compile
[INFO] | | \- org.seleniumhq.selenium:selenium-api:jar:2.42.2:compile
[INFO] | \- org.webbitserver:webbit:jar:0.4.14:compile
[INFO] | \- io.netty:netty:jar:3.5.2.Final:compile
[INFO] +- jserror.collector:JSErrorCollector:jar:0.5:compile
[INFO] +- io.appium:java-client:jar:1.3.0:compile
[INFO] | +- com.google.code.gson:gson:jar:2.2.4:compile
[INFO] | +- junit:junit:jar:4.11:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.3.3:compile
[INFO] | | +- org.apache.httpcomponents:httpcore:jar:4.3.2:compile
[INFO] | | \- commons-codec:commons-codec:jar:1.6:compile
[INFO] | \- com.google.guava:guava:jar:17.0:compile
[INFO] +- org.drools:drools-core:jar:5.2.0.CR1:compile
[INFO] | +- org.mvel:mvel2:jar:2.1.Beta3:compile
[INFO] | \- org.drools:knowledge-api:jar:5.2.0.CR1:compile
[INFO] +- org.drools:drools-compiler:jar:5.2.0.CR1:compile
[INFO] | +- org.antlr:antlr-runtime:jar:3.3:compile
[INFO] | +- org.antlr:antlr:jar:3.3:compile
[INFO] | +- org.antlr:stringtemplate:jar:3.2.1:compile
[INFO] | +- antlr:antlr:jar:2.7.7:compile
[INFO] | \- org.eclipse.jdt.core.compiler:ecj:jar:3.5.1:compile
[INFO] +- commons-configuration:commons-configuration:jar:1.7:compile
[INFO] | +- commons-collections:commons-collections:jar:3.2.1:compile
[INFO] | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | +- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] | +- commons-digester:commons-digester:jar:1.8.1:compile
[INFO] | \- commons-beanutils:commons-beanutils:jar:1.8.3:compile
[INFO] +- ch.qos.logback:logback-classic:jar:1.0.7:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.6.6:compile
[INFO] +- ch.qos.logback:logback-core:jar:1.0.7:compile
[INFO] +- net.sourceforge.jexcelapi:jxl:jar:2.6.12:compile
[INFO] +- org.testng:testng:jar:6.5.1:compile
[INFO] | +- org.beanshell:bsh:jar:2.0b4:compile
[INFO] | +- com.beust:jcommander:jar:1.12:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.6:compile
[INFO] +- javax.mail:mail:jar:1.4.1:compile
[INFO] | \- javax.activation:activation:jar:1.1:compile
[INFO] +- com.jayway.jsonpath:json-path:jar:0.8.0:compile
[INFO] | \- net.minidev:json-smart:jar:1.1:compile
[INFO] +- com.jayway.jsonpath:json-path-assert:jar:0.8.0:compile
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.2.1:compile
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.2.1:compile
[INFO] +- net.sf.json-lib:json-lib:jar:jdk15:2.4:compile
[INFO] | \- net.sf.ezmorph:ezmorph:jar:1.0.6:compile
[INFO] +- org.apache.axis:axis:jar:1.4:compile
[INFO] +- mysql:mysql-connector-java:jar:5.1.6:compile
[INFO] \- ru.yandex.qatools.allure:allure-testng-adaptor:jar:1.4.1:compile
[INFO] \- ru.yandex.qatools.allure:allure-java-aspects:jar:1.4.1:compile
[INFO] +- ru.yandex.qatools.allure:allure-java-adaptor-api:jar:1.4.1:compile
[INFO] | +- ru.yandex.qatools.allure:allure-java-annotations:jar:1.4.1:compile
[INFO] | | \- ru.yandex.qatools.allure:allure-model:jar:1.4.1:compile
[INFO] | | +- org.jvnet.jaxb2_commons:jaxb2-basics-runtime:jar:0.6.5:compile
[INFO] | | +- ru.yandex.qatools.properties:properties-loader:jar:1.5:compile
[INFO] | | | \- commons-beanutils:commons-beanutils-core:jar:1.8.3:compile
[INFO] | | \- log4j:log4j:jar:1.2.17:compile
[INFO] | +- com.sun.xml.bind:jaxb-impl:jar:2.2.7:compile
[INFO] | | +- com.sun.xml.bind:jaxb-core:jar:2.2.7:compile
[INFO] | | | +- javax.xml.bind:jaxb-api:jar:2.2.7:compile
[INFO] | | | \- com.sun.istack:istack-commons-runtime:jar:2.16:compile
[INFO] | | \- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.12:compile
[INFO] | | \- javax.xml.bind:jsr173_api:jar:1.0:compile
[INFO] | \- org.apache.tika:tika-core:jar:1.5:compile
[INFO] \- org.aspectj:aspectjrt:jar:1.8.2:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
from allure-maven.
@p00j4 I would try to exlude the following line: log4j:log4j:jar:1.2.17:compile
from allure-maven.
@vania-pooh : thanks for your constant support, let me know the file which contains this, i'll try 2 see if it works.
from allure-maven.
@p00j4 please look at allure-report-data and allure-java-adaptor-api modules of Allure Core repository.
from allure-maven.
@vania-pooh : i have again excluded the log4j & slf4j from my pom but still it behaves the same way. [ I doubt that modifying the same in the allure will help, please confirm ]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ GoIbiboGenFw ---
[INFO] GoIbiboGenFw:GoIbiboGenFw:jar:0.0.1-SNAPSHOT
[INFO] +- org.seleniumhq.selenium:selenium-java:jar:2.42.2:compile
[INFO] | +- org.seleniumhq.selenium:selenium-chrome-driver:jar:2.42.2:compile
[INFO] | | \- org.seleniumhq.selenium:selenium-remote-driver:jar:2.42.2:compile
[INFO] | | +- cglib:cglib-nodep:jar:2.1_3:compile
[INFO] | | \- org.json:json:jar:20080701:compile
[INFO] | +- org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.42.2:compile
[INFO] | | \- net.sourceforge.htmlunit:htmlunit:jar:2.14:compile
[INFO] | | +- xalan:xalan:jar:2.7.1:compile
[INFO] | | | \- xalan:serializer:jar:2.7.1:compile
[INFO] | | +- org.apache.commons:commons-lang3:jar:3.2.1:compile
[INFO] | | +- org.apache.httpcomponents:httpmime:jar:4.3.2:compile
[INFO] | | +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.14:compile
[INFO] | | +- xerces:xercesImpl:jar:2.11.0:compile
[INFO] | | | \- xml-apis:xml-apis:jar:1.4.01:compile
[INFO] | | +- net.sourceforge.nekohtml:nekohtml:jar:1.9.20:compile
[INFO] | | +- net.sourceforge.cssparser:cssparser:jar:0.9.13:compile
[INFO] | | | \- org.w3c.css:sac:jar:1.3:compile
[INFO] | | \- org.eclipse.jetty:jetty-websocket:jar:8.1.14.v20131031:compile
[INFO] | | +- org.eclipse.jetty:jetty-util:jar:8.1.14.v20131031:compile
[INFO] | | +- org.eclipse.jetty:jetty-io:jar:8.1.14.v20131031:compile
[INFO] | | \- org.eclipse.jetty:jetty-http:jar:8.1.14.v20131031:compile
[INFO] | +- org.seleniumhq.selenium:selenium-firefox-driver:jar:2.42.2:compile
[INFO] | | +- commons-io:commons-io:jar:2.4:compile
[INFO] | | \- org.apache.commons:commons-exec:jar:1.1:compile
[INFO] | +- org.seleniumhq.selenium:selenium-ie-driver:jar:2.42.2:compile
[INFO] | | +- net.java.dev.jna:jna:jar:3.4.0:compile
[INFO] | | \- net.java.dev.jna:platform:jar:3.4.0:compile
[INFO] | +- org.seleniumhq.selenium:selenium-safari-driver:jar:2.42.2:compile
[INFO] | +- org.seleniumhq.selenium:selenium-support:jar:2.42.2:compile
[INFO] | | \- org.seleniumhq.selenium:selenium-api:jar:2.42.2:compile
[INFO] | \- org.webbitserver:webbit:jar:0.4.14:compile
[INFO] | \- io.netty:netty:jar:3.5.2.Final:compile
[INFO] +- jserror.collector:JSErrorCollector:jar:0.5:compile
[INFO] +- io.appium:java-client:jar:1.3.0:compile
[INFO] | +- com.google.code.gson:gson:jar:2.2.4:compile
[INFO] | +- junit:junit:jar:4.11:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.3.3:compile
[INFO] | | +- org.apache.httpcomponents:httpcore:jar:4.3.2:compile
[INFO] | | \- commons-codec:commons-codec:jar:1.6:compile
[INFO] | \- com.google.guava:guava:jar:17.0:compile
[INFO] +- org.drools:drools-core:jar:5.2.0.CR1:compile
[INFO] | +- org.mvel:mvel2:jar:2.1.Beta3:compile
[INFO] | \- org.drools:knowledge-api:jar:5.2.0.CR1:compile
[INFO] +- org.drools:drools-compiler:jar:5.2.0.CR1:compile
[INFO] | +- org.antlr:antlr-runtime:jar:3.3:compile
[INFO] | +- org.antlr:antlr:jar:3.3:compile
[INFO] | +- org.antlr:stringtemplate:jar:3.2.1:compile
[INFO] | +- antlr:antlr:jar:2.7.7:compile
[INFO] | \- org.eclipse.jdt.core.compiler:ecj:jar:3.5.1:compile
[INFO] +- commons-configuration:commons-configuration:jar:1.7:compile
[INFO] | +- commons-collections:commons-collections:jar:3.2.1:compile
[INFO] | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | +- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] | +- commons-digester:commons-digester:jar:1.8.1:compile
[INFO] | \- commons-beanutils:commons-beanutils:jar:1.8.3:compile
[INFO] +- ch.qos.logback:logback-classic:jar:1.0.7:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.6.6:compile
[INFO] +- ch.qos.logback:logback-core:jar:1.0.7:compile
[INFO] +- net.sourceforge.jexcelapi:jxl:jar:2.6.12:compile
[INFO] +- org.testng:testng:jar:6.8:compile
[INFO] | +- org.beanshell:bsh:jar:2.0b4:compile
[INFO] | +- com.beust:jcommander:jar:1.27:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.6:compile
[INFO] +- javax.mail:mail:jar:1.4.1:compile
[INFO] | \- javax.activation:activation:jar:1.1:compile
[INFO] +- com.jayway.jsonpath:json-path:jar:0.8.0:compile
[INFO] | \- net.minidev:json-smart:jar:1.1:compile
[INFO] +- com.jayway.jsonpath:json-path-assert:jar:0.8.0:compile
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.2.1:compile
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.2.1:compile
[INFO] +- net.sf.json-lib:json-lib:jar:jdk15:2.4:compile
[INFO] | \- net.sf.ezmorph:ezmorph:jar:1.0.6:compile
[INFO] +- org.apache.axis:axis:jar:1.4:compile
[INFO] +- mysql:mysql-connector-java:jar:5.1.6:compile
[INFO] \- ru.yandex.qatools.allure:allure-testng-adaptor:jar:1.4.1:compile
[INFO] \- ru.yandex.qatools.allure:allure-java-aspects:jar:1.4.1:compile
[INFO] +- ru.yandex.qatools.allure:allure-java-adaptor-api:jar:1.4.1:compile
[INFO] | +- ru.yandex.qatools.allure:allure-java-annotations:jar:1.4.1:compile
[INFO] | | \- ru.yandex.qatools.allure:allure-model:jar:1.4.1:compile
[INFO] | | +- org.jvnet.jaxb2_commons:jaxb2-basics-runtime:jar:0.6.5:compile
[INFO] | | \- ru.yandex.qatools.properties:properties-loader:jar:1.5:compile
[INFO] | | \- commons-beanutils:commons-beanutils-core:jar:1.8.3:compile
[INFO] | +- com.sun.xml.bind:jaxb-impl:jar:2.2.7:compile
[INFO] | | +- com.sun.xml.bind:jaxb-core:jar:2.2.7:compile
[INFO] | | | +- javax.xml.bind:jaxb-api:jar:2.2.7:compile
[INFO] | | | \- com.sun.istack:istack-commons-runtime:jar:2.16:compile
[INFO] | | \- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.12:compile
[INFO] | | \- javax.xml.bind:jsr173_api:jar:1.0:compile
[INFO] | \- org.apache.tika:tika-core:jar:1.5:compile
[INFO] \- org.aspectj:aspectjrt:jar:1.8.2:compile
from allure-maven.
@p00j4 let's ask the person who added logging to Allure.
@baev any ideas?
from allure-maven.
@baev : I have tried excluding all the 3 below, but somehow still my logback pattern doesn't seem to work, is there anything or anywhere we need to include 'ch.qos.logback' or exclude some other conflicting/overriding dependency !
log4j, slf4j, commons-logging & commons-beanutils:commons-beanutils-core
<dependency>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-testng-adaptor</artifactId>
<version>1.4.1</version>
<exclusions>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
<exclusion>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils-core</artifactId>
</exclusion>
</exclusions>
</dependency>
from allure-maven.
@p00j4
I don't forgot about your issue, but I don't have enough time to solve this problem for now. I'll see it in few days
from allure-maven.
Logging in maven plugin fixed via #10
Related issue for logging for adapters allure-framework/allure1#564
from allure-maven.
Related Issues (20)
- mvn allure:report allure:serve does not preserve report directory HOT 3
- Proxy exceptions are ignored HOT 1
- Could not generate the report: HTTP 403 HOT 1
- trendline
- Release 2.11.0 not on Maven Central HOT 3
- Support links to previous build in trends
- Would be nice to have command line used by AllureCommandline.execute() being output into debug log when -X is passed to Maven on command line
- Reports works in Intellij and not in eclipse HOT 3
- Process and server are not killed on exit mvn allure:serve
- Intermittent report generation error HOT 1
- Space in report path on report goal
- Hi , I have a doubt due to which i am stuck long time on my project . I have upgraded my project to jdk17 and after that allure has stopped working HOT 1
- Downloading Allure Command Line failed if no external repositories allowed HOT 1
- Allure maven plugin does not work on JDK 17 HOT 5
- Report is not created when trying to work directly with json files
- When running the same test in different suites, the test does not merge in report HOT 2
- Missing API test execution data
- Add a mvn command to generate single file report
- Plugin is not processing standard maven options for disabling SSL-Certificate validations - download of allure binaries is not possible
- Is it possible to merge multiple allure results into one report
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from allure-maven.