Preparatory work
Before eclipse configures Maven, we need to prepare for the following:1. Install JDK2. MAVEN has been installed to successfully configure MAVEN3. Download Eclipse, unzip installation complete, build workspace.This content believes that everyone has been familiar with, if not, please check the previous blog, here is no longer tired to state.Eclipse Configuration
How to install MAVEN on Windows 7from:http://howtodoinjava.com/2013/01/02/how-to-install-maven-on-windows-7/and:http://howtodoinjava.com/2013/01/06/adding-m2_repo-classpath-variable-in-eclipse-ide/Maven is a build and dependency management tool for Java based application development. Just Like other Java based development tools, it's not installed as Windows serv
ObjectiveBefore I wrote an article on Maven, I introduced some of the basic concepts of MAVEN, and the basic knowledge of Maven for a beginner, and it seemed to me that mastering these basics was enough.With the depth of work, more and more feel for Maven's understanding is not enough, many times the use of Maven out o
MAVEN entry (1), MAVEN entry (I. Basic concepts of Maven
Maven is a cross-platform project management tool. Mainly serves Java platform-based project construction, dependency management and project information management.1.1. Project Construction
The project construction process includes the following steps: clean up
The previous article was just a brief introduction to MAVEN's knowledge of getting started, this article is about the process of building a project with MAVEN's highly automatedI. Create a MAVEN project 1.1, build a Hello Project1. First build the Hello Project, and set up the directory structure and pom.xml file of MAVEN contract.Hello| --src| -----Main| ----------Java| ----------Resources| -----Test| ----
Note: My eclipse is using the latest version of ADT, and last year Google stopped supporting ADT, and most companies are now switching to Android studio.1, first to the MAVEN official website download Maven,window download "Binary zip" can2, note: The official website has indicated, did not install the JDK environment must first install the JDK3, through help, about eclipse can see the version of EclipseAft
Chen Kozhan-Welcome reprint, Reproduced Please indicate, thank you!==================In maven, we use archetype to create the project. In Ecelipse, we create the project through the New Project Wizard. The New Project Wizard in Eeclipse provides us with a large number of templates for creating projects. M2eclipse adds the following functionality to the wizard:1. Check out a MAVEN project from the SCM Wareho
maven Project automatically loads jar packs
The required tools are as follows: IntelliJ idea 13.1; Download Address: Please own Baidu search maven3.5, here is best to use apache-maven-3.2.1; Download Address link: http://maven.apache.org/download.cgi owns a maven project by default; The default is to install the JDK and configure the environment variables; becau
1 maven Installation
Before installing MAVEN, make sure that you have the JDK installed and that the environment variable JAVA_HOME is configured as well. The specific installation steps are as follows:
1. Download the package for the MAVEN project from the Apache web. The download address is: http://maven.apache.org/download.html. For example, now the latest
Use the Maven Archetype plug-in to build a Maven project prototype template, archetypemaven
Create a prototype Template
1. Run the command archetype: generate in an empty directory. After downloading the necessary jar package, enter the built-in Prototype number;
1 Choose archetype: 2 1: internal -> org.apache.maven.archetypes:maven-archetype-archetype (An archetype which contains a sample archetype.) 3 2:
Maven repository category, maven Repository
MAVEN repository category
Maven repositories can be divided into local warehouses and remote warehouses.
Remote warehouses are divided into central warehouses, private servers, and other public remote warehouses.
1. In Maven, an
Preparation steps? 1. Install maven and download unzip. ? 2. Modify the ? 3. Modify the settings.xml ? If you use the MVN command line to create, build, and run a MAVEN project, you need to configure the environment variable, which points to maven_home/bin. Once configured, you can view the MVN command:Because of the cumbersome use of commands, I use the Maven pl
In the previous blog with their own words of saliva to say a bit of MAVEN, here will need to know what to put forward, for the back of the blog to prepare.0. InformationThe best information to learn maven is the official site, followed by the search component is the central warehouse, the actual use can be used in the OSC image can also be self-built private warehouse cache (recommended to build a private w
Maven (3)-use intellij idea to create a maven web project, intellijmaven
This article uses an example to describe how to use maven to build a web project. Development Tool: intellij idea.
1. Create a maven Project
Select Create from archetype. Create a project from an existing mav
General MAVEN needs to be integrated into the IDE instead of being used alone, and common Maven integrates ide:eclipse, IntelliJ idea. But here's a MAVEN environment configuration based on just learning about eclipse integrated maven.
Installation of the Maven plugi
Tomcat has officially provided a MAVEN plugin for deploying MAVEN-based Web applications, different versions of Tomcat use different plug-ins, different versions of the use of the plug-in is also a certain difference, the details can be consulted http://tomcat.apache.org/maven-plugin.html . The following is the configuration process for deploying a
webxml attribute is required problem
MVN install a Web project, the error is as follows:
[ERROR] Failed to execute goal Org.apache.maven.plugins:maven-war-plugin:2.1.1:war
(Default-war) on project Com.alpha.webapp:Error assembling WAR:
webxml attribute is required (or pre-existing web-inf/web.xml if executing in Update mode), [Help 1]
[ERROR]
[ERROR]-See the full stack trace of the errors, re-run Maven with The-e SW Itch.
[ERROR] Re-run
: Restart Eclipse, open the view mode, select the SVN repository study, and then you can connect to the remote SVN repository operation.Configuring the MAVEN EnvironmentStep one: Follow the steps below to get into MAVEN's configuration, which is similar to the configuration of the JDK. Window-->preferencesEnter MAVEN in the search box, then go to the following interface, select Installations, then click Add
Maven is often used for development in IDE. Currently, popular Java ides include eclipse and intellij. For Maven, we can divide the IDE into two types:
1. Eclipse and other Maven integrated IDE are not close enough.
The combination of eclipse and Maven is not good. If you want to use
(7) Best practices for Maven and best practices for maven
It is not necessary to use Maven, but some useful practices may solve your problem at critical moments.
1. Set MAVEN_OPTS Environment Variables
Generally, MAVEN_OPTS must be set to-Xms128m-Xmx512m, because the default maximum available memory of Java cannot meet the needs of running
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.