Yes, also http://central.maven.org/maven2/ which is what the tool downloads from ... -- Jody Garnett
On Wed, 20 Feb 2019 at 10:20, <paul.m...@lfv.se> wrote: > Is the URL = https://mvnrepository.com/repos/central > > Skickat från min iPhone > > 20 feb. 2019 kl. 19:08 skrev Malm, Paul (Operations AIM) <paul.m...@lfv.se > <mailto:paul.m...@lfv.se>>: > > I don’t know if this is a stupid question, but since I don’t know any > thing about Maven I must ask it. > Which URL do you meen? > Kind regards, > Paul > > Skickat från min iPhone > > 20 feb. 2019 kl. 16:24 skrev Jody Garnett <jody.garn...@gmail.com<mailto: > jody.garn...@gmail.com><mailto:jody.garn...@gmail.com>>: > > Please remember to use reply all so everyone can help out. > > Can you try again, and confirm that maven central is visible from your > machine? You can try that URL in a browser. > > Keep in mind that if your browser may have proxy settings configured. > > On Tue, Feb 19, 2019 at 11:31 PM <paul.m...@lfv.se<mailto:paul.m...@lfv.se > ><mailto:paul.m...@lfv.se>> wrote: > Hi, thanks for answering. > I have never used Maven before. > I have not used maven for this project because of this error message in > Eclipse (when trying to create a quick start maven project): > > Could not resolve archetype > org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the > configured repositories. > Could not resolve artifact > org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 > Could not transfer artifact > org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to > central (https://repo.maven.apache.org/maven2): connect timed out > Could not transfer artifact > org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to > central (https://repo.maven.apache.org/maven2): connect timed out > > Thats why I tried to just add the jars in the classpath in my java project > instead. > > Kind regards, > Paul > Från: Jody Garnett [mailto:jody.garn...@gmail.com<mailto: > jody.garn...@gmail.com>] > Skickat: den 19 februari 2019 07:29 > Till: Malm, Paul (Operations AIM) > Kopia: GeoTools Users > Ämne: Re: [Geotools-gt2-users] java newbee > > Maven should pull in everything you need with a transitive dependency > (including the java library implementing si.uom.SI<http://si.uom.SI>). > Can you share the results of mvn dependency:tree from your project folder? > -- > Jody Garnett > > > On Mon, 18 Feb 2019 at 05:30, <paul.m...@lfv.se<mailto:paul.m...@lfv.se > ><mailto:paul.m...@lfv.se>> wrote: > Hi, > I’m sorry to bother you about such a triviality. > I’m not familiar with maven an have tried to put the GeoTool jars in the > classpath. But when I try to run my program I’m getting > Exception in thread "main" java.lang.NoClassDefFoundError: si/uom/SI > at > org.geotools.referencing.datum.DefaultEllipsoid.<clinit>(DefaultEllipsoid.java:59) > at > org.geotools.referencing.datum.DefaultGeodeticDatum.<clinit>(DefaultGeodeticDatum.java:73) > at > org.geotools.referencing.crs.DefaultGeographicCRS.<clinit>(DefaultGeographicCRS.java:89) > at > dialog.ShapeFileWriter2.createFeatureType(ShapeFileWriter2.java:44) > at > dialog.ShapeFileWriter2.shapeFileWriter(ShapeFileWriter2.java:71) > > The code where it explodes: > private static SimpleFeatureType createFeatureType() { > SimpleFeatureTypeBuilder builder = new > SimpleFeatureTypeBuilder(); > builder.setName("Location"); > builder.crs(DefaultGeographicCRS.WGS84); // <- > builder.add("the_geom", Point.class); > builder.length(15).add("Name", String.class); > final SimpleFeatureType LOCATION = > builder.buildFeatureType(); > return LOCATION; > } > > > I know something is wrong with my setup of gt-epsg-hsql-20.2.jar. > This is the only gt.espg…jar I have in my classPath, but I have not done > anything else with it. Could someone please point me in correct direction. > Kind regards, > Paul > > _______________________________________________ > GeoTools-GT2-Users mailing list > GeoTools-GT2-Users@lists.sourceforge.net<mailto: > GeoTools-GT2-Users@lists.sourceforge.net><mailto: > GeoTools-GT2-Users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > -- > -- > Jody Garnett > > > _______________________________________________ > 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