diff --git a/cadastrapp/pom.xml b/cadastrapp/pom.xml
index 93698b91..142bcf4a 100644
--- a/cadastrapp/pom.xml
+++ b/cadastrapp/pom.xml
@@ -12,18 +12,18 @@
Web application for cadastre management over Georchestra
UTF-8
- 1.8.6
- 1.7.25
+ 2.12.3
+ 1.7.30
1.2.3
1.7.25
- 9.4-1205-jdbc4
- 3.0.4
- 4.3.24.RELEASE
- 4.1.7.Final
- 4.0.1.Final
- 9.2
- 2.0.17
- 2.3.0
+ 42.2.20.jre7
+ 5.3.8
+ 6.0.0.Alpha7
+ 5.1.2.Final
+ 24.0
+ 3.0.0-RC1
+ 2.3.2
+ 2.10.5
@@ -52,28 +52,18 @@
- org.apache.cxf
- cxf-rt-frontend-jaxrs
- ${cxf.version}
-
-
- org.apache.cxf
- cxf-rt-rs-client
- ${cxf.version}
-
-
- org.codehaus.jackson
- jackson-core-asl
+ com.fasterxml.jackson.core
+ jackson-core
${jackson.version}
- org.codehaus.jackson
- jackson-mapper-asl
+ com.fasterxml.jackson.core
+ jackson-databind
${jackson.version}
- org.codehaus.jackson
- jackson-jaxrs
+ com.fasterxml.jackson.jaxrs
+ jackson-jaxrs-json-provider
${jackson.version}
@@ -92,6 +82,11 @@
spring-web
${spring.version}
+
+ org.springframework
+ spring-webmvc
+ ${spring.version}
+
org.springframework
@@ -116,7 +111,7 @@
- org.hibernate
+ org.hibernate.orm
hibernate-core
${hibernate-version}
compile
@@ -144,7 +139,7 @@
- org.hibernate
+ org.hibernate.orm
hibernate-entitymanager
${hibernate-version}
compile
@@ -180,7 +175,7 @@
- org.hibernate
+ org.hibernate.orm
hibernate-ehcache
${hibernate-version}
compile
@@ -228,13 +223,13 @@
org.apache.commons
commons-lang3
- 3.6
+ 3.11
org.apache.xmlgraphics
fop
- 2.3
+ 2.6
net.sf.supercsv
@@ -281,7 +276,7 @@
junit
junit
- 4.12
+ 4.13.1
test
@@ -300,13 +295,29 @@
provided
javax.servlet
javax.servlet-api
- 3.0.1
+ 3.1.0
org.apache.pdfbox
pdfbox
${pdfbox.version}
+
+
+ io.springfox
+ springfox-swagger2
+ ${springfox.version}
+
+
+ io.springfox
+ springfox-swagger-ui
+ ${springfox.version}
+
+
+ io.springfox
+ springfox-spring-webmvc
+ ${springfox.version}
+
@@ -339,7 +350,7 @@
org.eclipse.jetty
jetty-maven-plugin
- 9.2.11.v20150529
+ 9.4.41.v20210516
/cadastrapp/
@@ -360,56 +371,23 @@
org.apache.maven.plugins
maven-javadoc-plugin
2.10.3
-
-
-
- org.apache.cxf
- cxf-java2wadl-plugin
- 3.0.0
-
-
-
org.apache.maven.plugins
maven-compiler-plugin
-
- 1.7
+
+ 1.8
- org.apache.maven.plugins
- maven-war-plugin
- 3.2.3
-
-
-
- target/site
-
-
- target/generated
- apidocs
-
-
-
-
+ maven-dependency-plugin
+ 3.1.2
+
-
- maven-javadoc-plugin
-
-
- build-javadocs
- generate-sources
-
- javadoc
-
-
-
-
-
+
org.codehaus.mojo
exec-maven-plugin
1.6.0
@@ -452,7 +430,7 @@
maven-assembly-plugin
- 3.2.0
+ 3.3.0
addon-assembly.xml
@@ -468,52 +446,10 @@
-
- org.apache.cxf
- cxf-java2wadl-plugin
- ${cxf.version}
-
-
-
- parsejavadoc
- generate-sources
-
- parsejavadoc
-
-
-
- process-classes
- process-classes
-
- java2wadl
-
-
-
- org.georchestra.cadastrapp.service.BatimentController
- org.georchestra.cadastrapp.service.CommuneController
- org.georchestra.cadastrapp.service.ParcelleController
- org.georchestra.cadastrapp.service.ProprietaireController
- org.georchestra.cadastrapp.service.CoProprietaireController
- org.georchestra.cadastrapp.service.SectionController
- org.georchestra.cadastrapp.service.InfoBulleController
- org.georchestra.cadastrapp.service.UniteCadastraleController
- org.georchestra.cadastrapp.service.VoieController
- org.georchestra.cadastrapp.service.pdf.BordereauParcellaireController
- org.georchestra.cadastrapp.service.pdf.ReleveProprieteController
- org.georchestra.cadastrapp.service.pdf.DemandeController
- org.georchestra.cadastrapp.service.DatadirController
-
- org.apache.cxf.maven_plugin.javatowadl.ResourceMapJavaDocProvider
- true
-
-
-
-
pl.project13.maven
git-commit-id-plugin
- 3.0.1
+ 4.0.3
@@ -656,57 +592,6 @@
-
- rpmPackage
-
-
-
- org.apache.maven.plugins
- maven-war-plugin
-
-
- org.codehaus.mojo
- rpm-maven-plugin
- 2.1.3
-
-
- generate-rpm
-
- rpm
-
-
-
-
- georchestra-${project.artifactId}
- UTF-8
- Applications/Internet
- ${rpm.gpg.key}
-
-
- /usr/share/lib/georchestra-${project.artifactId}
-
-
-
-
-
- /
-
-
-
-
-
-
-
-
-
-
docker
@@ -719,7 +604,7 @@
com.spotify
docker-maven-plugin
- 0.3.8
+ 1.2.2
${dockerImageName}
${project.basedir}/src/docker
@@ -739,7 +624,7 @@
com.google.guava
guava
- 19.0
+ 30.1.1-jre
diff --git a/cadastrapp/src/main/java/org/georchestra/cadastrapp/configuration/CadastrappControllerConfig.java b/cadastrapp/src/main/java/org/georchestra/cadastrapp/configuration/CadastrappControllerConfig.java
new file mode 100644
index 00000000..a21beb8f
--- /dev/null
+++ b/cadastrapp/src/main/java/org/georchestra/cadastrapp/configuration/CadastrappControllerConfig.java
@@ -0,0 +1,30 @@
+package org.georchestra.cadastrapp.configuration;
+
+import javax.servlet.ServletContext;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRegistration;
+
+import org.springframework.web.WebApplicationInitializer;
+import org.springframework.web.context.ContextLoaderListener;
+import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
+import org.springframework.web.context.support.GenericWebApplicationContext;
+import org.springframework.web.servlet.DispatcherServlet;
+
+public class CadastrappControllerConfig implements WebApplicationInitializer {
+
+ @Override
+ public void onStartup(ServletContext sc) throws ServletException {
+ AnnotationConfigWebApplicationContext root = new AnnotationConfigWebApplicationContext();
+
+ root.refresh();
+ root.setServletContext(sc);
+
+ sc.addListener(new ContextLoaderListener(root));
+
+ DispatcherServlet dv = new DispatcherServlet(new GenericWebApplicationContext());
+
+ ServletRegistration.Dynamic appServlet = sc.addServlet("cadastrapp", dv);
+ appServlet.setLoadOnStartup(1);
+ appServlet.addMapping("/services/*");
+ }
+}
diff --git a/cadastrapp/src/main/java/org/georchestra/cadastrapp/configuration/CadastrappPlaceHolder.java b/cadastrapp/src/main/java/org/georchestra/cadastrapp/configuration/CadastrappPlaceHolder.java
index 7389e625..b67a78ee 100644
--- a/cadastrapp/src/main/java/org/georchestra/cadastrapp/configuration/CadastrappPlaceHolder.java
+++ b/cadastrapp/src/main/java/org/georchestra/cadastrapp/configuration/CadastrappPlaceHolder.java
@@ -10,7 +10,13 @@
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
-
+/**
+ *
+ * CadastrappPlaceHolder
+ *
+ * @author Pierre Jégo / pierre.jego@jdev.fr
+ *
+ */
public class CadastrappPlaceHolder extends PropertyPlaceholderConfigurer {
private static Map propertiesMap;
diff --git a/cadastrapp/src/main/java/org/georchestra/cadastrapp/helper/BatimentHelper.java b/cadastrapp/src/main/java/org/georchestra/cadastrapp/helper/BatimentHelper.java
index 36d6b0b1..8eeeba3b 100644
--- a/cadastrapp/src/main/java/org/georchestra/cadastrapp/helper/BatimentHelper.java
+++ b/cadastrapp/src/main/java/org/georchestra/cadastrapp/helper/BatimentHelper.java
@@ -3,8 +3,6 @@
import java.util.List;
import java.util.Map;
-import javax.ws.rs.core.HttpHeaders;
-
import org.georchestra.cadastrapp.service.CadController;
import org.slf4j.Logger;
@@ -26,7 +24,7 @@ public final class BatimentHelper extends CadController {
*
* @return buildings information on this plot
*/
- public List