#Maven: Adding dependencies to POM.xml and External JAR Files

1 messages · Page 1 of 1 (latest)

atomic estuary
#

How can I add external libraries to my project? I've downloaded gson.jar but I'm having difficulties to add the dependency to pom.xml... I just copied and pasted

mellow portalBOT
#

<@&987246841693360200> please have a look, thanks.

mellow portalBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

next karma
atomic estuary
#

but when I copy and paste the dependency inside the POM the IDE complains

#

And I don't know how to do it manually with mvn

next karma
atomic estuary
#

I think it worked

#

I've clicked "reload project"

next karma
#

Yes

atomic estuary
#

Thanks