stripe dependency not being recognized?

for some reason I keep getting errors here
No description
25 Replies
JavaBot
JavaBot7d ago
This post has been reserved for your question.
Hey @IamMax420! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
red
red7d ago
This question may seem silly, but are you sure that all the dependency data is correct?
IamMax420
IamMax420OP7d ago
yes
red
red7d ago
So maybe the IDE didn't download the dependencies from maven central or something like that
IamMax420
IamMax420OP7d ago
I ran mvn clean install -U still nothing :((
red
red7d ago
Could you send me your pom.xml?
IamMax420
IamMax420OP7d ago
ok this is weird but I commented out the dependency, uncommented it, ran the command and it seems to work now
red
red7d ago
Ooh nice
IamMax420
IamMax420OP7d ago
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 app
ayylmao123xdd
ayylmao123xdd7d ago
yoyoyoyoyoyo did you install the other dependency needed for stripe spring boot starter parent
IamMax420
IamMax420OP7d ago
damn I'll try that yeah I have that already
ayylmao123xdd
ayylmao123xdd7d ago
ok let me check on my project too what class from stripe do you need to use
IamMax420
IamMax420OP7d ago
good question I don't know
ayylmao123xdd
ayylmao123xdd7d ago
i tried importing the charge class and it works
IamMax420
IamMax420OP7d ago
just wanted to integrate payments
ayylmao123xdd
ayylmao123xdd7d ago
did you reload the project after adding the dependency try to use the charge class
import com.stripe.model.Charge;
import com.stripe.model.Charge;
and see if it recognizes the import correctly if yes then the dependency works
IamMax420
IamMax420OP7d ago
yeah I just did that and it worked lolol tysm
IamMax420
IamMax420OP7d ago
keep forrgetting about doing that 🥲
ayylmao123xdd
ayylmao123xdd7d ago
amazing that it works
dan1st
dan1st7d ago
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).
IamMax420
IamMax420OP7d ago
I’ll keep that in mind Thanks
JavaBot
JavaBot7d ago
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.
JavaBot
JavaBot7d ago
Post Closed
This post has been closed by <@589517424093691905>.

Did you find this page helpful?