George,
please stick to the mailinglist.

I cannot help you with eclipse, does your project build on the commandline? if not please provide your complete pom.xml and complete output when running "mvn -X -V package"

Also, I'm pretty sure http://download.java.net/maven/2 no longer exists so that can be removed.

Mark

On 15-12-19 19:58, George Budeba wrote:

Hi Mark,

Thanks for the help.

I am currently using version 20.3.  The challenge that I am facing right now when I try to compile in eclipse is that It keeps complaining about missing various gt dependencies. In my application, I have species only about 2 maven dependencies for geotools,  but the list of the missing jar files given by the compiler in eclipse is like unending.
---------------------------------------------------------------------------------------------------

These are the dependencies ( for version 20.3 and then 21.2)



<!-- https://mvnrepository.com/artifact/org.geotools/gt-shapefile -->
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-shapefile</artifactId>
<version>${geotools.version}</version>
</dependency>



<!-- https://mvnrepository.com/artifact/org.geotools/gt-swing -->
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-swing</artifactId>
<version>${geotools.version}</version>
</dependency>

The repositories and Build setup in pom.xml



<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>

<plugin>
<inherited>true</inherited>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
<repositories>


<repository>
<id>maven2-repository.dev.java.net <http://maven2-repository.dev.java.net></id>
<name>Java.net repository</name>
<url>http://download.java.net/maven/2</url>
</repository>
<repository>
<id>osgeo</id>
<name>Open Source Geospatial Foundation Repository</name>
<url>http://download.osgeo.org/webdav/geotools/</url>
</repository>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>boundless</id>
<name>Boundless Maven Repository</name>
<url>http://repo.boundlessgeo.com/main</url>
</repository>


</repositories>

------------------------------------------------------------------------------------------------------

sample errors that I get
---------------------------------------------------------------------------------------------------------
java.io.FileNotFoundException: C:\Users\User\.m2\repository\org\geotools\gt-cql\20.3\uom-se-1.0.8.jar (The system cannot find the file specified) java.io.FileNotFoundException: C:\Users\User\.m2\repository\org\geotools\gt-cql\20.3\unit-api-1.0.jar (The system cannot find the file specified) java.io.FileNotFoundException: C:\Users\User\.m2\repository\org\geotools\gt-cql\20.3\jai_core-1.1.3.jar (The system cannot find the file specified) java.io.FileNotFoundException: C:\Users\User\.m2\repository\org\geotools\gt-cql\20.3\GeographicLib-Java-1.49.jar (The system cannot find the file specified)
------------------------------------------------------------------------------------------------------------



With Thanks

George

On Sun, Dec 15, 2019 at 9:08 PM mark <mc.pr...@gmail.com <mailto:mc.pr...@gmail.com>> wrote:

    On 2019-12-14 15:22, George Budeba wrote:


    /Could not resolve dependencies for project
    go.lands:talatar:war:0.0.1-SNAPSHOT: The following artifacts could
    not be resolved: org.geotools:gt-shapefile:jar:23,
    org.geotools:gt-swing:jar:23: Could not find artifact
    org.geotools:gt-shapefile:jar:23 in maven2-repository.dev.java.net
    <http://maven2-repository.dev.java.net>
    (http://download.java.net/maven/2) /
    /
    /

    /please use an actual released version eg. 21.2 (latest release) (23
    does not yet exist, there won't be nightly/snapshot builds of 23.x
    for a while) and add the proper repository as is shown in step 7:
    /https://docs.geotools.org/latest/userguide/tutorial/quickstart/maven.html


    _______________________________________________
    GeoTools-GT2-Users mailing list
    GeoTools-GT2-Users@lists.sourceforge.net
    <mailto:GeoTools-GT2-Users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users




_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to