#How to add dependency to MCP

1 messages · Page 1 of 1 (latest)

cobalt sundialBOT
#

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

#

Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#
TJ-Bot
Hi, I am trying to add lombok to MCP 1.8.9. I have already added it to my classpath however the dependency isnt showing

To add a dependency to MCP 1.8.9, you can follow these steps:

  1. Make sure you have the Lombok library added to your project's classpath. You can do this by either manually including the Lombok JAR file in your project or by using a build tool like Maven or Gradle to manage dependencies.

  2. If you are using a build tool, you can add the Lombok dependency to your project's build file. For example, in a Maven project, you can add the following dependency to your pom.xml file:

<dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>{insert version number here}</version>
</dependency>
  1. After adding the dependency, rebuild your project to make sure that the Lombok library is properly included.

  2. If the dependency still isn't showing up in MCP, try refreshing or reloading your project in your IDE.

  3. Additionally, make sure that you are using an IDE that supports Lombok annotations and that you have any necessary plugins or extensions installed for Lombok integration.

By following these steps, you should be able to successfully add the Lombok dependency to MCP 1.8.9 and start using its features in your project. If you continue to encounter issues, feel free to ask for further assistance on our Java Q&A Discord server.

cosmic sapphire
#

Oh hell naw

#

Do u use maven or gradle

#

Or just mcp

#

Generally speaking you just need to add the jar file to the classpath

#

Idk how to do it in eclipse, thats for someone else to figure out

arctic star
#

I just downloaded a decompiled version

#

and set it up

cosmic sapphire
#

What dependency is it

arctic star
#

lombok

#

for getters and setters

#

I also get this prompt

cosmic sapphire
#

Oh so ur using intellij

arctic star
#

yeah

#

with the eclipse plugin

cosmic sapphire
#

How r u running the game

arctic star
#

wdym

cosmic sapphire
#

How do u launch the game?

arctic star
#

through the start class?

cosmic sapphire
#

Alright

#

Im not on pc rn so ill show u tmrw if someone else doesnt

arctic star
#

okay thanks

#

yeah its weird I refreshed my project files and it wouldn't show up

cosmic sapphire
#

Well u will need to add it as annotation processor and as depenedency

#

Btw im not sure if using lombok is a very good idea for such project

arctic star
#

fair

#

im just too lazy to write getters

placid oasis
#

u can generate them

#

alt-insert if memory serves for the popup

arctic star
#

@placid oasis but if I want more dependencys down the line it would also be good to know how to add them

#

if you could help me out

placid oasis
#

for a few of the depencies u can use manual, but your far better off using maven or gradle for it

arctic star
#

still cant get it working

placid oasis
#

did u add the import line ?

arctic star
#

ive tried adding as class and also adding as external annotation

#

yes

placid oasis
#

can u show your entire intellij screen ?

arctic star
#

mcp runs fine

#

just wont let me add dependency

placid oasis
#

whole screen plz 😉

#

also is that jars folder marked as library ?

arctic star
#

didnt want to leak the name

#

its not marked

placid oasis
#

try marking it

#

is there anything special in the eclipse that u really need to force eclips into intellij ?

arctic star
#

not really no

placid oasis
#

then for next time, make a regular project 😉