]> source.dussan.org Git - archiva.git/commitdiff
start work using jetty maven plugin
authorolivier lamy <olamy@apache.org>
Fri, 16 Jun 2017 05:38:50 +0000 (15:38 +1000)
committerolivier lamy <olamy@apache.org>
Fri, 16 Jun 2017 06:30:26 +0000 (16:30 +1000)
Signed-off-by: olivier lamy <olamy@apache.org>
archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/DefaultArchivaConfiguration.java
archiva-modules/archiva-web/archiva-webapp/pom.xml
archiva-modules/plugins/metadata-store-cassandra/pom.xml
pom.xml

index 44f25212bb9d0e110d5d9d9412827fa171bdab0f..45477877f87d704228117f22da15f576ec8f432d 100644 (file)
@@ -698,7 +698,6 @@ public class DefaultArchivaConfiguration
                     return false;
                 }
             }
-
             FileUtils.writeStringToFile( file, contents, "UTF-8" );
             return true;
         }
index ce7b826f575c83797852bd38df10210b762da79c..1b203dd7f7beeed650af955e675a92265b4ce216 100644 (file)
 
   <properties>
     <tomcatContextXml>${basedir}/src/test/tomcat/tomcat-context-archiva.xml</tomcatContextXml>
-    <tomcatRunPort>9091</tomcatRunPort>
-    <tomcatRunPath>/archiva</tomcatRunPath>
     <archiva.devMode>true</archiva.devMode>
     <archiva.javascriptLog>true</archiva.javascriptLog>
     <archiva.logMissingI18n>true</archiva.logMissingI18n>
     <archivaAppServerBase>${project.build.directory}/appserver-base</archivaAppServerBase>
+    <jettyDumpOnStart>false</jettyDumpOnStart>
     <archiva.baseRestUrl />
     <rest.admin.pwd />
     <test.useTomcat>false</test.useTomcat>
       <plugin>
         <groupId>org.eclipse.jetty</groupId>
         <artifactId>jetty-maven-plugin</artifactId>
-        <version>9.4.5.v20170502</version>
         <configuration>
+          <dumpOnStart>${jettyDumpOnStart}</dumpOnStart>
           <scanIntervalSeconds>10</scanIntervalSeconds>
           <webApp>
             <contextPath>/archiva</contextPath>
             </systemProperty>
           </systemProperties>
 
-        </configuration>
-          <dependencies>
-            <dependency>
-              <groupId>org.apache.derby</groupId>
-              <artifactId>derby</artifactId>
-              <version>${derbyVersion}</version>
-            </dependency>
-            <dependency>
-              <groupId>javax.mail</groupId>
-              <artifactId>mail</artifactId>
-              <version>${javaxMailVersion}</version>
-            </dependency>
-            <dependency>
-              <groupId>org.apache.openjpa</groupId>
-              <artifactId>openjpa</artifactId>
-              <version>${openjpaVersion}</version>
-            </dependency>
-            <dependency>
-              <groupId>org.apache.geronimo.specs</groupId>
-              <artifactId>geronimo-jpa_2.0_spec</artifactId>
-              <version>1.1</version>
-            </dependency>
-            <dependency>
-              <groupId>org.apache.geronimo.specs</groupId>
-              <artifactId>geronimo-jta_1.1_spec</artifactId>
-              <version>1.1.1</version>
-            </dependency>
-            <dependency>
-              <groupId>net.sourceforge.serp</groupId>
-              <artifactId>serp</artifactId>
-              <version>1.15.1</version>
-            </dependency>
-
-            <dependency>
-              <groupId>org.eclipse.jetty</groupId>
-              <artifactId>jetty-io</artifactId>
-              <version>9.4.5.v20170502</version>
-            </dependency>
-            <dependency>
-              <groupId>org.eclipse.jetty</groupId>
-              <artifactId>jetty-util</artifactId>
-              <version>9.4.5.v20170502</version>
-            </dependency>
-            <dependency>
-              <groupId>org.eclipse.jetty</groupId>
-              <artifactId>jetty-client</artifactId>
-              <version>9.4.5.v20170502</version>
-            </dependency>
-            <dependency>
-              <groupId>org.eclipse.jetty.websocket</groupId>
-              <artifactId>websocket-client</artifactId>
-              <version>9.4.5.v20170502</version>
-            </dependency>
-
-          </dependencies>
-
-      </plugin>
-
-
-      <plugin>
-        <groupId>org.apache.tomcat.maven</groupId>
-        <artifactId>tomcat7-maven-plugin</artifactId>
-        <configuration>
-          <port>${tomcatRunPort}</port>
-          <path>${tomcatRunPath}</path>
-          <contextFile>${tomcatContextXml}</contextFile>
-          <useTestClasspath>false</useTestClasspath>
-
-          <systemProperties>
-            <plexus.home>${archivaAppServerBase}</plexus.home>
-            <appserver.base>${archivaAppServerBase}</appserver.base>
-            <appserver.home>${archivaAppServerBase}</appserver.home>
-            <derby.system.home>${archivaAppServerBase}/logs</derby.system.home>
-            <!-- remove admin auto creation that must be tested too -->
-            <!--redback.admin.creation.file>${basedir}/target/auto-admin-creation.properties</redback.admin.creation.file-->
-            <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
-            <archiva.user.configFileName>${archivaAppServerBase}/conf/archiva.xml</archiva.user.configFileName>
-            <archiva.devMode>${archiva.devMode}</archiva.devMode>
-            <archiva.javascriptLog>${archiva.javascriptLog}</archiva.javascriptLog>
-            <archiva.logMissingI18n>${archiva.logMissingI18n}</archiva.logMissingI18n>
-            <cassandra.host>${cassandra.host}</cassandra.host>
-            <cassandra.port>${cassandra.port}</cassandra.port>
-            <archiva.repositorySessionFactory.id>${archiva.repositorySessionFactory.id}</archiva.repositorySessionFactory.id>
-            <AsyncLoggerConfig.WaitStrategy>Block</AsyncLoggerConfig.WaitStrategy>
-            <AsyncLogger.WaitStrategy>Block</AsyncLogger.WaitStrategy>
-            <openjpa.Log>${openjpa.Log}</openjpa.Log>
-          </systemProperties>
-          <additionalClasspathDirs>
-            <additionalClasspathDir>${basedir}/src/test/tomcat</additionalClasspathDir>
-          </additionalClasspathDirs>
-
-
         </configuration>
         <dependencies>
           <dependency>
             <version>1.15.1</version>
           </dependency>
 
