Maven imports to the local warehouse no jar packs from the official warehouse

Source: Internet
Author: User
An overview

The use of blister ding word breaker, found in the central warehouse did not paoding-analysis this jar package, and if it is only simple to get from other places to copy the jar package to the local warehouse does not, the Pom file still error, can not be imported into the project Classpath. You need to use MAVEN to import jar packages into the local repository, and you cannot do this manually. The following describes how to import a jar package that is not in a central warehouse into a local warehouse.


Two Environment

Windows 7

Apache Maven 3.1.1


three steps

1. The command format is as follows

MVN install:install-file 
-dgroupid= package name  
-dartifactid= project name  
-dversion= version number  
-dpackaging=jar  
The path where the =jar file resides

2. Perform installation

MVN install:install-file-dfile=e:\javaee\ Development Library \paoding-analysis.jar-dgroupid=net.paoding-dartifactid= Paoding-analysis-dversion=2.0.4-beta-dpackaging=jar-dgeneratepom=true-dcreatechecksum=true


3.pom Dependency Settings

<dependency>
	<groupId>net.paoding</groupId>
	<artifactid>paoding-analysis</ artifactid>
	<version>2.0.4-beta</version>
	<scope>runtime</scope>
</ Dependency>

Original address: http://yeelor.iteye.com/blog/1646928

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.