Sometimes we need to tell ourselves that some of the jar packages are put into Maven's local repository, and if it is not effective to put the jar package directly, because MAVEN cannot recognize it, after all, there are fewer auxiliary files, so you need to use MAVEN's commands to complete the JAR package additions.
For example, the D-drive Commons-dbcp-1.3.jar file is placed under the warehouse path:
MV
1. Create a new settings.xml file in. m21.window--"preferences--" maven--"User Settings3. Click the Open File Editor to configure the remote repository. Click Update Settings.XML version= "1.0"?>Settingsxmlns= "http://maven.apache.org/SETTINGS/1.0.0"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"xsi:schemalocation= "http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd
Most of the time, the jar packages we need are not on the MAVEN repository.
We can find this jar package ourselves, but how to use it in the Pom file configuration.
We need to manually add the local jar package to the local Maven repository.
If you have already configured the MAVEN
Cause of the problemMAVEN uses the locally cached libraries authoring to compile the project by default, and Maven creates a xxx.lastupdated file in the directory for the library that failed the last download, and ~/.m2/repository/ once the file exists, the dependent library is not updated until the next Nexus update.Workaround:Delete the vvv~/.m2/repository/ *.l
Since there is no official MAVEN repository available for the Java memcached client at this time, it needs to be manually installed to the local repository when used. Java memcached Client jar package: Https://github.com/gwhalin/Memcached-Java-Client/downloads current 2.6.2 version of Java memcached The client relies on the Slf4j-simple, Slf4j-api, commons-pool t
1. Today, when using a MAVEN compilation to package a Web application, you encounter a problem:The project was developed with the introduction of a dependency jar package, placed in the Web-inf/lib directory, and the Web Libariary imported through BuildPath.There is no problem with developing in eclipse, but using MAVEN to compile plug-ins is always a good time to find the classes in the jar package web-inf
Today, when using a MAVEN compilation to package a Web application, you encounter a problem:The project was developed with the introduction of a dependency jar package, placed in the Web-inf/lib directory, and the Web Libariary imported through BuildPath.There is no problem with developing in eclipse, but using MAVEN to compile plug-ins is always a good time to find the classes in the jar package web-inf/li
Mode 1: Execute the package directly from the MAVEN engineering root directory (Java source code and pom.xml).
1) DOS command to the project directory,
2) Execute command: MVN intall can,
2.1) If you want to modify the name and version parameters (masochistic model, I tried a, knocking on the command is not easy), you can append the detailed command:
MVN install:install-file-dfile=c:\users\ehualu\workspace\mavenapp\target\mavenapp-0.0.1-snapshot.j
Because of Oracle licensing issues, MAVEN does not provide Oracle JDBC driver, which must be manually added to the local warehouse in order to apply the Oracle JDBC driver in the MAVEN project.I. Obtaining the Oracle JDBC Driver1. Download the appropriate version from the official Oracle website: http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html2. Obtained through the installation d
Step One:register your account and apply for ticket. Register here: https://issues.sonatype.orgApply ticket: Create a issue, note here to choose OSSRH, and is Project rather than Task,group ID to be careful to write, can not write you do not have permission, or the service will let you rewrite(half a day or so)。After successful application, you will be prompted: The Configuration has been prepared, now you can:please comment in this ticket when you promoted your first release, ThanksStep Two:GPG
Translation: The position of the MVN Install:install-file-dfile=jar package-dgroupid= above the groupid-dartifactid= above the artifactid-dversion= above the version- Dpackaging=jarExample: MVN Install:install-file-dfile=d:\hibernate-redis-1.0.jar-dgroupid=net.daum.clix-dartifactid=hibernate-redis -dversion=1.0-dpackaging=jarThis article is from the "re-learn Java" blog, please be sure to keep this source http://3131854.blog.51cto.com/3121854/1678134Importing jars into the local
1. Install Maven2. Open terminal run in Jar package directoryMVN install:install-file-dfile=ikanalyzer-3.2.8.jar-dgroupid=com.ndood-dartifactid=ikanalyzer-dversion=3.2.8- Dpackaging=jar2. You can then add the Pom.xml file under the projectManually importing jar packages to the MAVEN local repository
MAVEN coordinates introduced:Aliyun-java-SDK-coreAliyun-java-SDK-dysmsapiDOS introduction jar to local Warehouse command:MVN Install:install-file-dgroupid=com.aliyun-dartifactid=aliyun-java-sdk-dysmsapi-dversion=1.0.0-snapshot- Dpackaging=jar-dfile=aliyun-java-sdk-dysmsapi-1.0.0-snapshot.jarMaven jar coordinates and Doc introduced to a jar not in the central repository
http://blog.csdn.net/u014749862/article/details/48894409spring:http://maven.springframework.org/release/org/springframework/spring/Jackson:http://repo1.maven.org/maven2/com/fasterxml/jackson/core/(JSON data for implementation of front and back tables)Commons logging:http://commons.apache.org/proper/commons-logging/download_logging.cgijstl:http://archive.apache.org/dist/jakarta/taglibs/standard/binaries/The imported packages are as follows:Spring MVC Common Jar Pack official (official
This article is reproduced from http://www.cnblogs.com/leiOOlei/archive/2013/10/21/3380568.htmlBecause it is a second encounter, so copy come over, afraid of other people's blog after the latter what reason, can't find.View your Oracle version first, log into the database using Sqlplus/as SYSDBA, and have explicit version information in the ECHO message1. Download the appropriate version from the official Oracle website: http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html2
An overview
Using the blister word breaker, found that the central warehouse is not paoding-analysis this jar package, and if it is simply to copy the jar from the other to the local warehouse, the Pom file is still error, can not be imported into the project's classpath. The jar package needs to be imported into the local repository with MAVEN, and cannot be copied manually. The following describes how to
One, the practice of adding jars to the local warehouse:
Take the following pom.xml-dependent jar package as an example:
The actual project Pom.xml depends on the wording:
The commands for Maven install JAR packages are:
MVN install:install-file
-dfile=jar Package location
-dgroupid= above GroupID
-dartifactid= above
- dversion= the version
-dpackaging=jar above
For example, my Spring-context-support-3.1.0.release.jar file was put in "D:\m
cannot be obtained from a public warehouse.
Apache snapshots: Agent Apache Maven Warehouse, policy is snapshot.
Codehaus Snapshots: Agent Codehaus maven Warehouse, policy is snapshot.
Google code: Agent Google code maven warehouse, policy is release.
Public repositories: A warehouse group that aggregates all of the above policy-release warehouses
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.