u/Legal_Revenue8126

[SOLVED]

In my project I can effortlessly run my project as an application through IntelliJ's runner configurations. However if I try to run it from the terminal after navigating to the source file directory I get hundreds of error: package com.package.something does not exist errors, even when run from the project root directory. I believe this is also part of the reason all of my Jar files also fail to run as they give similar, but different, errors.

I have all my dependencies specified in my pom.xml, so I'm confused how IntelliJ is able to read all the libraries I imported while the command line java cannot.

If need be I can show my project structure.

--------------------------------------------------

Solution:

Add the shade plugin to the pom.xml and run it as part of the maven package stage.

mvnw clean:clean package shade:shade
The jar labelled "original" will run perfectly fine, as far as I can tell

reddit.com
u/Legal_Revenue8126 — 15 days ago

I'm trying to build out my Java application with Firestore connectivity, but the only that is natively supported is the Admin SDK which I cannot safely ship.

I was told I could use the REST APIs, but I may as well be looking at instructions to build a space shuttle, it makes no sense.

How do I authorize and connect to my Firestore so I can write data from my client?

============

Edit: I saw this under the admin SDK documentation, but I'm still not sure its safe enough and its for the RTDB, not Firestore

https://firebase.google.com/docs/database/admin/start#authenticate-with-limited-privileges

reddit.com
u/Legal_Revenue8126 — 21 days ago