geomesa / geomesa-quickstart

Deprecated - moved to https://github.com/geomesa/geomesa-tutorials
Apache License 2.0
5 stars 2 forks source link

Updated pom - Added geotools repo. Added compiler plugin. #5

Closed kevinwheeler closed 9 years ago

kevinwheeler commented 10 years ago

Before adding repository, this error was occurring:

[ERROR] Failed to execute goal on project geomesa-quickstart: Could not resolve dependencies for project groupId:geomesa-quickstart:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: org.geotools:gt-opengis:jar:11.2, org.geotools:gt-data:jar:11.2, org.geotools:gt-epsg-hsql:jar:11.2: Failure to find org.geotools:gt-opengis:jar:11.2 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

After adding repository but before adding the compiler plugin, these errors were showing up:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project geomesa-quickstart: Compilation failure: Compilation failure: [ERROR] /home/tim/workspace/geomesa-quickstart/src/main/java/org/geomesa/QuickStart.java:[111,12] error: generics are not supported in -source 1.3 [ERROR] [ERROR](use -source 5 or higher to enable generics) [ERROR] /home/tim/workspace/geomesa-quickstart/src/main/java/org/geomesa/QuickStart.java:[113,22] error: enhanced for loops are not supported in -source 1.3 [ERROR] [ERROR](use -source 5 or higher to enable for-each loops) [ERROR] /home/tim/workspace/geomesa-quickstart/src/main/java/org/geomesa/QuickStart.java:[267,20] error: ';' expected [ERROR] -> [Help 1]

These additions are already found in the pom.xml in the geomesa repository.