#javaPLugin not importing

1 messages · Page 1 of 1 (latest)

green flint
#

.

untold saddle
#

hi

#

send your pom.xml pls

#

@green flint

green flint
#

ok

#

sorry for the late reply

#
  <modelVersion>4.0.0</modelVersion>
  <groupId>test</groupId>
  <artifactId>test</artifactId>
  <version>1</version>
  <name>test</name>
  <description>test</description>
 <properties>
        <maven.compiler.target>17</maven.compiler.target>
        <maven.compiler.source>17</maven.compiler.source>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <repositories>
        <repository>
            <id>spigot-repo</id>
            <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
        </repository>
    </repositories>
    <dependencies>
        <dependency>
            <groupId>org.spigotmc</groupId>
            <artifactId>spigot-api</artifactId>
            <version>1.19-R0.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
</project>
#

@untold saddle

untold saddle
#

okay it seems like eclipse didnt understand that you're using maven in the first place

green flint
#

oh really, though i made project with a maven format

untold saddle
#

I cannot really help you with eclipse, I have moved on to intelliJ years ago because I found eclipse to be a pain when using maven

untold saddle
#

if you're willing to try out intellij (I can really recommend it), then feel free to ping me

green flint
#

ok

floral hatch
#

did you run update project

#

on maven

green flint
#

afk

untold saddle
#

you can try to remove the .project folder, then restart eclipse

#

but that's all I can tell you

floral hatch
#

i don't see maven dependencies tho

#

it should look like this

#

try refreshing

green flint
#

ok

#

im back

#

ok

#

il try refrehing

floral hatch
#

if you don't have Maven Dependencies section

green flint
#

i think i might be on a differnt version on eclipse that doesn't make proper maven for me

floral hatch
#

then you are doing something wrong

#

what's your version

green flint
#

wait

floral hatch
#

it worked even on 2020-03

green flint
#

1 sec

#

ah

#

ok

#

well

#

im above that

#

so

#

idk

floral hatch
#

i'm on 2022-06

green flint
#

what if i try reinstalling it

floral hatch
#

idk

#

install 2022-09

green flint
#

ok

#

ok im intalling the newer version of the IDE now

floral hatch
#

follow the tutorial after you did it

green flint
#

before i used 2020 -06

floral hatch
#

nice 2 years old version

floral hatch
#

is it working now? @green flint

green flint
#

i made a typo

green flint
#

i tried changing up the workspace

#

2022-9

floral hatch
#

call me

#

we will see together

green flint
#

k

green flint
floral hatch
#

u removed all the things i told you to remove?

green flint
#

yeh

#

idk

#

i tihnk my eclipse is glitched

#

i even reinstalled it

floral hatch
#

your pc is glitched heh

green flint
floral hatch
#

u tried multiple eclipse versions

green flint
#

yup

#

im honestly not suprised if its a prob with my pc

floral hatch
#

tho you could try gradle

#

instead of maven

#

in eclipse

green flint
#

whats gradle

#

huh

#

weird

#

even on intellij my dependencies aren't being created

floral hatch
#

basically same as maven

#

build system

#

but has different format

#

while maven is on xml

#

gradle is on smth different

green flint
#

does it have like same syntax

floral hatch
#

nah

green flint
#

ah

floral hatch
#

still

#

just copypaste

green flint
#

i find that as a problem bc im already used to maven even though it never worked for me

#

ok

floral hatch
#

Create Gradle project

#

not Kotlin

green flint
#

Ill try that later as currently i'm busy with handling intellij

floral hatch
#

and find build.gradle file

green flint
#

if intellij doens't work ill try that

floral hatch
#

copy paste repos and dependencies and update

green flint
#

OMG

#

IT WORKS

#

IF I RELOAD ON INTELLIJ

#

IT RELOADS WITH DEPENDENCIES

floral hatch
#

maven?

green flint
floral hatch
#

good luck then

green flint
#

tysm

#

u helped alot

#

it finally works

#

lol

floral hatch
#

so intellij works

#

and eclipse doesnt

green flint
#

yeah

floral hatch
#

😉

green flint
#

kinda makes sense tbh

#

i think my eclipse was specificly glitched

#

or maybe the location it was downloaded in

untold saddle
#

eclipse's maven integration is total shit

#

that's also the reason why I switched

floral hatch
#

never had issues with it

#

probably shouldn't touch folders or check/uncheck some properties

untold saddle
#

I always had problems with it when I had both, a .project folder, AND a pom.xml

#

eclipse always seemed to ignore the pom (or halfway ignore it) when it also found its own .project folder

#

so basically it always happened when you switched from a normal eclipse project to a maven one

floral hatch
#

never had this issue