Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider 3d24ce51 rédigé par Gerson Sunyé's avatar Gerson Sunyé
Parcourir les fichiers

updated several Maven plugins

parent de3d9222
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -21,15 +21,6 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${compileSource}</source>
<target>${compileSource}</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
......@@ -60,7 +51,7 @@
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
<version>3.1.0</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
......@@ -88,7 +79,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
......@@ -99,7 +90,7 @@
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>1.0</version>
<version>1.0.2</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
......
......@@ -43,7 +43,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.4</version>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
......
......@@ -18,19 +18,6 @@
<url>http://code.google.com/p/gtdbbcm/</url>
</scm>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
......@@ -86,7 +73,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<version>4.12</version>
</dependency>
<dependency>
<groupId>javax.transaction</groupId>
......
......@@ -34,29 +34,5 @@
<timezone>+2</timezone>
</developer>
</developers>
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javancss-maven-plugin</artifactId>
<version>2.0</version>
<configuration>
<sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
</configuration>
</plugin>
<plugin>
<groupId>net.sf.xradar</groupId>
<artifactId>maven-xradar-plugin</artifactId>
<version>1.2.2</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>emma-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
</plugin>
</plugins>
</reporting>
</project>
<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>
<parent>
<groupId>fr.alma</groupId>
<artifactId>GTDServer</artifactId>
<version>1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>fr.alma</groupId>
<artifactId>GTDServerGUI</artifactId>
<packaging>jar</packaging>
......@@ -26,7 +27,7 @@
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>2.0.0</version>
<version>2.8.2</version>
</dependency>
</dependencies>
</project>
package fr.alma.gtd.donneespartagees;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* Classe representant les projets.
* @author Stephane Begaudeau, Benjamin Gosset, Alex Lagarde, Christophe Renaudineau.
* @version 1.0.0
*/
public abstract class AbstractProjet extends AbstractObjetServeur implements IProjet {
/**
* Identifiant de serialisation.
*/
private static final long serialVersionUID = -1035410260532175513L;
/**
* Le nom du projet.
*/
protected String nom;
/**
* L'avancement du projet.
*/
protected Avancement avancement;
/**
* Le contexte par defaut des taches ajoutees au projet.
*/
protected IContexte contexteParDefaut;
/**
* La liste des taches.
*/
protected List<ITache> listeDesTaches;
/**
* La liste des participants.
*/
protected List<IParticipant> listeDesParticipants;
/**
* Le createur du projet.
*/
protected IParticipant createur;
/**
* Indique si le projet est dans la poubelle.
*/
protected boolean dansLaPoubelle;
/**
* Indique si le projet est dans les archives
*/
protected boolean dansArchive;
/**
* Liste des contacts associes a ce projet.
*/
protected List<IContact> contacts;
/**
 
*/
protected List<IProjet> listeDesSousProjets;
/**
* Initialisation des variables.
*/
{
this.dansLaPoubelle = false;
this.dansArchive = false;
this.dateDeDerniereModification = new Date();
this.listeDesTaches = new ArrayList<ITache>();
this.listeDesParticipants = new ArrayList<IParticipant>();
this.listeDesSousProjets = new ArrayList<IProjet>();
this.contacts = new ArrayList<IContact>();
this.avancement = Avancement.AFAIRE;
}
/**
* Le constructeur par defaut.
*/
public AbstractProjet() {
super();
}
/**
* Le constructeur avec initialisation du nom, du contexte par defaut et du createur.
* @param n Le nom choisi.
* @param contexte Le contexte choisi.
* @param c Le createur du projet.
*/
public AbstractProjet(final String n, final IContexte contexte, final IParticipant c) {
super();
this.nom = n;
this.contexteParDefaut = contexte;
this.createur = c;
}
/**
* Constructeur de recopie d'un projet.
* @param p Projet a recopier
*/
public AbstractProjet(final IProjet p) {
this.copier(p);
}
/**
* Copie l'ensemble des attributs du projet passe en parametre.
* @param p Projet a recopier
*/
public void copier(final IProjet p ){
this.nom = p.getNom();
this.createur = p.getCreateur();
this.dateDeDerniereModification = p.getDateDeDerniereModification();
this.identifiantServeur = p.getIdentifiantServeur();
this.contexteParDefaut = p.getContexteParDefaut();
this.listeDesTaches = p.getListeDeTaches();
this.listeDesParticipants = p.getListeDeParticipants();
this.avancement = p.getAvancement();
this.dansLaPoubelle = p.isDansLaPoubelle();
this.contacts = p.getListeContacts();
this.listeDesSousProjets = p.getListeDeSousProjets();
}
@Override
public final void ajoutTache(final ITache t) {
//TODO
}
@Override
public final void supprimeTache(final ITache t) {
//TODO
}
@Override
public final void supprimerToutesTaches() {
//TODO
}
@Override
public final void archiver() {
//TODO
}
@Override
public final void mettreALaPoubelle() {
//TODO
}
@Override
public final void restaurer() {
//TODO
}
@Override
public final void setNom(final String n) {
this.nom = n;
}
@Override
public final void setDansLaPoubelle(final boolean estDansPoubelle) {
this.dansLaPoubelle = estDansPoubelle;
}
@Override
public final void setAvancement(final Avancement a) {
this.avancement = a;
}
@Override
public final void setContexteParDefaut(final IContexte contexteDefaut) {
this.contexteParDefaut = contexteDefaut;
}
@Override
public final void setListeDeTaches(final ArrayList<ITache> listeTaches) {
this.listeDesTaches = listeTaches;
}
@Override
public final void setListeDeSousProjets(final List<IProjet> listeProjets) {
this.listeDesSousProjets = listeProjets;
}
@Override
public final void setListeDeParticipants(final List<IParticipant> listeParticipants) {
this.listeDesParticipants = listeParticipants;
}
@Override
public final void setCreateur(final IParticipant c) {
this.createur = c;
}
@Override
public final void setListeContacts(final List<IContact> contacts){
this.contacts = contacts;
}
@Override
public void setDansArchive(boolean dansArchive) {
this.dansArchive = dansArchive;
}
}
package fr.alma.gtd.donneespartagees;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* Classe representant les projets.
* @author Stephane Begaudeau, Benjamin Gosset, Alex Lagarde, Christophe Renaudineau.
* @version 1.0.0
*/
public abstract class AbstractProjet extends AbstractObjetServeur implements IProjet {
/**
* Identifiant de serialisation.
*/
private static final long serialVersionUID = -1035410260532175513L;
/**
* Le nom du projet.
*/
protected String nom;
/**
* L'avancement du projet.
*/
protected Avancement avancement;
/**
* Le contexte par defaut des taches ajoutees au projet.
*/
protected IContexte contexteParDefaut;
/**
* La liste des taches.
*/
protected List<ITache> listeDesTaches;
/**
* La liste des participants.
*/
protected List<IParticipant> listeDesParticipants;
/**
* Le createur du projet.
*/
protected IParticipant createur;
/**
* Indique si le projet est dans la poubelle.
*/
protected boolean dansLaPoubelle;
/**
* Indique si le projet est dans les archives
*/
protected boolean dansArchive;
/**
* Liste des contacts associes a ce projet.
*/
protected List<IContact> contacts;
/**
* Liste des sous-projets associés à ce projet.
*/
protected List<IProjet> listeDesSousProjets;
/**
* Initialisation des variables.
*/
{
this.dansLaPoubelle = false;
this.dansArchive = false;
this.dateDeDerniereModification = new Date();
this.listeDesTaches = new ArrayList<ITache>();
this.listeDesParticipants = new ArrayList<IParticipant>();
this.listeDesSousProjets = new ArrayList<IProjet>();
this.contacts = new ArrayList<IContact>();
this.avancement = Avancement.AFAIRE;
}
/**
* Le constructeur par defaut.
*/
public AbstractProjet() {
super();
}
/**
* Le constructeur avec initialisation du nom, du contexte par defaut et du createur.
* @param n Le nom choisi.
* @param contexte Le contexte choisi.
* @param c Le createur du projet.
*/
public AbstractProjet(final String n, final IContexte contexte, final IParticipant c) {
super();
this.nom = n;
this.contexteParDefaut = contexte;
this.createur = c;
}
/**
* Constructeur de recopie d'un projet.
* @param p Projet a recopier
*/
public AbstractProjet(final IProjet p) {
this.copier(p);
}
/**
* Copie l'ensemble des attributs du projet passe en parametre.
* @param p Projet a recopier
*/
public void copier(final IProjet p ){
this.nom = p.getNom();
this.createur = p.getCreateur();
this.dateDeDerniereModification = p.getDateDeDerniereModification();
this.identifiantServeur = p.getIdentifiantServeur();
this.contexteParDefaut = p.getContexteParDefaut();
this.listeDesTaches = p.getListeDeTaches();
this.listeDesParticipants = p.getListeDeParticipants();
this.avancement = p.getAvancement();
this.dansLaPoubelle = p.isDansLaPoubelle();
this.contacts = p.getListeContacts();
this.listeDesSousProjets = p.getListeDeSousProjets();
}
@Override
public final void ajoutTache(final ITache t) {
//TODO
}
@Override
public final void supprimeTache(final ITache t) {
//TODO
}
@Override
public final void supprimerToutesTaches() {
//TODO
}
@Override
public final void archiver() {
//TODO
}
@Override
public final void mettreALaPoubelle() {
//TODO
}
@Override
public final void restaurer() {
//TODO
}
@Override
public final void setNom(final String n) {
this.nom = n;
}
@Override
public final void setDansLaPoubelle(final boolean estDansPoubelle) {
this.dansLaPoubelle = estDansPoubelle;
}
@Override
public final void setAvancement(final Avancement a) {
this.avancement = a;
}
@Override
public final void setContexteParDefaut(final IContexte contexteDefaut) {
this.contexteParDefaut = contexteDefaut;
}
@Override
public final void setListeDeTaches(final ArrayList<ITache> listeTaches) {
this.listeDesTaches = listeTaches;
}
@Override
public final void setListeDeSousProjets(final List<IProjet> listeProjets) {
this.listeDesSousProjets = listeProjets;
}
@Override
public final void setListeDeParticipants(final List<IParticipant> listeParticipants) {
this.listeDesParticipants = listeParticipants;
}
@Override
public final void setCreateur(final IParticipant c) {
this.createur = c;
}
@Override
public final void setListeContacts(final List<IContact> contacts){
this.contacts = contacts;
}
@Override
public void setDansArchive(boolean dansArchive) {
this.dansArchive = dansArchive;
}
}
......@@ -38,7 +38,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.7</version>
<version>4.12</version>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
......
......@@ -39,32 +39,32 @@
<dependency>
<groupId>antlr</groupId>
<artifactId>antlr</artifactId>
<version>2.7.7</version>
<version>20030911</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.7</version>
<version>4.12</version>
</dependency>
<dependency>
<groupId>jboss</groupId>
<artifactId>jboss-j2ee</artifactId>
<version>4.0.2</version>
<version>4.2.2.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.4.0.GA</version>
<version>3.5.6-Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>ejb3-persistence</artifactId>
<version>1.0.2.GA</version>
<version>3.3.2.Beta1</version>
</dependency>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>1.0</version>
<version>1.0.2</version>
</dependency>
</dependencies>
</project>
......@@ -76,6 +76,46 @@
<artifactId>maven-site-plugin</artifactId>
<version>3.7</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.0.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.5</version>
</plugin>
</plugins>
</pluginManagement>
......@@ -104,6 +144,31 @@
<artifactId>maven-site-plugin</artifactId>
<version>3.7</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M1</version>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.0</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
......@@ -131,9 +196,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.20.1</version>
<configuration>
<inherited>true</inherited>
</configuration>
</plugin>
<plugin>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter