Get the App
SLTechnology News&Howtos  ›  Development  › 

How to import third-party packages into idea

Shulou Source: shulou.com Published: 2022-06-02 20:10:59 09月24日 Update

This article is about how idea imports third-party packages. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Method one. Select your bag and right-click

Method 2:

Mvn install:install-file-DgroupId=com.pano-DartifactId=encryption-Dversion=3.0.1-Dpackaging=jar-Dfile=encryption-3.0.1.jar

This requires you to configure the mvn environment, and then add dependencies to the pom file in the code

To execute the above command, cd to the folder and execute it.

After the execution is completed, it is annotated in the pom, and then it is put out to refresh. When executing, look at the dependent package address in the setting file of the maven configured in your idea. This address directly affects the location of the package after the execution of the command, such as my

This thing only works when you start the command. For example, this location is another path, as long as you configure it in your idea configuration.

At this point, all the packages in the pom that your project imports depend on are under this one. You do not need to configure that path in settings.

Method 3:

Thank you for reading! This is the end of the article on "how to import idea into third-party packages". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Tags: Configuration commands files methods third parties locations content addresses more articles paths good practical code functions folders articles times comments gadgets Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi NVidia Shulou Technology macOS MySQL