0

I am working on an automation with Selenium, Java, Maven, Junit. I want to use Alleru reports but when I try to run the mvn allure:server command, it generates the following error.

mvn allure:serve
[INFO] Scanning for projects... [WARNING] The POM for io.qameta.allure:allure-maven:jar:2.27.0 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for io.qameta.allure:allure-maven:2.27.0: Plugin io.qameta.allure:allure-maven:2.27.0 or one of its dependencies could not be resolved: io.qameta.allure:allure-maven:jar:2.27.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced [WARNING] The POM for io.qameta.allure:allure-maven:jar:2.27.0 is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.457 s [INFO] Finished at: 2025-10-10T14:06:02-05:00 [INFO] ------------------------------------------------------------------------ [ERROR] Plugin io.qameta.allure:allure-maven:2.27.0 or one of its dependencies could not be resolved: io.qameta.allure:allure-maven:jar:2.27.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

And as far as I have investigated I do not have any errors in my pom and everything is correct and I have already deleted cache, folders that could possibly interfere, I ran mvn clean install -U to force download the dependencies but nothing works

POM.XML
    <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/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.posadas</groupId>
        <artifactId>Locky</artifactId>
        <packaging>jar</packaging>
        <version>1.0-SNAPSHOT</version>
        <name>Locky</name>
        <url>http://maven.apache.org</url>
        <properties>
            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
            <maven.compiler.source>11</maven.compiler.source>
            <maven.compiler.target>11</maven.compiler.target>
            <selenium.version>4.22.0</selenium.version>
            <webdrivermanager.version>5.9.1</webdrivermanager.version>
            <junit.jupiter.version>5.10.2</junit.jupiter.version>
            <slf4j.version>2.0.13</slf4j.version>
            <jackson.version>2.17.2</jackson.version>
            <httpclient5.version>5.3.1</httpclient5.version>
            <surefire.plugin.version>3.3.1</surefire.plugin.version>
            <compiler.plugin.version>3.13.0</compiler.plugin.version>
            <commons.io.version>2.15.1</commons.io.version>
            <allure.version>2.29.0</allure.version>
            <allure.maven.version>2.27.0</allure.maven.version>
        </properties>
        <dependencies>
            <dependency>
                <groupId>org.seleniumhq.selenium</groupId>
                <artifactId>selenium-java</artifactId>
                <version>${selenium.version}</version>
            </dependency>
            <!-- WebDriverManager -->
            <dependency>
                <groupId>io.github.bonigarcia</groupId>
                <artifactId>webdrivermanager</artifactId>
                <version>${webdrivermanager.version}</version>
            </dependency>
            <!-- JUnit 5 / Jupiter -->
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-api</artifactId>
                <!-- === CORREGIDO: Versión estable === -->
                <version>${junit.jupiter.version}</version>
            </dependency>
            <!-- === AÑADIDO: JUnit 5 Engine (Necesario para ejecutar) === -->
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-engine</artifactId>
                <version>${junit.jupiter.version}</version>
            </dependency>
            <!-- === AÑADIDO: JUnit 5 Params (Para @ParameterizedTest) === -->
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-params</artifactId>
                <version>${junit.jupiter.version}</version>
            </dependency>
            <dependency>
                <groupId>io.qameta.allure</groupId>
                <artifactId>allure-junit5</artifactId>
                <version>${allure.version}</version>
                <scope>test</scope>
            </dependency>
            <!-- Jackson Databind (Para leer JSON si es necesario) -->
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
                <version>${jackson.version}</version>
            </dependency>
            <!-- Apache HttpClient5 (Solo si necesitas hacer requests HTTP directos) -->
            <dependency>
                <groupId>org.apache.httpcomponents.client5</groupId>
                <artifactId>httpclient5</artifactId>
                <version>${httpclient5.version}</version>
            </dependency>
            <!-- SLF4j API (Logging) -->
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            <!-- SLF4j Simple Binding (Implementación simple para logging) -->
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-simple</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${commons.io.version}</version>
            </dependency>
            
        </dependencies>
        <build>
            <plugins>
                <!-- === MODIFICADO: Configuración de Surefire para Allure === -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>${surefire.plugin.version}</version>
                    <configuration>
                        <rerunFailingTestsCount>2</rerunFailingTestsCount>
                        <!-- PROPIEDAD CLAVE: Asegura que los resultados se guarden para Allure -->
                        <systemProperties>
                            <property>
                                <name>allure.results.directory</name>
                                <value>${project.build.directory}/allure-results</value>
                            </property>
                        </systemProperties>
                    </configuration>
                </plugin>
                <!-- Configuración del compilador -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>${compiler.plugin.version}</version>
                    <configuration>
                        <source>${maven.compiler.source}</source>
                        <target>${maven.compiler.target}</target>
                    </configuration>
                </plugin>
                <!-- === AÑADIDO: CONFIGURACIÓN DEL PLUGIN ALLURE-MAVEN === -->
                <plugin>
                    <groupId>io.qameta.allure</groupId>
                    <artifactId>allure-maven</artifactId>
                    <version>${allure.maven.version}</version>
                    <configuration>
                        <reportVersion>2.30.0</reportVersion>
                        <!-- Directorio donde Allure leerá los resultados de Surefire -->
                        <resultsDirectory>${project.build.directory}/allure-results</resultsDirectory>
                        <!-- Directorio donde se generará el reporte final -->
                        <reportDirectory>${project.build.directory}/allure-report</reportDirectory>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    </project>
3
  • their latest release is 2.16.1 Commented Oct 11 at 7:41
  • The version is wrong... as already mentioned central.sonatype.com/artifact/io.qameta.allure/allure-maven/… Commented Oct 11 at 9:07
  • <dependency> <groupId>io.qameta.allure</groupId> <artifactId>allure-testng</artifactId> <version>2.29.1</version> </dependency> <dependency> <groupId>io.qameta.allure</groupId> <artifactId>allure-cucumber-jvm</artifactId> <version>2.20.1</version> </dependency> I used this 2 dependency and I am able to download and view the Allure reports Commented Nov 11 at 14:31

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.