From: Olivier Lamy Date: Fri, 5 Oct 2012 19:48:34 +0000 (+0000) Subject: fix junit X-Git-Tag: archiva-1.4-M4~821 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=db9442d5ead10d6c8b5de6d06fb20ec1f783ecb6;p=archiva.git fix junit git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1394757 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-docs/pom.xml b/archiva-docs/pom.xml index 5b44cf374..b4d62d479 100644 --- a/archiva-docs/pom.xml +++ b/archiva-docs/pom.xml @@ -118,7 +118,7 @@ archiva-web-common ${project.build.directory}/site/ - META-INF/**,org/**,WEB-INF/** + META-INF/**,org/** diff --git a/archiva-modules/archiva-web/archiva-web-common/pom.xml b/archiva-modules/archiva-web/archiva-web-common/pom.xml index 0f8c24a60..fc1ede841 100644 --- a/archiva-modules/archiva-web/archiva-web-common/pom.xml +++ b/archiva-modules/archiva-web/archiva-web-common/pom.xml @@ -92,10 +92,94 @@ org.apache.archiva archiva-rest-api + + + org.eclipse.jetty + jetty-server + + + org.eclipse.jetty + jetty-continuation + + + org.eclipse.jetty + jetty-http + + + org.eclipse.jetty + jetty-io + + + org.eclipse.jetty + jetty-util + + + org.eclipse.jetty + jetty-security + + + commons-logging + commons-logging + + + org.apache.geronimo.specs + geronimo-servlet_3.0_spec + + + org.apache.geronimo.specs + geronimo-javamail_1.4_spec + + + org.apache.geronimo.specs + geronimo-servlet_2.5_spec + + org.apache.archiva archiva-rest-services + + + org.eclipse.jetty + jetty-server + + + org.eclipse.jetty + jetty-continuation + + + org.eclipse.jetty + jetty-http + + + org.eclipse.jetty + jetty-io + + + org.eclipse.jetty + jetty-util + + + org.eclipse.jetty + jetty-security + + + commons-logging + commons-logging + + + org.apache.geronimo.specs + geronimo-servlet_3.0_spec + + + org.apache.geronimo.specs + geronimo-javamail_1.4_spec + + + org.apache.geronimo.specs + geronimo-servlet_2.5_spec + + org.apache.archiva @@ -222,6 +306,12 @@ ${jettyVersion} test + + org.eclipse.jetty + jetty-io + ${jettyVersion} + test + org.eclipse.jetty jetty-security @@ -282,6 +372,32 @@ + + org.apache.tomcat.embed + tomcat-embed-core + ${tomcat7Version} + test + + + org.apache.tomcat + tomcat-juli + ${tomcat7Version} + test + + + org.apache.tomcat.embed + tomcat-embed-logging-juli + ${tomcat7Version} + test + + + org.apache.tomcat + tomcat-servlet-api + ${tomcat7Version} + provided + + + @@ -405,6 +521,8 @@ ${redbackTestJdbcUrl} ${redbackTestJdbcDriver} ${basedir} + ${project.version} + true diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/RuntimeInfoServiceTest.java b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/RuntimeInfoServiceTest.java index 51dd976ab..f700df829 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/RuntimeInfoServiceTest.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/RuntimeInfoServiceTest.java @@ -60,7 +60,7 @@ public class RuntimeInfoServiceTest @Override protected String getSpringConfigLocation() { - return "classpath*:META-INF/spring-context.xml"; + return "classpath*:META-INF/spring-context.xml,classpath:/spring-context-with-jcr.xml"; } protected String getRestServicesPath() diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/resources/spring-context-with-jcr.xml b/archiva-modules/archiva-web/archiva-web-common/src/test/resources/spring-context-with-jcr.xml new file mode 100644 index 000000000..fbc19b6f1 --- /dev/null +++ b/archiva-modules/archiva-web/archiva-web-common/src/test/resources/spring-context-with-jcr.xml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + scheduler1 + org.quartz.simpl.SimpleThreadPool + 2 + 4 + org.quartz.simpl.RAMJobStore + + + + + diff --git a/archiva-modules/archiva-web/archiva-webapp-js/pom.xml b/archiva-modules/archiva-web/archiva-webapp-js/pom.xml index 7979d4e04..86f76013e 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp-js/pom.xml @@ -41,7 +41,6 @@ false - @@ -777,31 +776,6 @@ test - - org.apache.tomcat.embed - tomcat-embed-core - ${tomcat7Version} - test - - - org.apache.tomcat - tomcat-juli - ${tomcat7Version} - test - - - org.apache.tomcat.embed - tomcat-embed-logging-juli - ${tomcat7Version} - test - - - org.apache.tomcat - tomcat-servlet-api - ${tomcat7Version} - provided - - javax.mail mail @@ -1041,8 +1015,6 @@ ${test.useTomcat} ${redbackTestJdbcUrl} ${redbackTestJdbcDriver} - ${project.version} - true