Skip to content

how to update userlib

Faried Fauzi edited this page Jan 6, 2020 · 2 revisions

To update maven library

  1. 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.
  2. In the pom.xml add/update your dependency (shortcut Alt + Insert)
  3. 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.

To update userlib

  1. You need to have maven installed and added to your path (https://maven.apache.org/guides/getting-started/windows-prerequisites.html)
  2. From the command line, run mvn dependency:copy-dependencies -DoutputDirectory=OUTPUT_DIR
  3. 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#

Clone this wiki locally