1. Create a local image from the maven Repository
Http://blog.csdn.net/teamlet/archive/2007/04/22/1574642.aspx
2. Create a maven2 local code library server, which is often referred to as "private server"The official Maven repository server is very slow. Do you still remember the last submarine cable Accident? The o
Example
Org. jvnet. localizer is only applicable to the java.net resource library.Pom. xml
If not stated, an error will be reported.
Declare the java.net Repository
Tell Maven to obtain java.net dependencies. You need to declare the remote repository in the Pom. xml file as follows:Pom. xml
Now, the maven depend
Due to Oracle licensing issues, MAVEN3 does not provide Oracle JDBC driver, in order to apply Oracle JDBC driver to the MAVEN project, it must be added to the local repository manually.
This document is for Oracle 11g. first, to get Oracle JDBC Driver
1. Download the corresponding version through the official Oracle website: http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html
2. Obtai
XI dapupben, Microsoft JDBC Driver For SQL Server has been released to the maven central repository, jdbcmaven
I believe that students who develop applications through java and SQLServer have experienced the following similar problems.
The official JDBC driver provided by Microsoft is not placed in the Maven repository
MAVEN's default warehouse under the ~/.m2/repository, this is under the C drive, many system programs are in the C drive, and the C disk space is sometimes not large enough, so often to modify the local repository location, I made the following changes:
Set up a repository:d:\mavenrepository on D drive
Then add
and put the modified copy in the D:\mavenrepository.
The above steps to complete the modific
Build a Maven repository using Nexus1. PurposeBy creating your own private server, you can reduce the load on the central repository, save Internet bandwidth, accelerate maven building, and deploy your own components, so that you can use maven efficiently, nexus is a popular
For MAVEN projects, most third-party Java library files that are used on a daily basis can be downloaded automatically from MAVEN's central repository, but if the jar file we need is not in central repository, Then we need to manually add our own downloaded jar file to Maven's local reposotory, and we need to provide MAVEN
1. Open the local maven directory (or maven install directory, my installation directory is: D:\cloud_cms\maven\ apache-maven-3.0.4, here is not much impact, I just different projects have different warehouses): For example, my local storage directory is:D:\Util\maven\apache
maven is really a good thing to manage projects, but if you download the JAR remotely through Maven, the bandwidth of my dorm is 4 trillion,4 people sharing, sometimes using Maven to remotely download the JAR package will appear very slow, generally I find the download speed is not obvious, I have Ctrl + C to terminate its download. then use manual to download, b
Conventions:System: CentOSFile Installation Location:/usr/local/nexus: http://www.sonatype.org/nexus/go/Official Document: Https://books.sonatype.com/nexus-book/reference/index.htmlNexus oss, say my understanding of the software, as far as I know, the Java project needs to use MAVEN build process, and in the Maven build need to use a variety of dependencies, the dependency package needs to download from the
M2eclipse plugin is Eclipse a piece of Maven plugins. installation M2eclipse the process of the plugin is as follows: start eclipse help Install New software ... install dialog box, click work with: Add button , you get a new add Repository dialog box, in the Name m2e location http://download.eclipse.org/technology/m2e/releases OK shows m2eclipse
We often encounter such problems when using MAVEN to compile a project.Could not get the value for parameter encoding for plugin execution default-resourcesPluginorg.Apache.maven.Plugins:maven-Resources-plugin:2.6Or one of its dependencies could isn't be resolved: FailureTo find org.Codehaus.plexus:plexus-Utils:Jar:1.1In http://nexusserver:8081/nexus/content/groups/public/was cached in the local repository,
1both the parent Pom and the common Pom need to be addedDistributionmanagement> Repository> Id>NexusId> Name>Nexus ThirdParty repositoriesName> Url>http//10.74.11.37:8081/Nexus/Content/Repositories/ThirdPartywr.> Repository>Distributionmanagement>where the ID is to be associated with the MAVEN configuration file settings.xml inside theS
In a project that uses MAVEN, it is sometimes necessary to make a local project into a jar package and upload it to the Mevan repository.The operation is as follows:1. Configure the user name and password for the settings file in Maven as follows:2. Configure the uploaded Maven repository path in the Pom file in the pr
Today the boss sent me a project let me see, after importing eclipse appearsThe jar was not in the Maven repository, so the boss sent me a copy.At this point, how do I import this jar package into Maven repository?So Baidu a bit!CMD Open command line terminal, execute MVN install:install-file-dfile=jar package location
Because some jar packs do not exist in the MAVEN central repository, for example, Sqljdbc.jar is not found in the MAVEN central repository
Then we need to download the required jar package and add it to the local repository. The first of course is to configure the
DemandIdea is easy to integrate with Maven, but there are also problems, such as when using a Maven silo without a package, and we need to build our own local repository to implementRealizeFind the installation directory of idea under Maven, myC:\Program Files (x86) \jetbrains\intellij idea 2016.3\plugins\
Recently in the framework of building springmvc+mybatis, there was a problem when adding jar packs. I used to put the jar package directly inside Lib, but see now with Maven more, go to configure Maven. It was then found that when adding a version of the jar package, it was always a hint that it could not be found. Search the online information, it is estimated that the
When you build a MAVEN project, MAVEN examines your Pom.xml file to determine which dependencies to download. First, MAVEN will get Maven's local repository dependency resource from the local repository, and if not, then it will look for downloads from the default
Common maven Repository URLs:http://mvnrepository.com/http://search.maven.org/http://repository.sonatype.org/content/groups/public/http://people.apache.org/repo/m2-snapshot-repository/http://people.apache.org/repo/m2-incubating-repository/demo to add a Ojdbc-10.2.0.4.0.jar jar package:1.1 Login http://mvnrepository.com
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.