-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
72 lines (72 loc) · 2.57 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<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>
<!-- Identificadores del proyecto -->
<groupId>com.miempresa</groupId>
<artifactId>AplicacionDeFacturacion</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<!-- Nombre y URL del proyecto -->
<name>ejerciciouno</name>
<url>http://maven.apache.org</url>
<!-- Dependencias del proyecto -->
<dependencies>
<!-- Dependencia para JUnit 5 -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.10.0</version>
<scope>test</scope>
</dependency>
<!-- Dependencia para el motor de JUnit 5 -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.10.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Plugin para configurar el compilador de Java -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
<!-- Plugin para ejecutar pruebas con JUnit 5 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
</configuration>
</plugin>
<!-- Plugin para generar informes HTML a partir de los resultados de las pruebas -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.22.2</version>
<executions>
<execution>
<id>report</id>
<phase>verify</phase> <!-- Generar informes después de ejecutar las pruebas -->
<goals>
<goal>report-only</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- Para generar informes en HTML -->
<reportFormat>html</reportFormat>
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
</configuration>
</plugin>
</plugins>
</build>
</project>