]> source.dussan.org Git - archiva.git/commitdiff
get rid of included xercesImpl in the webapp WEB-INF/lib, java 8 has his own parser
authorOlivier Lamy <olamy@apache.org>
Wed, 19 Apr 2023 03:24:23 +0000 (13:24 +1000)
committerOlivier Lamy <olamy@apache.org>
Wed, 19 Apr 2023 04:23:36 +0000 (14:23 +1000)
Signed-off-by: Olivier Lamy <olamy@apache.org>
25 files changed:
archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml
archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/pom.xml
archiva-modules/archiva-base/archiva-converter/pom.xml
archiva-modules/archiva-base/archiva-indexer/pom.xml
archiva-modules/archiva-base/archiva-proxy/pom.xml
archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml
archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml
archiva-modules/archiva-scheduler/archiva-scheduler-repository-api/pom.xml
archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml
archiva-modules/archiva-web/archiva-rss/pom.xml
archiva-modules/archiva-web/archiva-security/pom.xml
archiva-modules/archiva-web/archiva-web-common/pom.xml
archiva-modules/archiva-web/archiva-webapp-test/pom.xml
archiva-modules/archiva-web/archiva-webapp/pom.xml
archiva-modules/archiva-web/archiva-webdav/pom.xml
archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/DavResourceTest.java
archiva-modules/plugins/maven2-repository/pom.xml
archiva-modules/plugins/metadata-store-cassandra/pom.xml
archiva-modules/plugins/metadata-store-file/pom.xml
archiva-modules/plugins/metadata-store-jcr/pom.xml
archiva-modules/plugins/problem-reports/pom.xml
archiva-modules/plugins/repository-statistics/pom.xml
archiva-modules/plugins/stage-repository-merge/pom.xml
pom.xml

index 2d913d48268302fd1d8e185ab3a3476a90bd9e8e..6d5a4e100025be4303fd35eb37f2998ac61035d4 100644 (file)
       <artifactId>wagon-http-lightweight</artifactId>
       <scope>provided</scope>
     </dependency>
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
     <dependency>
       <groupId>org.assertj</groupId>
       <artifactId>assertj-core</artifactId>
index 26d51b194b174bac17fe2737b1557dd9f094a54e..5fb4f7e72a5787ce7b97f9cfeb5cb3055de77a37 100644 (file)
         </exclusion>
       </exclusions>
     </dependency>
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
   </dependencies>
   <build>
     <plugins>
index 6835a6f2241ebfefde68b2681af241c5dcc68101..9e3c8c64601d0b41cf20a8b4ea1d440e7a81a439 100644 (file)
       <version>${project.version}</version>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
   </dependencies>
   <build>
     <plugins>
index 2e82af1a5d562edbee491fc702f373d8b0f94979..7a2a9145a943bd886a50b9f775a1360e101b0f13 100644 (file)
       <artifactId>wagon-http-lightweight</artifactId>
       <scope>provided</scope>
     </dependency>
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
   </dependencies>
   <build>
     <pluginManagement>
index 0bfe277d82a32292427a7ff3adeec234a3450790..850504f03bced2365648d6b1b44dfcca0238f28e 100644 (file)
       <artifactId>redback-common-test-resources</artifactId>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
     <dependency>
       <groupId>org.assertj</groupId>
       <artifactId>assertj-core</artifactId>
index 07c541cd25193d37f71651b59a2e8c8e2811bc8c..ed2aec81c14165cee8430b5d45435a83a0399102 100644 (file)
       <scope>test</scope>
     </dependency>
 
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
-
     <dependency>
       <groupId>org.apache.archiva</groupId>
       <artifactId>archiva-mock</artifactId>
index 9f96bcafe094587b33f769cfec1312c2c4ba06e9..22ddcd35d1416a044aae888ff99720543c28fb18 100644 (file)
       <scope>test</scope>
     </dependency>
 
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
-
   </dependencies>
 
   <build>
index eea58049019e605630cf04d4cb935da12af0a04a..006543233976a035140ec5730457cc5d4f92e287 100644 (file)
       <artifactId>slf4j-api</artifactId>
     </dependency>
 
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
-
   </dependencies>
   <build>
     <plugins>
