[ https://issues.apache.org/jira/browse/SUREFIRE-2022?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17497258#comment-17497258 ]
Jo Jaafar edited comment on SUREFIRE-2022 at 2/24/22, 8:47 AM: --------------------------------------------------------------- Here you go [~tibordigana], {code:java} <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.abc.gtm.abcApplication_Automation</groupId> <artifactId>abcApplication_Automation</artifactId> <version>0.0.1-SNAPSHOT</version> <repositories> </repositories> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> </properties> <build> <sourceDirectory>src</sourceDirectory> <resources> <resource> <directory>src</directory> <excludes> <exclude>**/*.java</exclude> </excludes> </resource> </resources> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.5.1</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>ISO-8859-1</encoding> </configuration> </plugin><!-- Below plug-in is used to execute tests --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-M5</version> <configuration> <suiteXmlFiles><!-- TestNG suite XML files --> <!-- <suiteXmlFile>${suiteXMLFile}</suiteXmlFile> --> <suiteXmlFile>testng.xml</suiteXmlFile> </suiteXmlFiles> <!-- urls and users --> <systemPropertyVariables> <url>${url}</url> <!-- <user>${user}</user> --> </systemPropertyVariables> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.7.1</version> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>io.rest-assured</groupId> <artifactId>rest-assured</artifactId> <version>4.3.2</version> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId> <version>2.4.5</version> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>3.141.0</version> </dependency> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.9.9</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.6</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.poi/poi --> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>4.1.2</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml --> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>4.1.2</version> </dependency> </dependencies> <url>http://abc-selenium.abc.net:8080/labvabc/logon.jsp</url> <name>abc</name> <description>For complete Information : https://confluence.abc.net/display/abc/Test+Automation+abc </description> </project> {code} was (Author: JIRAUSER285649): Here you [~tibordigana], {code:java} <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.abc.gtm.abcApplication_Automation</groupId> <artifactId>abcApplication_Automation</artifactId> <version>0.0.1-SNAPSHOT</version> <repositories> </repositories> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> </properties> <build> <sourceDirectory>src</sourceDirectory> <resources> <resource> <directory>src</directory> <excludes> <exclude>**/*.java</exclude> </excludes> </resource> </resources> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.5.1</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>ISO-8859-1</encoding> </configuration> </plugin><!-- Below plug-in is used to execute tests --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-M5</version> <configuration> <suiteXmlFiles><!-- TestNG suite XML files --> <!-- <suiteXmlFile>${suiteXMLFile}</suiteXmlFile> --> <suiteXmlFile>testng.xml</suiteXmlFile> </suiteXmlFiles> <!-- urls and users --> <systemPropertyVariables> <url>${url}</url> <!-- <user>${user}</user> --> </systemPropertyVariables> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.7.1</version> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>io.rest-assured</groupId> <artifactId>rest-assured</artifactId> <version>4.3.2</version> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId> <version>2.4.5</version> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>3.141.0</version> </dependency> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.9.9</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.6</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.poi/poi --> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>4.1.2</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml --> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>4.1.2</version> </dependency> </dependencies> <url>http://abc-selenium.abc.net:8080/labvabc/logon.jsp</url> <name>abc</name> <description>For complete Information : https://confluence.abc.net/display/abc/Test+Automation+abc </description> </project> {code} > MAVEN - PluginExecutionException > -------------------------------- > > Key: SUREFIRE-2022 > URL: https://issues.apache.org/jira/browse/SUREFIRE-2022 > Project: Maven Surefire > Issue Type: Bug > Environment: SNAPSHOT : 0.1 > Maven: 3.8.4 > Maven-Surefire : 2.19 > Reporter: Jo Jaafar > Assignee: Tibor Digana > Priority: Blocker > Labels: newbie > Fix For: waiting-for-feedback > > Attachments: directory-list.PNG, screenshot-1.png > > Original Estimate: 68h > Remaining Estimate: 68h > > The issue started whereby the maven surefire plugin is turn up failed. even > before this theres issue with maven 2.4.1 but i have upgraded to maven 3.8.4. > As whole and by right it should solve the mentioned issues. But still > appeared. > > {color:#111111}[{color}{color:#403f53}ERROR{color}{color:#111111}] Failed to > execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test > (default-test) on project ABCApplications _Automation: Execution default-test > of goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test failed: > testSuiteXmlFiles0 has null value -> [Help 1]{color} > {color:#111111}[{color}{color:#403f53}ERROR{color}{color:#111111}] {color} > {color:#111111}[{color}{color:#403f53}ERROR{color}{color:#111111}] To see the > full stack trace of the errors, re-run Maven with the -e switch.{color} > {color:#111111}[{color}{color:#403f53}ERROR{color}{color:#111111}] Re-run > Maven using the -X switch to enable full debug logging.{color} > {color:#111111}[{color}{color:#403f53}ERROR{color}{color:#111111}] {color} > {color:#111111}[{color}{color:#403f53}ERROR{color}{color:#111111}] For more > information about the errors and possible solutions, please read the > following articles:{color} > {color:#111111}[{color}{color:#403f53}ERROR{color}{color:#111111}] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException{color} > {color:#111111}The process > 'C:\ProgramData\chocolatey\lib\maven\apache-maven-3.8.4\bin\mvn.cmd' failed > with exit code 1{color} > {color:#111111}Could not retrieve code analysis results - Maven run > failed.{color} > {color:#111111}No test result files matching > D:\a\1\s{color}{color:#aa0982}\*{color}{color:#994cc3}*{color}{color:#994cc3}\surefire-reports\TEST-{color}{color:#994cc3}*{color}{color:#111111}.xml > were found, so publishing JUnit test results is being skipped.{color} > {color:#111111}##[{color}{color:#403f53}error{color}{color:#111111}]Build > failed.{color} > {color:#111111}Finishing: Maven pom.xml{color} > > Since im new to JAVA (recently change). Theres alot of gray area on this. > Hope everyone who see this can help me on this. its already prolong for quite > sometime. > > -- This message was sent by Atlassian Jira (v8.20.1#820001)