Maven can install its own jar file into its own local repository through the install command
It can be used in idea.
You can make your own code into a jar package and install it in a local warehouse.
If the source of the jar package is also installed in the local warehouse.
You need to add the following code
In the Pom.xml file.
Add to the fragment to add ...
Original source: HengyunabcOriginBefore I saw an open source project using GitHub as a MAVEN repository, I wondered if I could make one. Studied the next, recorded.In simple terms, there are three steps:
Deploy to local Directory
Submit the local directory to the Gtihub
Configure GitHub address as warehouse address
Configure local file Maven
This article describes the idea of using GitHub as a MAVEN repository primarily:
Create Mvn-repo branch on GitHub project, use Mvn-repo branch as Maven repository
Configure Pom.xml to use Target/mvn-repo as a temporary MAVEN
Maven is used for the farm project, and myeclipse10 is used. It has an integrated Maven plug-in, which is more convenient to use. The following is the process of configuring the local Maven repository.
After the maven2 plug-in is added to myeclipse, the default path of the maven
provides configuration for all Maven| Users on a machine (assuming they're all using the same Maven| Installation). It's normally provided in| $ {Maven. Home}/CONF/settings. xml.|| Note: This location can be overridden with the CLI option:||-GS/path/to/global/settings. xml|| The sections in this sample file are intended to give you a running start| Getting the m
1. The default local warehouse
Under the current user directory of the system. M2
The MAVEN default local warehouse path is ${user.home}/.m2/repository.
A local repository is a buffer and a subset of remote repositories, and when you build a MAVEN project, you first look for resources from the local
If my project does not use maven, I should make a choice, or change the project, or urge this project to use maven. Someone may ask why maven is used? Doesn't maven work well. Here, I will only talk about two things: the first is to manage the jar package. This contains many meanings, such as downloading the jar packag
When using Maven to build a project, it will certainly involve adding the Oracle database driver dependency. However, it is difficult to find Maven dependency configuration in the Maven repository.
When using Maven to build a project, it will certainly involve adding the Or
Install maven3.0.4 in Windows + configure the local maven repository, maven3.0.4maven
Briefly describe how to install maven:
1. Before installing maven, make sure that JDK 1.6 and later are installed and the environment variables are configured.
2. Download maven3, the latest version is Maven3.0.4,: http://maven.apache
Fix why Nexus-maven-repository-index issues need to be updated every time you open eclipse new workspace
Create a new Eclipse workspace.
Open Window->preferences as shown in:
After you open preferences, click Maven to see download repository index updates on STARTP right
I. Why?
By default, the maven local repository is in the directory. m2/repository under drive C. All Maven components (artifact) are stored in this repository for reuse.
However, disk C occupies space and is not secure. in case of system reinstallation, this article introduc
The Maven repository is primarily for storing some third-party dependent jar packages.Strictly speaking, there are only two repositories: local and remote, the local repository is a cache that you remotely download to local, and also contains temporary build files that have not yet been published. Remote repositories refer to remote repositories that can be downl
Label: nexus Maven
If my project does not use Maven, I should make a choice, or change the project, or urge this project to use Maven. Someone may ask why Maven is used? Doesn't Maven work well. Here, I will only talk about two things: the first is to manage the jar package.
, the remote warehouse is large, and there will be a large number of Index files, such as http://repo1.maven.org/maven2/there are several hundred MNS.
You can go to Scheduled Tasks to view the execution status of the task. When the execution is complete, the index of the remote repository has been created.
3. Try the Artifact Search function to see if the building information in the remote repository can
I recently made an open source project disconf:distributed configuration Management Platform (distributed configuration Management Platform), simply, is the platform system that manages the configuration files for all business platform systems. For a more detailed introduction, see the Project homepage.The project is written in Java, Maven managed, then, naturally, the entire project should be exposed to the user using the
In many cases, the default central warehouse does not meet the requirements of the project, and the artifacts that may be required for the project exist in another remote repository, such as the JBoss maven repository. At this point, you can configure the warehouse in the Pom file. Here are some of the elements: under the repositories element, you can declare on
Document directory
When using Maven for development, a common problem is how to find my desired dependencies. For example, I want to use activeMQ, but I don't know groupId, artifactId, and the appropriate version. What should we do? This article describes several sites that provide the maven repository search service.
1. http://repository.sonatype.org/index
one. Maven repository dependency mechanism MAVEN's library dependencies can help us automatically download dependent library files and update versions. Consider a situation to understand how the mechanism works, assuming that we want to use the LOG4J library as a log record of the project. Here's what we're going to do. 1. The traditional way 1) Visit log4j website http://logging.apache.org/log4j/2.x/ 2) Do
Combining the knowledge of the Internet and its own installation experience myeclipse2014 install maven3.3.9 and maven to configure the local repository and make a mistake to modify MAVEN successfully1. Before installing Maven, it is required to make sure that your JDK is installed and configured to complete. JDK is be
When using Maven, Maven downloads the jar package that the project depends on by default in the central repository, to the local disk directory (if not configured, it is under the user directory /. m2/repository folder ). If a Maven private server is built in the company, th
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.