index f370a519c1a9b43d3dd92115493bd3573237d978..11765cd81959bfb9d6f9e56e43488d6c9a1b7804 100644 (file)
       <artifactId>mockito-all</artifactId>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
   </dependencies>
   <build>
     <plugins>
index 6213b038f81654670914ebe64ca82982538e87d0..9dacb64f80b981b0cf1eeec32c0c5e163b0cedf7 100644 (file)
       <artifactId>tomcat-jsp-api</artifactId>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
     <dependency>
       <groupId>org.apache.archiva</groupId>
       <artifactId>archiva-metadata-consumer</artifactId>
index 18129276abd07040cbfd7180eac56f47a358291e..b9e47ce08bf3b000db859b703dca7fb9105f5ebc 100644 (file)
       <artifactId>spring-test</artifactId>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
   </dependencies>
   <build>
     <plugins>
index 87c0611f74794ecf4536a05175d770070d828e97..4594d564ae13a4e4fe5432b113a7d05b5a2260ad 100644 (file)
       <artifactId>metadata-store-file</artifactId>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
   </dependencies>
   <build>
     <plugins>
index e6126425a57c9fdca0a4dc21c9d2a8cf5994d5a3..41d3cc5a8794251dfad5d17c632be7fd90cc42a4 100644 (file)
       <artifactId>assertj-core</artifactId>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
-
   </dependencies>
 
   <build>
index fa3ff9e2687ca1acb2c2196ad26e403c3cdbe2a9..b6881d40262980d348ee2a568d82d7e975f45181 100644 (file)
       <version>${fluentlenium.version}</version>
       <scope>test</scope>
     </dependency>
-
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-    </dependency>
-
     <dependency>
       <groupId>org.fluentlenium</groupId>
       <artifactId>fluentlenium-core</artifactId>
index 303800c73038caba0e9d51462e739ae28113a127..114b843d14ac715654fd57664cf63cba059dd449 100644 (file)
       <groupId>org.codehaus.woodstox</groupId>
       <artifactId>woodstox-core-asl</artifactId>
     </dependency>
-    <!-- to help was8 to find dom parser impl -->
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-    </dependency>
     <dependency>
       <groupId>org.apache.ant</groupId>
       <artifactId>ant</artifactId>
index c8894a46041afa4d33faac7036f29f9d178b91c2..fb2386e8819e7948928a684769dcfefbaf8b3dc7 100644 (file)
@@ -39,6 +39,9 @@
     <redbackTestJdbcUrl>jdbc:hsqldb:mem:redback-test</redbackTestJdbcUrl>
     <redbackTestJdbcDriver>org.hsqldb.jdbcDriver</redbackTestJdbcDriver>
     <webdav.argLine>-Xmx512m -Xms512m -client</webdav.argLine>
+    <htmlunit.version>2.13</htmlunit.version>
+    <!-- TODO remove this once we've been able to upgrade htmlunit with removing xercesImpl.. -->
+    <enforcer.skip>true</enforcer.skip>
   </properties>
 
   <dependencies>
       <artifactId>jetty-server</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>org.eclipse.jetty</groupId>
+      <artifactId>jetty-util</artifactId>
+      <scope>test</scope>
+    </dependency>
     <dependency>
       <groupId>org.eclipse.jetty</groupId>
       <artifactId>jetty-plus</artifactId>
     <dependency>
       <groupId>net.sourceforge.htmlunit</groupId>
       <artifactId>htmlunit</artifactId>
-      <version>2.13</version>
+      <version>${htmlunit.version}</version>
+      <scope>test</scope>
+      <exclusions>
+        <exclusion>
+          <groupId>xerces</groupId>
+          <artifactId>xercesImpl</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+
+    <dependency>
+      <groupId>xml-apis</groupId>
+      <artifactId>xml-apis</artifactId>
+      <version>1.4.01</version>
       <scope>test</scope>
     </dependency>
 
+    <!-- only test because htmlunit really need it -->
     <dependency>
       <groupId>xerces</groupId>
       <artifactId>xercesImpl</artifactId>
+      <version>2.12.2</version>
       <scope>test</scope>
     </dependency>
 
