Deep-Symmetry / crate-digger

Java library for fetching and parsing rekordbox exports and track analysis files.
Other
135 stars 18 forks source link

Cannot 'maven clean install' #35

Closed snwfdhmp closed 3 weeks ago

snwfdhmp commented 3 weeks ago

Hi,

I'm new to Java so the mistake is most probably from my side.

I'm trying to run this code using maven clean install and i'm getting the following errors :

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /Users/snwfdhmp/Dev/workspaces/playground/m3u8-to-folder/rekordbox-reader/src/main/java/com/example/App.java:[4,36] cannot find symbol
  symbol:   class RekordboxPdb
  location: package org.deepsymmetry.cratedigger
[ERROR] /Users/snwfdhmp/Dev/workspaces/playground/m3u8-to-folder/rekordbox-reader/src/main/java/com/example/App.java:[14,62] cannot find symbol
  symbol:   method getPlaylists()
  location: variable database of type org.deepsymmetry.cratedigger.Database
[ERROR] /Users/snwfdhmp/Dev/workspaces/playground/m3u8-to-folder/rekordbox-reader/src/main/java/com/example/App.java:[14,30] package RekordboxPdb does not exist
[ERROR] /Users/snwfdhmp/Dev/workspaces/playground/m3u8-to-folder/rekordbox-reader/src/main/java/com/example/App.java:[17,33] package RekordboxPdb does not exist
[INFO] 4 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.101 s
[INFO] Finished at: 2024-08-25T19:21:23+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project rekordbox-reader: Compilation failure: Compilation failure: 
[ERROR] /Users/snwfdhmp/Dev/workspaces/playground/m3u8-to-folder/rekordbox-reader/src/main/java/com/example/App.java:[4,36] cannot find symbol
[ERROR]   symbol:   class RekordboxPdb
[ERROR]   location: package org.deepsymmetry.cratedigger
[ERROR] /Users/snwfdhmp/Dev/workspaces/playground/m3u8-to-folder/rekordbox-reader/src/main/java/com/example/App.java:[14,62] cannot find symbol
[ERROR]   symbol:   method getPlaylists()
[ERROR]   location: variable database of type org.deepsymmetry.cratedigger.Database
[ERROR] /Users/snwfdhmp/Dev/workspaces/playground/m3u8-to-folder/rekordbox-reader/src/main/java/com/example/App.java:[14,30] package RekordboxPdb does not exist
[ERROR] /Users/snwfdhmp/Dev/workspaces/playground/m3u8-to-folder/rekordbox-reader/src/main/java/com/example/App.java:[17,33] package RekordboxPdb does not exist
[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

I simply want to list tracks of all playlists to make a tool that reproduce playlist folder from rekordbox playlist.

Any help would be greatly appreciated.

brunchboy commented 3 weeks ago

Hello! Please use the Zulip discussion community in order to seek information and guidance, and only open issues once a consensus has been reached that there is a problem that requires changes to the project.

brunchboy commented 3 weeks ago

That said, I think I see your problem. If you study the API documentation, you are not using the correct package for RekordboxPdb. Line 4 of your code should be:

import org.deepsymmetry.cratedigger.pdb.RekordboxPdb;

In any case, please join the conversation on Zulip to follow up on your progress and ask further questions, it is a friendly and helpful community. 😄