Похожие чаты

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 ответов

13 просмотров

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

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

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

@LGCYMan @JustinKKW Q/A List 1. this part confuses me on #8: "From there, a bridge between erc20 LGXY and erc20 LGXY will be out once that swap is closed." does this mean ...
Sig | LGCY | BattleVerse L1 | BitWin
1
Anyone here suffers from unexplained aural migraines, who would be up for talking for a bit? Doesn't *have* to be aural, but I am not asking about headaches, I mean actual mi...
Martin Rys
55
Привет, нужен совет старших товарищей. Есть глобальная переменная var DefaultDataFolder:string; инициализируем DefaultDataFolder:='a:\_OUT\'; есть примитивная процедур...
Max Otto
14
A couple thoughts from a random internet stranger: 1. If you want this project to gain traction you cannot keep being negative. If I just came here after finding out about Kd...
Eric Wild
46
We heading to 1.1$ 🤔?
CryptoBo$$
35
Вопрос. Теоретический. Есть список команд. Команды отправляю в обработку некой функции, по очереди. Разные команды могут давать разные результаты после обработки. В зависимос...
Serjone
7
Agreed. And on a lighter note, I just love the idea of earning $FunToken while having fun. It’s like getting paid to do what we love. Who wouldn’t want that? 😄
SpaceGemz
13
Сonst magicTgHTML = (text, entities) => { let processedText = text; let offsetShift = 0; entities.forEach(entity => { const { offset, length, type, url, ...
Андрей
1
I can answer questions or just drop the q/a?
Justin | LGCY |
9
But is may still valid as a goal ?
oneBlock!³
10
Карта сайта