Académique Documents
Professionnel Documents
Culture Documents
2
Para este caso se deja en Packaging la opción jar, debido a que es un archivo que se
importará en los proyectos Web. Al hacer clic en finalizar se pregunta si se quiere
convertir las dependencia y librerías o se quiere omitir.
3
Se puede hacer clic en Skip Dependency Conversion, para finalmente crear el
documento pom.xml, como se observa:
<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>a ngieModel</groupId>
<artifactId>angieModel</artifactId>
<version>0 .0.1-SNAPSHOT</version>
<build>
<s ourceDirectory>s rc</sourceDirectory>
<p lugins>
<p lugin>
<a rtifactId>maven-compiler-plugin</artifactId>
4
<v ersion>3 .8.0</version>
<c onfiguration>
<s ource>1
.8</source>
<t arget>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
5
6
Adicional deberíamos incluir el resto de dependencias. Para que terminar el proceso se
debe actualizar el Maven par que se actualicen las dependencias:
7
8
Después de seleccionar debemos hacer clic en Next. Y luego nuevamente Next hasta
llegar a la configuración del Facet de JPA:
9
10
11
Se debe seleccionar el perfil de conexión, para este caso MySQL y dar un nombre, luego
hacer clic en Next. El siguiente paso es completar los datos de la conexión y testear:
12
En la mayoría
de las
ocasiones se
debe incluir
el password
de la base de
datos. Si por
alguna razón
no hay un
driver
registrado, el
mismo debe
ser creado.
Despues de cargar el proyecto se tiene la estructura con el JPA incluido, a traves del
archivo persistence.xml, que internamente crea la unidad de persistencia angieModel:
13
<p roperty name=" javax.persistence.jdbc.password" value=" "/>
<p roperty name=" javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/>
<p roperty name=" javax.persistence.schema-generation.database.action"
value="drop-and-create"/>
<p roperty name=" hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
</properties>
</persistence-unit>
</persistence>
Matemáticas
● Escribe aquí tu texto Escribe aquí tu texto Escribe aquí tu texto Escribe aquí tu
texto Escribe aquí tu texto.
○ Escribe aquí tu texto.
○ Escribe aquí tu texto Escribe aquí tu texto.
Fecha: 03/09/20XX
Ciencias
● Escribe aquí tu texto Escribe aquí tu texto Escribe aquí tu texto Escribe aquí tu
texto Escribe aquí tu texto Escribe aquí tu texto.
14
○ Escribe aquí tu texto.
○ Escribe aquí tu texto Escribe aquí tu texto.
○ Escribe aquí tu texto Escribe aquí tu texto Escribe aquí tu texto.