+          <dependency>
+            <groupId>org.eclipse.jetty</groupId>
+            <artifactId>jetty-io</artifactId>
+            <version>${jettyVersion}</version>
+          </dependency>
+          <dependency>
+            <groupId>org.eclipse.jetty</groupId>
+            <artifactId>jetty-util</artifactId>
+            <version>${jettyVersion}</version>
+          </dependency>
+          <dependency>
+            <groupId>org.eclipse.jetty</groupId>
+            <artifactId>jetty-client</artifactId>
+            <version>${jettyVersion}</version>
+          </dependency>
+          <dependency>
+            <groupId>org.eclipse.jetty.websocket</groupId>
+            <artifactId>websocket-client</artifactId>
+            <version>${jettyVersion}</version>
+          </dependency>
         </dependencies>
       </plugin>
 
index 3e32549d13158235a41141a1709e8f2b3ef5dbf4..5253ab0eebf28e96ae83917cbfffc11f301d04d8 100644 (file)
         <executions>
           <execution>
             <id>start-cassandra</id>
-            <phase>test-compile</phase>
+            <phase>process-test-classes</phase>
             <goals>
               <goal>start</goal>
             </goals>
diff --git a/pom.xml b/pom.xml
index c5ef325f396797ad6af64ebb8433565ec3171b4a..ae601742126f506b06b1cb0d5c9aa761bb3796ad 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -83,7 +83,8 @@
     <httpclient.version>4.5.2</httpclient.version>
     <httpclient.core.version>4.4.4</httpclient.core.version>
     <javaxMailVersion>1.4</javaxMailVersion>
-    <jettyVersion>9.4.5.v20170502</jettyVersion>
+    <!--jettyVersion>9.4.5.v20170502</jettyVersion-->
+    <jettyVersion>9.4.7-SNAPSHOT</jettyVersion>
     <guava.version>22.0</guava.version>
     <openjpaVersion>2.4.1</openjpaVersion>
 
           <artifactId>tomcat7-maven-plugin</artifactId>
           <version>${asfTomcatMavenPluginVersion}</version>
         </plugin>
+        <plugin>
+          <groupId>org.eclipse.jetty</groupId>
+          <artifactId>jetty-maven-plugin</artifactId>
+          <version>${jettyVersion}</version>
+        </plugin>
         <plugin>
           <groupId>org.apache.rat</groupId>
           <artifactId>apache-rat-plugin</artifactId>