First, prepare
Apache-maven-3.3.9-bin.zip Download Address: http://maven.apache.org/download.cgi Your computer has installed the JDK and environment variable configuration win system Java JDK1.7 Second, Local Installation 2.1 Extracting, configuring environment variables
1 Extract the downloaded apache-maven-3.3.9-bin.zip to the specified directory. I put it in D:\Mave
First, the purpose of building a nexusWhy to set up a nexus, the reason is very simple, some companies do not provide the network to the project team, so you can not use MAVEN to access the remote warehouse address, it is necessary to find a network in the LAN access to a network of machines, to build a nexus, and then developers to connect to this server, This will allow you to access MAVEN's remote repository through this PC with a nexus.1.1. Nexus
In the project release, you may encounter this situation, I hope that the project source code to maintain the same premise, you want to be able to target different operating environment to obtain the corresponding running package. (e.g. War pack)Basic Configuration : (including the configuration of the jar that does not want to enter the war package ) Reference: http://nileader.blog.51cto.com/1381108/449956Maven-war-plugin Official website: http://maven.apache.org/plugins/
first write to use the first write dependent versionIf d-->2, A--b1.0,b--b1.1,d--a and c==>b1.0,f-->d,c, select Shortest Path f--b1.13. If you want precise control of the dependency package, you can use the dependent exclusion functionDependencies,dependency under exclusions, exclude packages that do not need to be relied on, Gav declaration
Dependent aggregations
A place to compile multiple files, in Eclipse Maven follows project, and
Org. apache. maven. plugins: maven-compiler-pluginismissing Solution
In fact, this problem is not a big problem, it will not affect the normal operation of the program, but a warning level log. But it is not very nice to see. In fact, there are more than one of these problems, but the reasons are the same. They are all due to the absence of specified version information. First, let's see how the log report
I've seen some nexus before, and I didn't care much about Artifactory when I first contacted Maven. Today thought that since Nexus can have the courage to come out to mix, should have a bit of true skill is, looked at Nexus installation introduction, quite simple, try no harm. So put on a small try, the result is overjoyed, Nexus performance is very good, especially after the remote index is opened, simply too convenient.
He decided to give up artifa
The problem may be that dependent projects are packaged into bundles, such as Mina, packaged into bundles, for example:Then you need to add a bundle plugin:"Java+maven" problem series--maven error Missing artifact xxx:xxx:bundle:xx.xx.xx
One. Maven download and install (with JDK installed)1.:http://maven.apache.org/download.cgi (select latest zip version), unzip after download2. Install: The system path variable is followed by the MAVEN bin path, or you can configure the maven_home system variable (%maven_home%\bin) to operate3. Run the cmd command to view the installation status Mvn-vTwo. Create a new
MAVEN's local repository is a dependency that stores all projects (plug-in jars and other files, which are downloaded by maven) to a local folder.Very simply, when you build a MAVEN project, all the relevant files will be stored in your MAVEN local repository.By default, MAVEN's local repository defaults to the. M2 Directory folder:
Unix/mac OS x–~/.m2
Learn about the features of MAVEN build projects with a simple MAVEN project. Select New in MyEclipse, find Maven Project, and click Next as shown. If there is no "skeleton" information in the archetype,maven skeleton, we can execute mvnarchtype:generate in the DOS command window to generate skeleton information. Then
Maven installation and Maven Installation
1. First download apache-maven-3.3.9-bin.zip and decompress it;
2. The portable system variable maven_home. the value is the decompression path of apache-maven-3.3.9-bin.zip:
Add the following in the path variable:
%MAVEN_HOME%\bin;
3. Enter the command mvn-version to check wh
Original: http://www.cnblogs.com/xdp-gacl/p/4054814.htmlI. Create a Web project 1.1 Choose Build Maven ProjectSelect File--New->project, as shown in: Select Maven---maven Project in the new window. Click "Next" as shown: 1.2 Select project PathSelect the storage directory for the project according to the actual situation of the project, or select the "Use defau
The latest version of Eclipse comes with Maven components, but you can use the latest version of Maven, which is installed externally, and describes how to install the configuration.
Download maven
After downloading, unzip, find a path to put in, the bin location in the environment variable, new environment variable Maven_home
Path to add Maven's
Importing a Maven project from Git, right-clicking the jar package that you want to update the MAVEN reference, and discovering that the right-click menu does not have a MAVEN menu item at all. What to do? Very simple, follow these steps:After importing from Git, right-click the project without the "Maven" menu item:Ju
Maven installation and configuration (learning notes on the first day) and maven learning notes
Download Maven: http://maven.apache.org/
1, first of all to ensure that JDK has been installed and configuration (Note: The use of JDK1.6 apache-maven-3.3.3 is not good, I use JDK1.8)
2. Decompress
Maven Learning Summary (vii) Creating a Web project with Maven in--eclipse create a Web project 1.1 Choose Build Maven ProjectSelect File--New->project, as shown in: Select Maven---maven Project in the new window. Click "Next" as shown: 1.2 Select project PathSelect the st
The MAVEN multi-module project is hot-deployed under Eclipse, where you can experience the code for any module in the entire project, without the need for MAVEN packaging to see the effect,
1, first ready to create a MAVEN multi-project code, ready an eclipse, a tomcat, what Java environment, Tomcat environment I will not say, if you do not have the right to look
Tags: file maven res eclipse java Bubuko plugins ima DivOne, need to prepare the thing1. JDK2. Eclipse3. Maven PackageSecond, check the Java installationThird, install MavenDownload Apache-maven-3.5.3-bin.zip decompression can be.Iv. Configuring MAVEN1. Maven_home: E:\soft\apache-maven-3.5.3-bin\apache-
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.