Commit 3148c108 authored by Administrator's avatar Administrator

Updates project for the new course

Some minor changes have been done to update the project and adapt it
to some depencencies updates.
parent 8cae49f8
...@@ -15,3 +15,6 @@ WebContent ...@@ -15,3 +15,6 @@ WebContent
# Testing # Testing
/servers /servers
C:\\nppdf32Log\\debuglog.txt C:\\nppdf32Log\\debuglog.txt
# Angular
src/main/angular
...@@ -5,6 +5,16 @@ Aplicación y arquitectura de ejemplo para la asignatura Desarrollo Ágil de ...@@ -5,6 +5,16 @@ Aplicación y arquitectura de ejemplo para la asignatura Desarrollo Ágil de
Aplicaciones del Grado en Ingeniería Informática de la Escuela Superior de Aplicaciones del Grado en Ingeniería Informática de la Escuela Superior de
Ingeniería Informática de la Universidad de Vigo. Ingeniería Informática de la Universidad de Vigo.
## Dependencias
Este proyecto está diseñado para ser desarrollado en un entorno con:
* Maven 3
* Java 8
* MySQL 5.7.6+ o 8+
Además, se recomienda emplear la última versión de Eclipse IDE for Enterprise
Java Developers.
## Ejecución con Maven ## Ejecución con Maven
La configuración de Maven ha sido preparada para permitir varios tipos de La configuración de Maven ha sido preparada para permitir varios tipos de
ejecución. ejecución.
......
DROP DATABASE IF EXISTS `daaexample`;
CREATE DATABASE `daaexample`; CREATE DATABASE `daaexample`;
CREATE TABLE `daaexample`.`people` ( CREATE TABLE `daaexample`.`people` (
...@@ -14,7 +15,7 @@ CREATE TABLE `daaexample`.`users` ( ...@@ -14,7 +15,7 @@ CREATE TABLE `daaexample`.`users` (
PRIMARY KEY (`login`) PRIMARY KEY (`login`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE USER 'daa'@'localhost' IDENTIFIED WITH mysql_native_password BY 'daa'; CREATE USER IF NOT EXISTS 'daa'@'localhost' IDENTIFIED WITH mysql_native_password BY 'daa';
GRANT ALL ON `daaexample`.* TO 'daa'@'localhost'; GRANT ALL ON `daaexample`.* TO 'daa'@'localhost';
INSERT INTO `daaexample`.`people` (`id`,`name`,`surname`) VALUES (0,'Antón','Pérez'); INSERT INTO `daaexample`.`people` (`id`,`name`,`surname`) VALUES (0,'Antón','Pérez');
......
DROP DATABASE IF EXISTS `daaexample`;
CREATE DATABASE `daaexample`; CREATE DATABASE `daaexample`;
CREATE TABLE `daaexample`.`people` ( CREATE TABLE `daaexample`.`people` (
...@@ -14,5 +15,5 @@ CREATE TABLE `daaexample`.`users` ( ...@@ -14,5 +15,5 @@ CREATE TABLE `daaexample`.`users` (
PRIMARY KEY (`login`) PRIMARY KEY (`login`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE USER 'daa'@'localhost' IDENTIFIED WITH mysql_native_password BY 'daa'; CREATE USER IF NOT EXISTS 'daa'@'localhost' IDENTIFIED WITH mysql_native_password BY 'daa';
GRANT ALL ON `daaexample`.* TO 'daa'@'localhost'; GRANT ALL ON `daaexample`.* TO 'daa'@'localhost';
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<groupId>es.uvigo.esei.daa</groupId> <groupId>es.uvigo.esei.daa</groupId>
<artifactId>example</artifactId> <artifactId>example</artifactId>
<packaging>war</packaging> <packaging>war</packaging>
<version>0.1.18</version> <version>0.1.19</version>
<name>DAA Example</name> <name>DAA Example</name>
<licenses> <licenses>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<slf4j-jdk14.version>1.7.21</slf4j-jdk14.version> <slf4j-jdk14.version>1.7.21</slf4j-jdk14.version>
<!-- Tests dependencies --> <!-- Tests dependencies -->
<junit.version>4.12</junit.version> <junit.version>4.13.2</junit.version>
<java-hamcrest.version>2.0.0.0</java-hamcrest.version> <java-hamcrest.version>2.0.0.0</java-hamcrest.version>
<easymock.version>3.5.1</easymock.version> <easymock.version>3.5.1</easymock.version>
<selenium-java.version>3.141.59</selenium-java.version> <selenium-java.version>3.141.59</selenium-java.version>
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
<!-- Plugins --> <!-- Plugins -->
<maven-failsafe-plugin.version>2.20.1</maven-failsafe-plugin.version> <maven-failsafe-plugin.version>2.20.1</maven-failsafe-plugin.version>
<maven-jxr-plugin>3.0.0</maven-jxr-plugin>
<maven-surefire-plugin.version>2.20.1</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.20.1</maven-surefire-plugin.version>
<maven-surefire-report-plugin.version>2.20.1</maven-surefire-report-plugin.version> <maven-surefire-report-plugin.version>2.20.1</maven-surefire-report-plugin.version>
<maven-war-plugin.version>3.2.0</maven-war-plugin.version> <maven-war-plugin.version>3.2.0</maven-war-plugin.version>
...@@ -183,6 +184,16 @@ ...@@ -183,6 +184,16 @@
</dependency> </dependency>
</dependencies> </dependencies>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>${maven-jxr-plugin.version}</version>
</plugin>
</plugins>
</reporting>
<build> <build>
<finalName>DAAExample</finalName> <finalName>DAAExample</finalName>
...@@ -394,7 +405,7 @@ ...@@ -394,7 +405,7 @@
<cargo.datasource.datasource.h2> <cargo.datasource.datasource.h2>
cargo.datasource.jndi=jdbc/daaexample| cargo.datasource.jndi=jdbc/daaexample|
cargo.datasource.driver=com.mysql.jdbc.Driver| cargo.datasource.driver=com.mysql.jdbc.Driver|
cargo.datasource.url=jdbc:mysql://localhost/daaexample| cargo.datasource.url=jdbc:mysql://localhost/daaexample?useSSL=false|
cargo.datasource.username=daa| cargo.datasource.username=daa|
cargo.datasource.password=daa| cargo.datasource.password=daa|
cargo.datasource.maxActive=8| cargo.datasource.maxActive=8|
......
...@@ -2,7 +2,7 @@ package es.uvigo.esei.daa.entities; ...@@ -2,7 +2,7 @@ package es.uvigo.esei.daa.entities;
import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat; import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
import org.junit.Test; import org.junit.Test;
......
...@@ -18,7 +18,7 @@ import static es.uvigo.esei.daa.matchers.IsEqualToPerson.equalsToPerson; ...@@ -18,7 +18,7 @@ import static es.uvigo.esei.daa.matchers.IsEqualToPerson.equalsToPerson;
import static javax.ws.rs.client.Entity.entity; import static javax.ws.rs.client.Entity.entity;
import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat; import static org.hamcrest.MatcherAssert.assertThat;
import java.io.IOException; import java.io.IOException;
import java.util.List; import java.util.List;
......
...@@ -8,7 +8,7 @@ import static es.uvigo.esei.daa.matchers.HasHttpStatus.hasOkStatus; ...@@ -8,7 +8,7 @@ import static es.uvigo.esei.daa.matchers.HasHttpStatus.hasOkStatus;
import static es.uvigo.esei.daa.matchers.HasHttpStatus.hasUnauthorized; import static es.uvigo.esei.daa.matchers.HasHttpStatus.hasUnauthorized;
import static es.uvigo.esei.daa.matchers.IsEqualToUser.equalsToUser; import static es.uvigo.esei.daa.matchers.IsEqualToUser.equalsToUser;
import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat; import static org.hamcrest.MatcherAssert.assertThat;
import java.io.IOException; import java.io.IOException;
......
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
<Realm className="org.apache.catalina.realm.JDBCRealm" <Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="com.mysql.jdbc.Driver" driverName="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost/daaexample" connectionURL="jdbc:mysql://localhost/daaexample?useSSL=false"
connectionName="daa" connectionName="daa"
connectionPassword="daa" connectionPassword="daa"
userTable="users" userNameCol="login" userCredCol="password" userTable="users" userNameCol="login" userCredCol="password"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment