-
Notifications
You must be signed in to change notification settings - Fork 18
how to update userlib
Faried Fauzi edited this page Jan 6, 2020
·
2 revisions
- Refresh your maven index from
Settings/Preferences | Build, Execution, Deployment | Build Tools | Maven | Repositories
. NOTE: this will take a while but it can be run in the background. - In the pom.xml add/update your dependency (shortcut
Alt + Insert
) - Re-imports your maven dependencies
Note: if your pom.xml file is not detected (e.g. Alt + Insert
does not have the option to add new dependency), you can add your project as a maven project.
- You need to have maven installed and added to your path (https://maven.apache.org/guides/getting-started/windows-prerequisites.html)
- From the command line, run
mvn dependency:copy-dependencies -DoutputDirectory=OUTPUT_DIR
- Copy the newly generated libraries (in OUTPUT_DIR) to your userlib, and possibly remove the old one. Also, make sure the companion files are updated.
Source: https://www.jetbrains.com/help/idea/work-with-maven-dependencies.html#