From b7174c444032ce5431fdf9d96cf7bd82060536cd Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Sun, 9 Oct 2016 21:20:45 +0200 Subject: [PATCH] Adding JPA provider as user manager --- .../archiva-web/archiva-webapp/pom.xml | 35 +++++++++++++++++++ .../resources/META-INF/spring-context.xml | 15 ++++++-- .../src/main/webapp/WEB-INF/web.xml | 6 ++++ .../test/tomcat/tomcat-context-archiva.xml | 12 ++++++- pom.xml | 2 ++ 5 files changed, 67 insertions(+), 3 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp/pom.xml b/archiva-modules/archiva-web/archiva-webapp/pom.xml index f5658d6ba..734a59768 100644 --- a/archiva-modules/archiva-web/archiva-webapp/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp/pom.xml @@ -831,6 +831,18 @@ test + + org.springframework + spring-orm + ${spring.version} + + + org.springframework + spring-context + ${spring.version} + + + @@ -969,6 +981,8 @@ ${basedir}/src/test/tomcat + + @@ -981,6 +995,27 @@ mail ${javaxMailVersion} + + org.apache.openjpa + openjpa + ${openjpaVersion} + + + org.apache.geronimo.specs + geronimo-jpa_2.0_spec + 1.1 + + + org.apache.geronimo.specs + geronimo-jta_1.1_spec + 1.1.1 + + + net.sourceforge.serp + serp + 1.15.1 + + diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/spring-context.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/spring-context.xml index 06cf58a64..d295d09c5 100755 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/spring-context.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/spring-context.xml @@ -21,13 +21,14 @@ @@ -48,5 +49,15 @@ + + + + + + + + + + \ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml index e1ac74b03..83714e280 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml @@ -143,6 +143,12 @@ Container Shareable + + jdbc/redbackjpa + javax.sql.DataSource + Container + Shareable + mail/Session javax.mail.Session diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/tomcat-context-archiva.xml b/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/tomcat-context-archiva.xml index 4f7ce1d69..3f511020d 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/tomcat-context-archiva.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/tomcat-context-archiva.xml @@ -24,8 +24,18 @@ driverClassName="org.apache.derby.jdbc.EmbeddedDriver" url="jdbc:derby:${appserver.base}/database/users;create=true" /> + - + + + + + diff --git a/pom.xml b/pom.xml index 4e8a90f16..107668b6e 100644 --- a/pom.xml +++ b/pom.xml @@ -91,6 +91,7 @@ 1.4 8.1.14.v20131031 16.0.1 + 2.4.1 jdbc:derby:memory:users-test;create=true @@ -1537,6 +1538,7 @@ jsoup 1.7.2 +