Missing artifacts from Maven

1,274 views
Skip to first unread message

Fernando Barbat

unread,
Feb 28, 2011, 8:02:09 AM2/28/11
to jgrasstools
Hi list,

I am not being able to get JGrass Tools running. I did what the wiki
says about maven, but had no success. At this time, I just want a
"Hello World" or "Hello Kriging" app.

Here is my pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>uy.org.inia.gras.sigras</groupId>
<artifactId>sigras-proceso</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>sigras-proceso</name>
<url>http://maven.apache.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<repositories>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>sonatype</id>
<name>Sonatype Maven Repository</name>
<url>http://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>

<dependencies>
<!-- for jgrass gears -->
<dependency>
<groupId>org.jgrasstools</groupId>
<artifactId>jgrassgears</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>

<!-- for hortonmachine -->
<dependency>
<groupId>org.jgrasstools</groupId>
<artifactId>hortonmachine</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>


I'm using M2Eclipse, and this is the log:

28/02/11 11:00:27 AM UYST: Missing artifact
org.jgrasstools:jgrassgears:jar:0.1-SNAPSHOT:compile
28/02/11 11:00:27 AM UYST: Missing artifact javax.media:jai_core:jar:
1.1.3:compile
28/02/11 11:00:27 AM UYST: Missing artifact javax.media:jai_codec:jar:
1.1.3:compile
28/02/11 11:00:27 AM UYST: Missing artifact
javax.media:jai_imageio:jar:1.1:compile
28/02/11 11:00:27 AM UYST: Missing artifact org.codehaus.groovy:groovy-
all:jar:1.7.1:compile
28/02/11 11:00:27 AM UYST: Missing artifact jline:jline:jar:
0.9.94:compile
28/02/11 11:00:27 AM UYST: Missing artifact
org.fusesource.jansi:jansi:jar:1.1:compile
28/02/11 11:00:27 AM UYST: Missing artifact com.sun.jna:jna:jar:
3.0.9:compile
28/02/11 11:00:27 AM UYST: Missing artifact org.geotools:gt-epsg-
h2:jar:2.7-SNAPSHOT:compile
28/02/11 11:00:27 AM UYST: Missing artifact org.geotools:gt-
referencing:jar:2.7-SNAPSHOT:compile
28/02/11 11:00:27 AM UYST: Missing artifact java3d:vecmath:jar:
1.3.2:compile
28/02/11 11:00:27 AM UYST: Missing artifact commons-pool:commons-
pool:jar:1.5.4:compile
28/02/11 11:00:27 AM UYST: Missing artifact org.geotools:gt-
metadata:jar:2.7-SNAPSHOT:compile
28/02/11 11:00:27 AM UYST: Missing artifact org.geotools:gt-
opengis:jar:2.7-SNAPSHOT:compile
28/02/11 11:00:27 AM UYST: Missing artifact
net.java.dev.jsr-275:jsr-275:jar:1.0-beta-2:compile
28/02/11 11:00:27 AM UYST: Missing artifact com.h2database:h2:jar:
1.1.119:compile
28/02/11 11:00:27 AM UYST: Missing artifact org.geotools:gt-data:jar:
2.7-SNAPSHOT:compile
28/02/11 11:00:27 AM UYST: Missing artifact org.geotools:gt-main:jar:
2.7-SNAPSHOT:compile
28/02/11 11:00:27 AM UYST: Missing artifact org.geotools:gt-
shapefile:jar:2.7-SNAPSHOT:compile
28/02/11 11:00:27 AM UYST: Missing artifact jdom:jdom:jar:1.0:compile
28/02/11 11:00:27 AM UYST: Missing artifact org.geotools:gt-
coverage:jar:2.7-SNAPSHOT:compile
28/02/11 11:00:27 AM UYST: Missing artifact org.geotools:gt-api:jar:
2.7-SNAPSHOT:compile
28/02/11 11:00:27 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-tiff:jar:1.0.8:compile
28/02/11 11:00:27 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-utilities:jar:1.0.8:compile
28/02/11 11:00:27 AM UYST: Missing artifact org.geotools:gt-
geotiff:jar:2.7-SNAPSHOT:compile
28/02/11 11:00:27 AM UYST: Missing artifact org.geotools:gt-
arcgrid:jar:2.7-SNAPSHOT:compile
28/02/11 11:00:27 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-arcgrid:jar:1.0.8:compile
28/02/11 11:00:27 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-customstreams:jar:1.0.8:compile
28/02/11 11:00:27 AM UYST: Missing artifact org.geotools:gt-
process:jar:2.7-SNAPSHOT:compile
28/02/11 11:00:27 AM UYST: Missing artifact org.geotools:gt-cql:jar:
2.7-SNAPSHOT:compile
28/02/11 11:00:27 AM UYST: Missing artifact org.geotools:gt-graph:jar:
2.7-SNAPSHOT:compile
28/02/11 11:00:27 AM UYST: Missing artifact joda-time:joda-time:jar:
1.6:compile
28/02/11 11:00:28 AM UYST: Missing artifact com.vividsolutions:jts:jar:
1.11:compile
28/02/11 11:00:28 AM UYST: Missing artifact xerces:xercesImpl:jar:
2.4.0:compile
28/02/11 11:00:28 AM UYST: Missing artifact org.geotools:gt-swing:jar:
2.7-SNAPSHOT:compile
28/02/11 11:00:28 AM UYST: Missing artifact org.geotools:gt-render:jar:
2.7-SNAPSHOT:compile
28/02/11 11:00:28 AM UYST: Missing artifact org.geotools:gt-wms:jar:
2.7-SNAPSHOT:compile
28/02/11 11:00:28 AM UYST: Missing artifact org.geotools:gt-xml:jar:
2.7-SNAPSHOT:compile
28/02/11 11:00:28 AM UYST: Missing artifact
com.miglayout:miglayout:jar:swing:3.7:compile
28/02/11 11:00:28 AM UYST: Missing artifact org.geotools:gt-imageio-
ext-gdal:jar:2.7-SNAPSHOT:compile
28/02/11 11:00:28 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-gdalarcbinarygrid:jar:1.0.8:compile
28/02/11 11:00:28 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-gdalframework:jar:1.0.8:compile
28/02/11 11:00:28 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-gdal-bindings:jar:1.4.5b:compile
28/02/11 11:00:28 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-geocore:jar:1.0.8:compile
28/02/11 11:00:28 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-gdalmrsid:jar:1.0.8:compile
28/02/11 11:00:28 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-gdalecw:jar:1.0.8:compile
28/02/11 11:00:28 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-gdaldted:jar:1.0.8:compile
28/02/11 11:00:28 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-gdalkakadujp2:jar:1.0.8:compile
28/02/11 11:00:28 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-gdalmrsidjp2:jar:1.0.8:compile
28/02/11 11:00:28 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-gdalecwjp2:jar:1.0.8:compile
28/02/11 11:00:28 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-gdalehdr:jar:1.0.8:compile
28/02/11 11:00:28 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-gdalenvihdr:jar:1.0.8:compile
28/02/11 11:00:28 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-gdalerdasimg:jar:1.0.8:compile
28/02/11 11:00:28 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-gdalnitf:jar:1.0.8:compile
28/02/11 11:00:28 AM UYST: Missing artifact it.geosolutions.imageio-
ext:imageio-ext-imagereadmt:jar:1.0.8:compile

