Index: applications/editors/josm/plugins/geotools/pom.xml
===================================================================
--- applications/editors/josm/plugins/geotools/pom.xml	(revision 36325)
+++ applications/editors/josm/plugins/geotools/pom.xml	(revision 36348)
@@ -56,9 +56,26 @@
             <scope>provided</scope>
         </dependency>
-        <!-- FIXME: Check excludes -->
         <dependency>
             <groupId>org.geotools</groupId>
             <artifactId>gt-coverage</artifactId>
             <version>${geotools.version}</version>
+            <exclusions>
+                <exclusion> <!-- Unnecessary -->
+                    <groupId>com.github.spotbugs</groupId>
+                    <artifactId>spotbugs-annotations</artifactId>
+                </exclusion>
+                <exclusion> <!-- Not needed in 22.0 according to lib in svn -->
+                    <groupId>com.google.guava</groupId>
+                    <artifactId>guava</artifactId>
+                </exclusion>
+                <exclusion> <!-- From JTS plugin -->
+                    <groupId>org.locationtech.jts</groupId>
+                    <artifactId>jts-core</artifactId>
+                </exclusion>
+                <exclusion> <!-- From apache-commons plugin -->
+                    <groupId>commons-io</groupId>
+                    <artifactId>commons-io</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
         <dependency>
@@ -66,4 +83,34 @@
             <artifactId>gt-coverage-api</artifactId>
             <version>${geotools.version}</version>
+            <exclusions>
+                <exclusion> <!-- Not needed in 22.0 according to lib in svn -->
+                    <groupId>org.geotools</groupId>
+                    <artifactId>gt-imagemosaic</artifactId>
+                </exclusion>
+                <exclusion> <!-- Not needed in 22.0 according to lib in svn -->
+                    <groupId>net.sourceforge.hatbox</groupId>
+                    <artifactId>hatbox</artifactId>
+                </exclusion>
+                <exclusion> <!-- From JAXB plugin (Eclipse JAXB 2.3.2 at time of writing) JAXB 3.0 uses jakarta.xml.bind/com.sun.xml.bind -->
+                    <groupId>javax.xml.bind</groupId>
+                    <artifactId>jaxb-api</artifactId>
+                </exclusion>
+                <exclusion> <!-- From JAXB plugin (Eclipse JAXB 2.3.2 at time of writing) JAXB 3.0 uses jakarta.xml.bind/com.sun.xml.bind -->
+                    <groupId>org.glassfish.jaxb</groupId>
+                    <artifactId>jaxb-runtime</artifactId>
+                </exclusion>
+                <exclusion> <!-- From JTS plugin -->
+                    <groupId>org.locationtech.jts</groupId>
+                    <artifactId>jts-core</artifactId>
+                </exclusion>
+                <exclusion> <!-- From apache-commons plugin -->
+                    <groupId>commons-io</groupId>
+                    <artifactId>commons-io</artifactId>
+                </exclusion>
+                <exclusion> <!-- From apache-commons plugin -->
+                    <groupId>org.apache.commons</groupId>
+                    <artifactId>commons-lang3</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
         <dependency>
@@ -86,4 +133,22 @@
             <artifactId>gt-main</artifactId>
             <version>${geotools.version}</version>
+            <exclusions>
+                <exclusion> <!-- From EJML plugin -->
+                    <groupId>org.ejml</groupId>
+                    <artifactId>*</artifactId>
+                </exclusion>
+                <exclusion> <!-- From JTS plugin -->
+                    <groupId>org.locationtech.jts</groupId>
+                    <artifactId>jts-core</artifactId>
+                </exclusion>
+                <exclusion> <!-- From apache-commons plugin -->
+                    <groupId>org.apache.commons</groupId>
+                    <artifactId>commons-text</artifactId>
+                </exclusion>
+                <exclusion> <!-- From jackson plugin -->
+                    <groupId>com.fasterxml.jackson.core</groupId>
+                    <artifactId>jackson-core</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
         <dependency>
@@ -91,4 +156,14 @@
             <artifactId>gt-metadata</artifactId>
             <version>${geotools.version}</version>
+            <exclusions>
+                <exclusion> <!-- ecore is rather large (1.3M) -->
+                    <groupId>org.eclipse.emf</groupId>
+                    <artifactId>*</artifactId>
+                </exclusion>
+                <exclusion> <!-- From apache-commons plugin -->
+                    <groupId>org.apache.commons</groupId>
+                    <artifactId>commons-lang3</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
         <dependency>
@@ -96,4 +171,10 @@
             <artifactId>gt-api</artifactId>
             <version>${geotools.version}</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.locationtech.jts</groupId>
+                    <artifactId>core</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
         <dependency>
@@ -101,4 +182,10 @@
             <artifactId>gt-referencing</artifactId>
             <version>${geotools.version}</version>
+            <exclusions>
+                <exclusion> <!-- From EJML plugin -->
+                    <groupId>org.ejml</groupId>
+                    <artifactId>*</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
         <dependency>
@@ -111,4 +198,18 @@
             <artifactId>gt-geopkg</artifactId>
             <version>${geotools.version}</version>
+            <exclusions>
+                <exclusion> <!-- ecore is rather large (1.3M) -->
+                    <groupId>org.eclipse.emf</groupId>
+                    <artifactId>*</artifactId>
+                </exclusion>
+                <exclusion> <!-- From apache-commons plugin -->
+                    <groupId>org.apache.commons</groupId>
+                    <artifactId>commons-collections4</artifactId>
+                </exclusion>
+                <exclusion> <!-- From apache-commons plugin -->
+                    <groupId>commons-io</groupId>
+                    <artifactId>commons-io</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
     </dependencies>
