diff --git a/pom.xml b/pom.xml
index 551b98b0b93a5518f9cb41b2c9f2937abc6f46d3..68d2132e3bcc3c7754dc0d14e8bb3babd32388c2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
dhu
personnes.ui
- 1.0.2-SNAPSHOT
+ 2.0.0-SNAPSHOT
war
personnes.ui
@@ -113,8 +113,23 @@
2.3
false
+
+
+ ${project.version} (${maven.build.timestamp})
+
+
+
+ org.apache.maven.plugins
+ maven-release-plugin
+ 2.5.3
+
+ ${project.artifactId}-v@{project.version}
+ true
+
+
+
org.apache.maven.plugins
maven-dependency-plugin
diff --git a/src/main/java/core/web/ImplementationVersionListener.java b/src/main/java/core/web/ImplementationVersionListener.java
new file mode 100644
index 0000000000000000000000000000000000000000..d1efcd2fb7e7c0e75d591f9caba16fa726e7aff4
--- /dev/null
+++ b/src/main/java/core/web/ImplementationVersionListener.java
@@ -0,0 +1,52 @@
+package core.web;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.jar.Attributes;
+import java.util.jar.Manifest;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+import javax.servlet.ServletContext;
+import javax.servlet.ServletContextEvent;
+import javax.servlet.ServletContextListener;
+
+/**
+ *
+ * @author dominique huguenin (dominique.huguenin AT rpn.ch)
+ */
+public class ImplementationVersionListener implements ServletContextListener {
+
+ public static final String MANIFEST_IMPLEMENTATION_VERSION = "Implementation-Version";
+
+ public static final String ATTRIBUT_IMPLEMENTATION_VERSION = "implementationVersion";
+
+ private static final Logger LOGGER
+ = Logger.getLogger(ImplementationVersionListener.class.getCanonicalName());
+
+ @Override
+ public void contextInitialized(final ServletContextEvent sce) {
+ ServletContext application = sce.getServletContext();
+ InputStream inputStream = application.getResourceAsStream("/META-INF/MANIFEST.MF");
+ if (inputStream != null) {
+ try {
+ Manifest manifest = new Manifest(inputStream);
+ Attributes attr = manifest.getMainAttributes();
+ String value = attr.getValue(MANIFEST_IMPLEMENTATION_VERSION);
+ if (value == null) {
+ value = "INCONNU";
+ }
+ application.setAttribute(ATTRIBUT_IMPLEMENTATION_VERSION, value);
+ } catch (IOException ex) {
+ LOGGER.log(Level.SEVERE, null, ex);
+ application.setAttribute(ATTRIBUT_IMPLEMENTATION_VERSION, "INCONNU");
+ }
+ } else {
+ application.setAttribute(ATTRIBUT_IMPLEMENTATION_VERSION, "DEV");
+ }
+ }
+
+ @Override
+ public void contextDestroyed(final ServletContextEvent sce) {
+ }
+
+}
diff --git a/src/main/webapp/WEB-INF/accueil.jsp b/src/main/webapp/WEB-INF/accueil.jsp
index 9916f27d04e8c5b0671ec19ad730203f2bb9ae05..e1b031bb328b13963d8660fab0916f11f8e8c87d 100644
--- a/src/main/webapp/WEB-INF/accueil.jsp
+++ b/src/main/webapp/WEB-INF/accueil.jsp
@@ -10,5 +10,6 @@
Personnes - Gestion des personnes
+ <%@include file="./jspf/footer.jspf" %>