From c8fd32bbb7e1ad8d390d2bb478b9317480903588 Mon Sep 17 00:00:00 2001 From: olivier lamy Date: Fri, 16 Jun 2017 15:38:50 +1000 Subject: [PATCH] start work using jetty maven plugin Signed-off-by: olivier lamy --- .../DefaultArchivaConfiguration.java | 1 - .../archiva-web/archiva-webapp/pom.xml | 117 ++++-------------- .../plugins/metadata-store-cassandra/pom.xml | 2 +- pom.xml | 8 +- 4 files changed, 30 insertions(+), 98 deletions(-) diff --git a/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/DefaultArchivaConfiguration.java b/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/DefaultArchivaConfiguration.java index 44f25212b..45477877f 100644 --- a/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/DefaultArchivaConfiguration.java +++ b/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/DefaultArchivaConfiguration.java @@ -698,7 +698,6 @@ public class DefaultArchivaConfiguration return false; } } - FileUtils.writeStringToFile( file, contents, "UTF-8" ); return true; } diff --git a/archiva-modules/archiva-web/archiva-webapp/pom.xml b/archiva-modules/archiva-web/archiva-webapp/pom.xml index ce7b826f5..1b203dd7f 100644 --- a/archiva-modules/archiva-web/archiva-webapp/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp/pom.xml @@ -31,12 +31,11 @@ ${basedir}/src/test/tomcat/tomcat-context-archiva.xml - 9091 - /archiva true true true ${project.build.directory}/appserver-base + false false @@ -925,8 +924,8 @@ org.eclipse.jetty jetty-maven-plugin - 9.4.5.v20170502 + ${jettyDumpOnStart} 10 /archiva @@ -996,98 +995,6 @@ - - - - org.apache.derby - derby - ${derbyVersion} - - - javax.mail - 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 - - - - org.eclipse.jetty - jetty-io - 9.4.5.v20170502 - - - org.eclipse.jetty - jetty-util - 9.4.5.v20170502 - - - org.eclipse.jetty - jetty-client - 9.4.5.v20170502 - - - org.eclipse.jetty.websocket - websocket-client - 9.4.5.v20170502 - - - - - - - - - org.apache.tomcat.maven - tomcat7-maven-plugin - - ${tomcatRunPort} - ${tomcatRunPath} - ${tomcatContextXml} - false - - - ${archivaAppServerBase} - ${archivaAppServerBase} - ${archivaAppServerBase} - ${archivaAppServerBase}/logs - - - ${project.build.directory} - ${archivaAppServerBase}/conf/archiva.xml - ${archiva.devMode} - ${archiva.javascriptLog} - ${archiva.logMissingI18n} - ${cassandra.host} - ${cassandra.port} - ${archiva.repositorySessionFactory.id} - Block - Block - ${openjpa.Log} - - - ${basedir}/src/test/tomcat - - - @@ -1121,6 +1028,26 @@ 1.15.1 + + org.eclipse.jetty + jetty-io + ${jettyVersion} + + + org.eclipse.jetty + jetty-util + ${jettyVersion} + + + org.eclipse.jetty + jetty-client + ${jettyVersion} + + + org.eclipse.jetty.websocket + websocket-client + ${jettyVersion} + diff --git a/archiva-modules/plugins/metadata-store-cassandra/pom.xml b/archiva-modules/plugins/metadata-store-cassandra/pom.xml index 3e32549d1..5253ab0ee 100644 --- a/archiva-modules/plugins/metadata-store-cassandra/pom.xml +++ b/archiva-modules/plugins/metadata-store-cassandra/pom.xml @@ -239,7 +239,7 @@ start-cassandra - test-compile + process-test-classes start diff --git a/pom.xml b/pom.xml index c5ef325f3..ae6017421 100644 --- a/pom.xml +++ b/pom.xml @@ -83,7 +83,8 @@ 4.5.2 4.4.4 1.4 - 9.4.5.v20170502 + + 9.4.7-SNAPSHOT 22.0 2.4.1 @@ -1750,6 +1751,11 @@ tomcat7-maven-plugin ${asfTomcatMavenPluginVersion} + + org.eclipse.jetty + jetty-maven-plugin + ${jettyVersion} + org.apache.rat apache-rat-plugin -- 2.39.5