-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
174 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
# Forja | ||
#### Asignatura: *Ingeniería Web: Visión General* | ||
#### [Máster en Ingeniería Web por la U.P.M.](http://miw.etsisi.upm.es) | ||
> Este proyecto pretende ser un ejemplo de preparación de una forja para el desarrollo de software colaborativo | ||
> ##### [Máster en Ingeniería Web por la Universidad Politécnica de Madrid (miw-upm)](http://miw.etsisi.upm.es) | ||
> ##### Asignatura: *Ingeniería Web: Visión General* | ||
### Estado del código | ||
|
||
[![Build Status](https://travis-ci.org/miw-upm/IWVG-forge.svg?branch=develop)](https://travis-ci.org/miw-upm/IWVG-forge) | ||
|
||
[![Quality Gate](https://sonarcloud.io/api/badges/gate?key=es.upm.miw:IWVG-forge)](https://sonarcloud.io/dashboard/index/es.upm.miw:IWVG-forge) | ||
|
||
[![codebeat badge](https://codebeat.co/badges/72a87b0f-0ada-4895-9fcb-1d10a392bdaf)](https://codebeat.co/projects/github-com-miw-upm-iwvg-forge-develop) | ||
|
||
### Tecnologías necesarias | ||
* Java | ||
* Maven | ||
* Eclipse | ||
* GitHub | ||
|
||
### Descripción | ||
Este proyecto pretende ser un ejemplo de preparación de una forja para el desarrollo de software colaborativo | ||
|
||
* Travis-ci | ||
* Sonarcloud | ||
* Codebeat |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
language: java | ||
jdk: | ||
- oraclejdk8 | ||
branches: | ||
only: | ||
- master | ||
- develop | ||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
services: | ||
- mysql | ||
before_install: | ||
- mysql -e 'CREATE DATABASE IF NOT EXISTS bd;' | ||
script: | ||
#Test unitario y de integracion en develop | ||
- mvn verify --settings settings.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Forja | ||
#### Asignatura: *Ingeniería Web: Visión General* | ||
#### [Máster en Ingeniería Web por la U.P.M.](http://miw.etsisi.upm.es) | ||
|
||
### Tecnologías necesarias | ||
* Java | ||
* Maven | ||
* Eclipse | ||
* GitHub | ||
|
||
### Descripción | ||
Este proyecto pretende ser una plantilla maven para crear un proyecto | ||
1.- Descomprimir en la carpeta de trabajo | ||
1.- Editar el pom.xml y cambiarle el nombre del proyecto | ||
1.- Desde Eclipse, importar el proyecto como un proyecto de maven existente | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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> | ||
<artifactId>maven</artifactId> | ||
<artifactId>IWVG.Forge</artifactId> | ||
<groupId>es.upm.miw</groupId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>${project.groupId}.${project.artifactId}</name> | ||
|
@@ -21,7 +21,7 @@ | |
<project.resources.sourceEncoding>${encoding}</project.resources.sourceEncoding> | ||
<jdk.version>1.8</jdk.version> | ||
<!-- Maven --> | ||
<maven.compiler.version>3.3</maven.compiler.version> | ||
<maven.compiler.version>3.5</maven.compiler.version> | ||
<!-- Maven. Test de Integración --> | ||
<maven.failsafe.version>2.19.1</maven.failsafe.version> | ||
<!-- Pruebas --> | ||
|
@@ -159,9 +159,9 @@ | |
|
||
<developers> | ||
<developer> | ||
<name>Nombre y Apellidos</name> | ||
<id>***</id> | ||
<email>***@alumnos.upm.es</email> | ||
<name>Name</name> | ||
<id>Id</id> | ||
<email>[email protected]</email> | ||
<organization>MIW UPM</organization> | ||
<roles> | ||
<role>Architect</role> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- $HOME/.m2/settings.xml We set 3 profiles: develop, preproduction and production | ||
To check active profiles, in a project folder we run mvn help:active-profiles | ||
Now in our pom.xml we can add profiles with their own properties like database | ||
settings --> | ||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 | ||
http://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
<profiles> | ||
<profile> | ||
<id>develop</id> | ||
<activation> | ||
<!-- develop is active by default, so doing 'mvn install' will apply this --> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
<properties> | ||
<environment.type>develop</environment.type> | ||
</properties> | ||
</profile> | ||
<profile> | ||
<id>preproduction</id> | ||
<activation> | ||
<activeByDefault>false</activeByDefault> | ||
</activation> | ||
<properties> | ||
<environment.type>preproduction</environment.type> | ||
</properties> | ||
</profile> | ||
<profile> | ||
<id>production</id> | ||
<activation> | ||
<activeByDefault>false</activeByDefault> | ||
</activation> | ||
<properties> | ||
<environment.type>production</environment.type> | ||
</properties> | ||
</profile> | ||
</profiles> | ||
</settings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
#DB properties: | ||
dataSource.driverClassName=${database.driver} | ||
dataSource.url=${database.url} | ||
dataSource.username=${database.user} | ||
dataSource.password=${database.password} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
@echo off | ||
set workspace=C:\DatosJBB\WorkSpaces\Oxygen\IWVG.Forge | ||
set workspace=C:\DatosJBB\WorkSpaces\Oxygen\IWVG-forge | ||
::Las variables de entorno se pueden configurar directamente en Windows cuando se tienen los permisos necesarios | ||
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_65 | ||
set M2_HOME=C:\Archivos_de_programa\apache-maven-3.3.3 | ||
set M2_HOME=C:\Archivos_de_programa\apache-maven-3.5.0 | ||
set PATH=%PATH%;%JAVA_HOME%\bin;%M2_HOME%\bin | ||
echo ----------------------------------------- | ||
echo . (C) MIW | ||
echo . (C) MIW - UPM | ||
echo ----------------------------------------- | ||
echo . | ||
echo Workspace --- %workspace% | ||
echo JAVA_HOME --- %JAVA_HOME% | ||
echo M2_HOME --- %M2_HOME% | ||
echo . | ||
cd %workspace% | ||
echo ============ mvn clean test (profile: develop) ======================================================= | ||
echo ============ mvn clean test --settings settings.xml (profile: develop) ===================================== | ||
echo . | ||
call mvn clean test --settings settings.xml | ||
call mvn clean test --settings settings.xml | ||
pause | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@echo off | ||
set workspace=C:\DatosJBB\WorkSpaces\Oxygen\IWVG-forge | ||
::Las variables de entorno se pueden configurar directamente en Windows cuando se tienen los permisos necesarios | ||
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_65 | ||
set M2_HOME=C:\Archivos_de_programa\apache-maven-3.5.0 | ||
set PATH=%PATH%;%JAVA_HOME%\bin;%M2_HOME%\bin | ||
echo ----------------------------------------- | ||
echo . (C) MIW -UPM | ||
echo ----------------------------------------- | ||
echo . | ||
echo Workspace --- %workspace% | ||
echo JAVA_HOME --- %JAVA_HOME% | ||
echo M2_HOME --- %M2_HOME% | ||
echo . | ||
cd %workspace% | ||
echo ============ mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify --settings settings.xml ... ================== | ||
echo . Se prepara cobertura | ||
call mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify --settings settings.xml | ||
|
||
echo ============ mvn sonar:sonar ... ======================================================= | ||
echo . Se analiza y sube a sonar cloud | ||
call mvn sonar:sonar -Dsonar.organization=miw-upm-github -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=2c0fb8373ef9b9e73ffad70e23f1a77158fb0e37 --settings settings.xml | ||
pause |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.