Похожие чаты

Hi guys, i'm using intellij and i need to use

the SqlParameterSource class to compose parametrized sql queries.

What's the easiest way to include such things in my project?

I've understood that it may be related to Spring but i understand nothing of it.

9 ответов

27 просмотров

maven or manually

Add the library in maven

Mattia- Автор вопроса
Nader Jafari
maven or manually

I'd prefer to do it manually if you can orientate me on the jar, which i can't find

Mattia- Автор вопроса
Roy
Add the library in maven

Is it possible to add maven to an already started project in intellij?

Mattia
Is it possible to add maven to an already started ...

You're talking like you do not have any basic understanding about how Java development works. I'd recommend you to start with the basics on how to make a Java project before you start an actual project.

My 2 cents: I completely agree with this part of @Archcry 's message: You're talking like you do not have any basic understanding about how Java development works. I'd recommend you to start with the basics on how to make a Java project before you start an actual project I highly recommend you to NOT manage jars by yourself. Because of 4 reasons: - you won't learn anything useful for your career, neither you won't understand anything deeper - nobody is doing it manually these days, unless it's 15-20 years old project - you'll be applying your effort and mental capacity to a wrong thing, thus feel exhausted and hate what your'e doing before you start doing some fun stuff - nowadays projects depend on tons of external libraries (project currently opened in my IDE depends on 230 jars, for example, and it's a microservice which is doing not so much things to be true) What can be useful to understand: - how java finds classes and what is classpath. It searches the classpath sequentially in direct order until it finds class imported in your code/3-rd party lib code. So order matters. https://docs.oracle.com/javase/8/docs/technotes/tools/findingclasses.html - understand what "transitive dependencies" are (your app needs some library, which depends on another library, which depends on another one and so on), and how easy it is to run into version conflict. Do you really want to manage conflicts yourself?))) https://docs.gradle.org/current/userguide/dependency_resolution.html#sec:conflict-resolution - there's no information about transitive dependencies in the library jar itself. So you can't just go to some website, download some library, manually add it to your project and voila - it works. No. You would need to figure out all other libraries it depends on, and exact version of each. And go download those. And then figure out all verisons of those, and download those also. And so on, recursively. How much time will it take? Even for doing this for 10 jars is huge amount of work. And the most time-consuming part here is "figure out which VERSIONS of other libraries it depends on". That is not something you can easily find. That is the information that is published to artifacts servers when jar is built and uploaded there. Reading this meta-information is the job for build system, not for human. And when you comprehend what a time waste is that, you will realize that it's much better for your career, professional development, physical and mental health of you and your beloved ones, to spend that time on learning a build system, maven or gradle.

Mattia- Автор вопроса
Dmytro Buryak
My 2 cents: I completely agree with this part of @...

I am having a uni project, but i'm supposed to learn stuff like this from "wherever" and also the basic Java stuff was not well explained Coming from C/C++ projects(used well known libraries such as OMP or openCV) and python's pip easy tool, this approach to adding libraries is completely new to me I will surely go into Maven by now, thank you for your insight

Mattia
I am having a uni project, but i'm supposed to lea...

The term you're looking for is a dependency manager

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта