The pom file is:

<?xml version="1.0" encoding="UTF-8"?> <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>1</groupId> <artifactId>1</artifactId> <version>1.0</version> <dependencies> <dependency> <groupId>ru.yandex.qatools.allure</groupId> <artifactId>allure-testng-adaptor</artifactId> <version>LATEST</version> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>2.53.1</version> </dependency> </dependencies> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.7</version> <configuration> <testSourceDirectory>${basedir}/src/main/java/</testSourceDirectory> <testClassesDirectory>${project.build.directory}/classes/</testClassesDirectory> <properties> <property> <name>usedefaultlisteners</name> <value>false</value> </property> <property> <name>listener</name> <value>org.uncommons.reportng.HTMLReporter, org.uncommons.reportng.JUnitXMLReporter</value> </property> </properties> <workingDirectory>${project.basedir}</workingDirectory> <argLine>-Dmaven.browser</argLine> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.16</version> <configuration> <testSourceDirectory>${basedir}/src/main/java/</testSourceDirectory> <testClassesDirectory>${project.build.directory}/classes/</testClassesDirectory> <testFailureIgnore>false</testFailureIgnore> <argLine>-javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar </argLine> <properties> <property> <name>listener</name> <value>ru.yandex.qatools.allure.testng.AllureTestListener</value> </property> </properties> <argLine>-Dmaven.browser</argLine> </configuration> <dependencies> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>${aspectj.version}</version> </dependency> </dependencies> </plugin> </plugins> <reporting> <excludeDefaults>true</excludeDefaults> <plugins> <plugin> <groupId>ru.yandex.qatools.allure</groupId> <artifactId>allure-maven-plugin</artifactId> <version>LATEST</version> </plugin> </plugins> </reporting> </project> 

mvn clear test site writes the following:

[INFO] Scanning for projects ...

[ERROR] [ERROR] Some problems were encountered while processing the POMs:

[ERROR] Malformed POM C: \ Users \ astaninama \ IdeaProjects \ untitled \ pom.xml: Unrecog nised tag: 'dependency' (position: START_TAG seen ... \ n \ n ... @ 10: 21) @ C: \ Users \ astaninama \ IdeaProjects \ untitled \ pom.xml, line 10, column 21

[ERROR] 'build.plugins.plugin.version' for org.apache.maven.plugins: maven-surefi re-plugin must be a valid version but is 'LATEST'. @ line 56, column 18

[ERROR] 'reporting.plugins.plugin.artifactId' is missing. @ line 40, column 13 @

[ERROR] build 1 project -> [Help 1]

[ERROR]

[ERROR] The project 1: 1: 1.0 (C: \ Users \ astaninama \ IdeaProjects \ untitled \ pom.xml) has 3 errors

[ERROR] Malformed POM C: \ Users \ astaninama \ IdeaProjects \ untitled \ pom.xml: Unr ecognised tag: 'dependency' (position: START_TAG seen ... \ n \ n <dependency> ... @ 10:20) @ C: \ Users \ astaninama \ IdeaProjects \ untitled \ pom.xml, lin e 10, column 21 -> [Help 2]

[ERROR] 'build.plugins.plugin.version' for org.apache.maven.plugins: you must have a valid version but is 'LATEST'. @ line 56, column 18

[ERROR] 'reporting.plugins.plugin.artifactId' is missing. @ line 40, column 13

[ERROR]

[ERROR] Re-run Maven with the -e swit ch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin gException

[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseExce ption

Why not find allure-maven-plagin and allute-testng-adaptor ?

    1 answer 1

    This is a non-existent package error, it is a pom.xml integrity error. If you copied the contents of pom from somewhere, most likely non-printable characters got into it, due to which errors occur. Try manually rewriting the dependencies section, because with so on. syntax everything looks fine, and the dependency tag, on which everything breaks, is completely legal.

    In addition, there are the following errors in pom.xml:

    • the plugins section should be in the build section
    • aspectj.version should be specified in the properties section

    After their correction, the project successfully starts.

     <?xml version="1.0" encoding="UTF-8"?> <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>1</groupId> <artifactId>1</artifactId> <version>1.0</version> <properties> <aspectj.version>1.8.9</aspectj.version> </properties> <dependencies> <dependency> <groupId>ru.yandex.qatools.allure</groupId> <artifactId>allure-testng-adaptor</artifactId> <version>LATEST</version> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>2.53.1</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.7</version> <configuration> <testSourceDirectory>${basedir}/src/main/java/</testSourceDirectory> <testClassesDirectory>${project.build.directory}/classes/</testClassesDirectory> <properties> <property> <name>usedefaultlisteners</name> <value>false</value> </property> <property> <name>listener</name> <value>org.uncommons.reportng.HTMLReporter, org.uncommons.reportng.JUnitXMLReporter</value> </property> </properties> <workingDirectory>${project.basedir}</workingDirectory> <argLine>-Dmaven.browser</argLine> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.16</version> <configuration> <testSourceDirectory>${basedir}/src/main/java/</testSourceDirectory> <testClassesDirectory>${project.build.directory}/classes/</testClassesDirectory> <testFailureIgnore>false</testFailureIgnore> <argLine>-javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar </argLine> <properties> <property> <name>listener</name> <value>ru.yandex.qatools.allure.testng.AllureTestListener</value> </property> </properties> <argLine>-Dmaven.browser</argLine> </configuration> <dependencies> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>${aspectj.version}</version> </dependency> </dependencies> </plugin> </plugins> </build> <reporting> <excludeDefaults>true</excludeDefaults> <plugins> <plugin> <groupId>ru.yandex.qatools.allure</groupId> <artifactId>allure-maven-plugin</artifactId> <version>LATEST</version> </plugin> </plugins> </reporting> </project> 
    • I tried, but the errors remained: ( - mariatest
    • @mariatest I tried to copy the whole of your pom.xml, make small edits (see the updated answer), and the project I had successfully assembled - etki
    • Indeed, the project was successfully assembled, although there are a few warnings. however, the <dependency> <groupId> org.aspectj </ groupId> <artifactId> aspectjweaver </ artifactId> <version> $ {aspectj.version} </ version> </ dependency> section is underlined in red - mariatest
    • @mariatest properties section has been added? What do you see when you hover? - etki
    • properties has been added as in the answer above. when hovering writes that such a relationship is not found - mariatest