andrea antonello

unread,
Mar 2, 2011, 2:26:04 AM3/2/11
to jgras...@googlegroups.com
Hi Fernando,

> I am not being able to get JGrass Tools running. I did what the wiki
> says about maven, but had no success. At this time, I just want a
> "Hello World" or "Hello Kriging" app.


your pom is missing the dependencies from geotools. Well, that
actually means that I am doing something not right, since they should
be pulled if you put the hortonmachine in the dependencies.

I think I did something wrong in my maven ignorance, since I put all
those dependencies in the parent jgrasstools pom in the believe that
it would be enough. A quick fix would be to copy to your pom also the
dependencies from the jgrasstools pom. But if you have an advice about
how to properly solve this, I am all ears.

After that there is a testcase for the Kriging, you can access from
here: http://code.google.com/p/jgrasstools/wiki/Kriging

Giuseppe and Daniele, which are subscribed to the list, actually wrote
the module, so if you have questions, just shoot.

Ciao,
Andrea

Fernando Barbat

unread,
Mar 4, 2011, 5:29:01 AM3/4/11
to jgrasstools
Hi Andrea,

I could get the Kriging module running. I did it by doing two things:

1 - Using Maven 2 instead of M2Eclipse embedded version (Maven 3).
2 - Installing missing dependencies in the local repository:
- scannotation-1.0.2.jar: I googled it and download it from a JBoss
maven repository.
- geoscript-groovy-0.9.jar: I googled it and download it from JGrass
Tools project.
- jama-1.0.2.jar: I downloaded it from JGrass Tools download page.

Once I got all the dependencies included in my test project, I
prepared it with "mvn eclipse:eclipse" and imported it from Eclilpse -
just as the wiki of JGrass Tools says-.

Thanks.

Fernando

andrea antonello

unread,
Mar 5, 2011, 3:09:43 AM3/5/11
to jgras...@googlegroups.com
Hi Fernando,

> I could get the Kriging module running. I did it by doing two things:
>
> 1 - Using Maven 2 instead of M2Eclipse embedded version (Maven 3).

Ok, yes, I am usign maven 2. Never tried maven 3.

> 2 - Installing missing dependencies in the local repository:
> - scannotation-1.0.2.jar: I googled it and download it from a JBoss
> maven repository.
> - geoscript-groovy-0.9.jar: I googled it and download it from JGrass
> Tools project.

These two should be available via maven. Didn't the come down the
dependency chain?

> - jama-1.0.2.jar: I downloaded it from JGrass Tools download page.

Yes, I am still trying to solve that. There is no mavenized version
available around.

> Once I got all the dependencies included in my test project, I
> prepared it with "mvn eclipse:eclipse" and imported it from Eclilpse -
> just as the wiki of JGrass Tools says-.

Ok, thanks for the report. It seems the installation of the build
environment is still a bit tricky. I'll have to work on it.

Andrea

Reply all
Reply to author
Forward
0 new messages