onthegomap/planetiler

[BUG] Cannot find symbol `class TileArchives`

Closed this issue · 2 comments

wipfli commented

Describe the bug
The planetiler-examples do not build on latest main.

To Reproduce
Steps to reproduce the behavior:

git clone git@github.com:onthegomap/planetiler.git
cd planetiler/planetiler-examples
../mvnw clean package --file pom.xml

Expected behavior
Examples build.

Screenshots

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/wipfli/maps/test/planetiler/planetiler-examples/src/main/java/com/onthegomap/planetiler/examples/ToiletsOverlayLowLevelApi.java:[7,41] cannot find symbol
  symbol:   class TileArchives
  location: package com.onthegomap.planetiler.archive
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.029 s
[INFO] Finished at: 2023-03-18T20:14:26+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project planetiler-examples: Compilation failure
[ERROR] /home/wipfli/maps/test/planetiler/planetiler-examples/src/main/java/com/onthegomap/planetiler/examples/ToiletsOverlayLowLevelApi.java:[7,41] cannot find symbol
[ERROR]   symbol:   class TileArchives
[ERROR]   location: package com.onthegomap.planetiler.archive
[ERROR] 
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Environment (please complete the following information):

  • Hardware: xps dell
  • OS: ubuntu
  • Java version and distribution: 17
  • Maven version: 3.8.2

Additional context

@wipfli when you build directly from planetiler-examples you need to run ../mvnw clean package -f standalone.pom.xml

wipfli commented

Ah my bad, thanks for the pointer @msbarry. With standalonge.pom.xml it compiles...