index 0d99709b6dda1529e251f66f124c0e2d815ae9ab..a86e05d6d08bbedff2f06c37c18bf22872a0608a 100644 (file)
@@ -24,6 +24,7 @@ import org.apache.archiva.admin.model.beans.ManagedRepository;
 import org.apache.archiva.repository.events.AuditListener;
 import org.apache.archiva.common.filelock.FileLockManager;
 import org.apache.commons.io.FileUtils;
+import org.apache.commons.io.IOUtils;
 import org.apache.jackrabbit.webdav.DavException;
 import org.apache.jackrabbit.webdav.DavResource;
 import org.apache.jackrabbit.webdav.DavResourceFactory;
@@ -117,6 +118,7 @@ public class DavResourceTest
     public void testDeleteNonExistantResourceShould404()
         throws Exception
     {
+
         File dir = new File( baseDir, "testdir" );
         try
         {
index 1d870b3ebb3c272a978931fbde66666000faa2ed..e7f9bdd89b3704afa24ae35bb8e19c2f30ffefa6 100644 (file)
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-1.2-api</artifactId>
     </dependency>
-
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
-
   </dependencies>
   <build>
     <plugins>
index 1c076a453a97fb79d1d18aef0c8e54f002f7db01..f68d3e146c748b46038d2afc791edf4660fda2e7 100644 (file)
       <artifactId>disruptor</artifactId>
       <scope>test</scope>
     </dependency>
-
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
-
   </dependencies>
   <build>
     <testResources>
index 8e408628a2c53f6ff1c930c00405b3d4d80e73b0..084ba649d5d7656c61f1dfef80ed6ddbae0ffd58 100644 (file)
       <artifactId>assertj-core</artifactId>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
   </dependencies>
   <build>
     <plugins>
index 2263d6d4f1a669d638877f5edbd302860f6cfbb6..a9fadd5b7a25ab6ebeb4ba5040f2a8e0764d8805 100644 (file)
       <artifactId>assertj-core</artifactId>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
   </dependencies>
   <build>
     <testResources>
index 713d67a1e2397cf08ede1e02208acfaefb86b864..b21330a3dc9d179be5c7d21fb47bc6b02c5cbfb0 100644 (file)
       <artifactId>test-repository</artifactId>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
   </dependencies>
   <build>
     <plugins>
index 9070917457f4913a317cd735788c539e7b34aada..3fa38f5549ce7cac6dd4cb0c1b481ed1ea5bce47 100644 (file)
       <artifactId>mockito-all</artifactId>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
   </dependencies>
   <build>
     <plugins>
index 20ab0d8d49a21a7fec285a220c01f3312ab3b21a..4c0109268b90dd80490c0ccc864b0206e5071451 100644 (file)
         </exclusion>
       </exclusions>
     </dependency>
-    <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <scope>test</scope>
-    </dependency>
   </dependencies>
   <build>
     <plugins>
diff --git a/pom.xml b/pom.xml
index 2f619b07bdd0af1c6859d5c7a339f88f23cce72a..bf0084fd5f071984b8a6d9bc54016a041a814444 100644 (file)
--- a/pom.xml
+++ b/pom.xml
           </exclusion>
         </exclusions>
       </dependency>
-      <dependency>
-        <groupId>xerces</groupId>
-        <artifactId>xercesImpl</artifactId>
-        <version>2.12.2</version>
-      </dependency>
-
       <dependency>
         <groupId>javax.inject</groupId>
         <artifactId>javax.inject</artifactId>
         <artifactId>jetty-plus</artifactId>
         <version>${jettyVersion}</version>
       </dependency>
+      <dependency>
+        <groupId>org.eclipse.jetty</groupId>
+        <artifactId>jetty-util</artifactId>
+        <version>${jettyVersion}</version>
+      </dependency>
 
 
       <dependency>
                     <exclude>xom:xom</exclude>
                     <exclude>struts:struts</exclude>
                     <exclude>stax:stax-api</exclude>
+                    <exclude>xerces:xercesImpl</exclude>
                     <exclude>org.codehaus.plexus:plexus-xwork-integration</exclude>
                     <exclude>org.codehaus.plexus:plexus-component-api</exclude>
                     <exclude>org.codehaus.plexus:plexus-container-default</exclude>