stripe dependency not being recognized?
for some reason I keep getting errors here
25 Replies
⌛
This post has been reserved for your question.
Hey @IamMax420! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
This question may seem silly, but are you sure that all the dependency data is correct?
yes
So maybe the IDE didn't download the dependencies from maven central or something like that
I ran mvn clean install -U
still nothing :((
Could you send me your pom.xml?
ok this is weird but I commented out the dependency, uncommented it, ran the command and it seems to work now
Ooh nice
I got happy too early
even though I'm not getting any errors now in my pom.xml, I still can't access
Stripe
in my appyoyoyoyoyoyo
did you install the other dependency needed for stripe
spring boot starter parent
damn
I'll try that
yeah I have that already
ok let me check on my project too
what class from stripe do you need to use
good question
I don't know
i tried importing the charge class and it works
just wanted to integrate payments
did you reload the project after adding the dependency
try to use the charge class
and see if it recognizes the import correctly
if yes then the dependency works
yeah I just did that and it worked lolol
tysm
keep forrgetting about doing that 🥲
amazing that it works
Great that it works, let me explain what (I think) happened here.
IntelliJ not finding existing dependencies happens from time to time. Reloading the Maven project sometimes helps but not always. Essentially, that happens (AFAIK) when using a dependency that isn't available locally so it would need to be downloaded.
Pressing the reload button sometimes downloads it but not always (or IntelliJ automatically tries to download it but it doesn't re-check it until you press the reload button) and intelliJ doesn't give any information about the download progress.
You can use the
mvn compile
(for non-test
dependencies) which should download dependency and once you see it succeeding, you know it's correctly downloaded and in the repository. Then, you can press the reload button and it should work.
If the mvn
commands fail, it means that the issue is either with your pom.xml (or similar) or the Maven repo (connection - it could also fail due to internet connection issues or the repo being down).I’ll keep that in mind
Thanks
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
Post Closed
This post has been closed by <@589517424093691905>.