|
1 |
| -# Install Maven on Windows |
| 1 | +# Instalación de Maven en Windows |
2 | 2 |
|
3 |
| -Tutorials are learning-oriented articles that help users to go through a process and achieve a deliverable. |
4 |
| -Start with an introduction: for whom is this tutorial and what the reader will achieve by reading it. |
5 |
| -Answer the question: "Why should I follow this?" |
| 3 | +## Descarga de Maven |
6 | 4 |
|
7 |
| -Provide a short outline for the tutorial. |
8 |
| -In this tutorial, you will learn how to: |
9 |
| -* Do this |
10 |
| -* Deal with that |
| 5 | +Ir al sitio de |
| 6 | +<a href="https://maven.apache.org/download.cgi"><b>Maven</b></a> |
| 7 | +y descargar **Binary Zip Archive** |
11 | 8 |
|
12 |
| -## Before you start |
| 9 | +Luego de finalizada la descarga ubicar el archivo correspondiente. En este caso |
13 | 10 |
|
14 |
| -List the prerequisites that are required or recommended. |
| 11 | +<shortcut>apache-maven-3.9.9-bin.zip</shortcut> |
15 | 12 |
|
16 |
| -Make sure that: |
17 |
| -- First prerequisite |
18 |
| -- Second prerequisite |
| 13 | +En el explorador de archivos, usando el menú contextual sobre la descarga elegir la opción **Extraer todo...** |
19 | 14 |
|
20 |
| -## Part 1 |
| 15 | +Elegir un path donde deseemos instalar Maven. En este caso utilizaremos |
21 | 16 |
|
22 |
| -Describe what the user will learn and accomplish in the first part, |
23 |
| -then write a step-by-step procedure but on a real-world example. |
| 17 | +<shortcut>C:\Maven</shortcut> |
24 | 18 |
|
25 |
| -1. Execute the following command in the terminal: |
| 19 | +Se creará la carpeta necesaria. |
26 | 20 |
|
27 |
| - ```bash |
28 |
| - run this --that |
29 |
| - ``` |
| 21 | +<img src="windows-maven-0.png" alt="Windows 0" width="600"/> |
30 | 22 |
|
31 |
| -2. Step with a [link](https://www.jetbrains.com) |
| 23 | +## Variables de entorno |
32 | 24 |
|
33 |
| -3. Final step in part 1. |
| 25 | +Abrir **Configuración**. Luego en **Sistema**, elegir el botón **Información** |
34 | 26 |
|
35 |
| -## Part 2 |
| 27 | +En la sección **Especificaciones del dispositivo** elegir la opción **Configuración avanzada del sistema** |
36 | 28 |
|
37 |
| -This is the second part of the tutorial: |
| 29 | +En la ventana elegir la opción **Variables de entorno..** que se encuentra en la esquina inferior derecha. |
38 | 30 |
|
39 |
| -1. Step 1 |
40 |
| -2. Step 2 |
41 |
| -3. Step n |
| 31 | +En la sección **Variables del sistema** debe agregar una nueva variable de sistema presionando el botón **Nueva..** |
42 | 32 |
|
43 |
| -## What you've learned {id="what-learned"} |
| 33 | +En el popup completamos con <shortcut>M2_HOME</shortcut> como **Nombre de la variable**. |
| 34 | +En **Valor de la variable** lo completamos con la opción **Examinar directorio...** |
44 | 35 |
|
45 |
| -Summarize what the reader achieved by completing this tutorial. |
| 36 | +Elegir el path donde se instaló Java, en este caso, <shortcut>C:\Maven\apache-maven-3.9.9</shortcut> |
46 | 37 |
|
47 |
| -<seealso> |
48 |
| -<!--Give some related links to how-to articles--> |
49 |
| -</seealso> |
| 38 | +<img src="windows-maven-1.png" alt="Windows 1" width="600"/> |
| 39 | + |
| 40 | +Repetimos el proceso pero ahora para la variable de sistema <shortcut>MAVEN_HOME</shortcut> |
| 41 | + |
| 42 | +<img src="windows-maven-2.png" alt="Windows 2" width="600"/> |
| 43 | + |
| 44 | +Por último vamos a modificar la variable de sistema **Path** para que incluya a la recién definida |
| 45 | + |
| 46 | +Seleccionar la variable de sistema Path y luego **Editar...** |
| 47 | + |
| 48 | +En la ventana elegir la opción **Nuevo** y completar con |
| 49 | +<shortcut>% M2_HOME%\bin</shortcut> |
| 50 | + |
| 51 | +<img src="windows-maven-3.png" alt="Windows 3" width="600"/> |
| 52 | + |
| 53 | +Aceptar los cambios en todas las ventanas. |
| 54 | + |
| 55 | +## Consultar la versión instalada |
| 56 | + |
| 57 | +Consulte la versión de Maven instalada |
| 58 | +abriendo una terminal usando Símbolo de Sistema |
| 59 | +y ejecutando el siguiente comando |
| 60 | + |
| 61 | +<code-block lang="console">mvn -version</code-block> |
| 62 | + |
| 63 | +Debería ver una salida similar a la siguiente |
| 64 | + |
| 65 | +<code-block lang="plain text"> |
| 66 | +C:\Users\foo>mvn -version |
| 67 | +Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937) |
| 68 | +Maven home: C:\Maven\apache-maven-3.9.9 |
| 69 | +Java version: 23.0.1, vendor: Oracle Corportation, runtime: C:\Java\jdk-23.0.1 |
| 70 | +Default locale: es_ES, platform encoding: UTF-8 |
| 71 | +OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows" |
| 72 | +</code-block> |
| 73 | + |
| 74 | +Identifique en la salida una versión |
| 75 | +<shortcut>23</shortcut> o superior, en este ejemplo es la <code>23.0.1</code> |
| 76 | + |
| 77 | +<note> |
| 78 | + <p> |
| 79 | + Listo! Ya cuenta con Java instalado correctamente. |
| 80 | + </p> |
| 81 | +</note> |
0 commit comments