ich brauche dringend hilfe!
已回答
ich habe ein projekt erstellt...um genau zu sein ein minecraft plugin welches mit Essentials, Vault und PlaceholderAPI zusammen arbeiten soll...
ich habe alle linien für die importierung richtig geschrieben, die wege richtig geschrieben, habe die nötigen jar dateien importiert und als abhängigkeit gestellt...
nun möchte ich das plugin complimieren via maven aber der sagt mir immer das die nötigen importierungen fehlen...
bitte helft mir!!!
MFG
Klum
请先登录再写评论。
wie sie auf dem screen shot sehen wird der angezeigt das der weg vorhanden ist, das er gelesen wird und alles klappt...aber sobald ich versuche mit maven das projekt als .jar zu exportieren wird mir angezeigt der weg sei nicht vorhanden :(
https://prnt.sc/cqg6pE0t-LNc
Please check if it works if you perform mvn package command from the command line outside of IntelliJ.
i use windows...you mean from the normal cmd terminal? also i i need go in the idea folder wth terminal and then use the command?
Yes, please download Maven from https://maven.apache.org/download.cgi, add it to your PATH, open Windows cmd, cd into the project directory and run mvn package.
This way we will know whether the problem is in the IDE or in the project configuration.
sorry for the stupid question, but what exactly do you mean by "add to path"? do you mean the installation of the program or do i have to go into intellij for that?
#am new to the programming scene :(
and need i install the src or the bin.zip?
i have downloaded now both, but its not an installer...its only folders with many files
ok i find the install helper from the site XD just a moment pls
ok now i feel stupid myself :(
i follow the steps from installiation helper...you see on screen where i have import the files...https://prnt.sc/_gXwtXl1v-cK
in the installation helper, i read after import the files, i need make in cmd "mvn -v" to check if it is install correctly...
but the cmd say me the command mvn is unknown :( https://prnt.sc/p4rXz2YJnHWJ
Please try to follow these steps https://stackoverflow.com/a/48411269/12844632
if i go with cmd first in the folder from programm files...is same problem :(
https://prnt.sc/83h2_RJlCxXJ
https://prnt.sc/DjRs5bNNFd7b
i follow the steps...but its same problem :(
you have team viwer? maybe you can help me with that :(
ok i have done...i havent see an last step for the console...
"set PATH="c:\Programme\apache-maven-3.xy\bin";%PATH%" i forgot
now it works...what i need do now that i can export my jar file from intellij?
ok now iam understand nothing...
if i reopen the cmd terminal and make mvn -v, it say me is an unkown command...but if i make "set path ..." before, then its work...
https://prnt.sc/jZFnZ29cndis
I'm starting to despair though :(
I now went to the folder of the intellij project, executed the "set path ..." command there (everything in the cmd terminal) and then entered "mvn package"...
but it gives me the same error as IntelliJ itself :( the dependencies don't exist, but they do exist!
can you explain or show me how to set the dependencies? did I do something wrong there?
As I said, I'm new to the programming scene :(
i find the problem :(
https://prnt.sc/ReNCdJ8d152D
there are the files for the dependencies but in the list they are not :(
https://prnt.sc/Zkvr82L_7zs5
i think if you can help me with that, you cleared my problem :)
Looks like something is wrong with the project configuration. Please upload your project zipped at https://uploads.jetbrains.com/ (do not forget to specify the UploadID here)
2022_10_25_bWk95LqjfA9Unk4KatNAaW
i hope you can fix it...i sit on this plugin for days and dont would that my time and my work is for nothing :(
Thank you.
Since you're using Maven please add the following entries under dependencies section:
and click on Reload all Maven Projects in Maven tool window:
After that try to execute mvn package command from the IDE and check your target directory.
Please use pom.xml for managing dependencies in Maven project since the IDE Project Structure settings might lost after the project reload.
awww!!! it works! really thank you!
So it's not enough to just add the jar from the dependent plugins, they also have to be entered in the pom.xml?
or do the jar files not have to be added at all, just the dependencies in the pom.xml?
and if i may ask...when i start a new project or want to add another dependency...where do i find the groupID and artifactID? the artifactID seems to be just the name of the plugin...but where can I find the groupID? not all plugins have their own website...
If you're using Maven you can add dependencies to your pom.xml only and reload the project using Reload all Maven Projects.
You can try using https://search.maven.org .
As I can see your dependencies do not exist in Maven central so you need to search where the vendor left this information. E.g. https://github.com/EssentialsX/Essentials#using-essentialsx-in-your-plugin
When creating a new project you can define your own IDs as per https://stackoverflow.com/a/3724851/12844632
Perfect! Thank you for all!