title: How to download maven dependency as *.jar file?
body: <p>I attempt to implement the example from <a href="https://stackoverflow.com/questions/176137/java-convert-lat-lon-to-utm">here</a>, but upon the Maven dependencies installation I can't find jar file amongst downloaded dependencies.</p>
  <p>My <code>pom.xml</code> looks like this:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot;
           xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
           xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;!-- This is often your domain name (reversed.)  --&gt;
      &lt;groupId&gt;com.abc&lt;/groupId&gt;
      &lt;!-- The name of this project (actually, the name of the artifact, which is the thing that this project produces. A jar in this case.) --&gt;
      &lt;artifactId&gt;javaparser-maven-sample&lt;/artifactId&gt;
      &lt;!-- The version of this project. SNAPSHOT means &quot;we're still working on it&quot; --&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
      &lt;properties&gt;
          &lt;!-- Tell Maven we want to use Java 8 --&gt;
          &lt;maven.compiler.source&gt;1.8&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;1.8&lt;/maven.compiler.target&gt;
          &lt;!-- Tell Maven to treat all source files as UTF-8 --&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;geotools.version&gt;2.5.7&lt;/geotools.version&gt;
      &lt;/properties&gt;
     &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;maven2-repository.dev.java.net&lt;/id&gt;
          &lt;name&gt;Java.net repository&lt;/name&gt;
          &lt;url&gt;http://download.java.net/maven/2&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
          &lt;id&gt;osgeo&lt;/id&gt;
          &lt;name&gt;Open Source Geospatial Foundation Repository&lt;/name&gt;
          &lt;url&gt;http://download.osgeo.org/webdav/geotools/&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt; &lt;!--Add the snapshot repository here--&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
          &lt;/snapshots&gt;
          &lt;id&gt;opengeo&lt;/id&gt;
          &lt;name&gt;OpenGeo Maven Repository&lt;/name&gt;
          &lt;url&gt;http://repo.opengeo.org&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  
      &lt;dependencies&gt;
          &lt;!-- Here are all your dependencies. Currently only one. These are automatically downloaded from https://mvnrepository.com/ --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.github.javaparser&lt;/groupId&gt;
              &lt;artifactId&gt;javaparser-core&lt;/artifactId&gt;
              &lt;version&gt;3.15.21&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/mil.nga.geopackage/geopackage --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;mil.nga.geopackage&lt;/groupId&gt;
              &lt;artifactId&gt;geopackage&lt;/artifactId&gt;
              &lt;version&gt;3.5.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/org.geotools/gt-api --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.geotools&lt;/groupId&gt;
              &lt;artifactId&gt;gt-api&lt;/artifactId&gt;
              &lt;version&gt;20.5&lt;/version&gt;
          &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.geotools&lt;/groupId&gt;
          &lt;artifactId&gt;gt-epsg-hsql&lt;/artifactId&gt;
          &lt;version&gt;${geotools.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.geotools/gt-geometry --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.geotools&lt;/groupId&gt;
          &lt;artifactId&gt;gt-geometry&lt;/artifactId&gt;
          &lt;version&gt;2.5-M2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.geotools/gt-referencing --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.geotools&lt;/groupId&gt;
          &lt;artifactId&gt;gt-referencing&lt;/artifactId&gt;
          &lt;version&gt;17.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.locationtech.jts.io/jts-io-common --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.locationtech.jts.io&lt;/groupId&gt;
          &lt;artifactId&gt;jts-io-common&lt;/artifactId&gt;
          &lt;version&gt;1.16.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.opengis/geoapi --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.opengis&lt;/groupId&gt;
          &lt;artifactId&gt;geoapi&lt;/artifactId&gt;
          &lt;version&gt;3.0.0&lt;/version&gt;
      &lt;/dependency&gt;
      
      &lt;!-- https://mvnrepository.com/artifact/org.geotools/gt-jts-wrapper --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.geotools&lt;/groupId&gt;
      &lt;artifactId&gt;gt-jts-wrapper&lt;/artifactId&gt;
      &lt;version&gt;17.0&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
      &lt;dependency&gt;
              &lt;groupId&gt;org.geotools&lt;/groupId&gt;
              &lt;artifactId&gt;gt-swing&lt;/artifactId&gt;
              &lt;version&gt;17.0&lt;/version&gt;
          &lt;/dependency&gt;
  
      
      
      &lt;/dependencies&gt;
  
      &lt;!-- This blob of configuration tells Maven to make the jar executable. You can run it with:
      mvn clean package
      java -jar target/javaparser-maven-sample-1.0-SNAPSHOT-shaded.jar
      --&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.2.3&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;shade&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;shadedArtifactAttached&gt;true&lt;/shadedArtifactAttached&gt;
                              &lt;transformers&gt;
                                  &lt;transformer
                                          implementation=&quot;org.apache.maven.plugins.shade.resource.ManifestResourceTransformer&quot;&gt;
                                      &lt;mainClass&gt;com.abc.conversion.LogicPositivizer&lt;/mainClass&gt;
                                  &lt;/transformer&gt;
                              &lt;/transformers&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  <p>I am able to download all the jars except geotools related jars. When I clean and run the project, in the <code>.m2</code> folder I am not able to see the geotool related jars. Even in the maven repository I am not able to download the jar file.</p>
  <p><a href="https://mvnrepository.com/artifact/org.geotools/gt-api/20.5" rel="nofollow noreferrer">Maven repo</a></p>
  <p>Is there any alternative way to proceed?</p>