Git Product home page Git Product logo

esup-commons-core's Introduction

===== Create a release =====

You must have a local master branch. If needed : git checkout -b master origin/master

export VERSION=0.3.1
git checkout -b release-$VERSION develop
mvn release:prepare
mvn release:perform
git checkout develop
git merge --no-ff release-$VERSION
git branch -d release-$VERSION
git push origin develop
#we need to suppress remote branch created by mvn release:prepare
git push origin :release-$VERSION 
git checkout master
git merge --no-ff V2-$VERSION
git push origin master

esup-commons-core's People

Contributors

gneuvill avatar lukas-slansky avatar ooflorent avatar prigaux avatar raymondbourges avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esup-commons-core's Issues

[RFC] Conventions de codage

D'après le changelog, il est prévu de :

Revoir le checkStyle d'esup-commons pour eclipse Indigo

Je me propose donc pour effectuer cette tâche. L'objectif est de produire un fichier checkStyle et de reformater l'intégralité du code d'ECV2 conformément à celui-ci. Je profite de ce moment car aucune PR n'est attente (donc pas de merge).

[RFC] Revoir les dépendances des modules

Lors de mes développements applicatifs (servlet et portlet), j'utilise Spring MVC, JSTL, JPA et CAS. ECV2 apporte déjà toutes ces dépendances avec des versions plus ou moins anciennes, mais aussi toutes une pléthore d'autres dépendances inutiles (pour mes projets). J'ai donc pris l'habitude de ne plus utiliser les modules ECV2 mais directement les technologies sur lesquelles il s’appuie. Quand je ne peux me passer d'un module, disons esup-commons2-auth, je suis donc obligé d'exclure manuellement une dizaine de dépendances et d'utiliser dependencyManagement afin de contrôler les versions des artifacts que je désire garder.

Cela n'est pas sain, je ne devrais pas avoir à me soucier de ces choses là.

Je propose donc quelque chose de simple. Beaucoup de développeurs se servent d'un archetype. Pourquoi ne pas inclure les dépendances réellement nécessaires directement dans le POM ? Je pense notamment à Spring et JSF pour les archétypes correspondant. Ainsi, les modules d'ECV2 ne sont plus là pour tirer les dépendances mais pour apporter du code.

Mais pourquoi revoir le mode de fonctionnement ? La réponse est très simple. Prenons le cas de Spring 3.0. L'artifact spring-webmvc-portlet possède une dépendances sur Portlet 2.0 ! La solution est de l'exclure et d'ajouter le bridge JSR-168 (développé pour Spring 2.5). Sauf que voila, parfois, ça ne se passe pas comme prévu et des ClassNotFoundException font leur apparition. La solution ? Utiliser Spring 2.5, sauf qu'ECV2 tire Spring 3.0 ! Une gymnastique est donc nécessaire afin de faire cohabiter tout le monde...

J'ouvre donc une discussion concernant les points suivants :

  • Comment régler proprement ces soucis de dépendances ?
  • Est-il envisageable de retravailler les dépendances d'ECV2 et des archétypes ?
  • Est-il envisageable de revoir le fonctionnement de certains modules ?

ShibbolethApacheModuleAuthenticationService.setAttributes(String)

Je suis en train d'essayer de configurer Shibboleth comme indiqué ici :
http://bit.ly/1gpSOZ0

J'ai donc remplacé :

<bean id="authenticatorService" lazy-init="true"
    class="eu.ueb.acem.services.auth.AuthenticatorServiceImpl">
    <property name="authenticationService" ref="${auth.bean}" />
</bean>

par :

<bean id="authenticatorService" lazy-init="true"
    class="eu.ueb.acem.services.auth.AuthenticatorServiceImpl">
    <property name="authenticationService" ref="authenticationService" />
</bean>

Puis j'ai ajouté la configuration du bean pour Shibboleth telle qu'indiquée dans la documentation :

<bean id="authenticationService" lazy-init="true" class="org.esupportail.commons.services.authentication.ShibbolethApacheModuleAuthenticationService">
    <property name="idHeader" value="" />
    <property name="attributeHeaders">
        <list>
            <value></value>
        </list>
    </property>
</bean>

Avec cette configuration, le serveur Tomcat plante dès le démarrage avec :

Cannot convert value of type [java.util.ArrayList] to required type [java.lang.String] for property 'attributeHeaders': no matching editors or conversion strategy found

Si l'on passe les attributs dans une chaîne séparés par des virgules, l'erreur disparaît:

<bean id="authenticationService" lazy-init="true" class="org.esupportail.commons.services.authentication.ShibbolethApacheModuleAuthenticationService">
    <property name="idHeader" value="uid" />
    <property name="attributeHeaders" value="o,mail" />
</bean>

Il faudrait corriger la documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.