1: Configure the Tomcat Manager User: Re-unzipped a new TOMCAT7, open Tomcat_user.xml in the Conf directory under the Tomcat root directory, add Manager roles and users under Adding Tomcat Server to the 2:maven configuration Open maven's settings.xml file, if it is a locally installed version of MAVEN, the file is installed in the root directory conf/settings.xml, if you are using the eclipse built-in
Maven Learning Summary (ii)--maven project building process ExercisesThe 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 structur
Installing and configuring MAVEN environment variables
Requires a Java environment already in the computer
In the console, enter: echo %JAVA_HOME% See if you can display the path information of Java home;
In the control bar input: java -version See if Java version information is displayed;
Download official website: http://maven.apache.org/download.cgi
Download the compiled version apache-maven-
eclipse when you're done. B, offline installation First download:http://115.com/file/dpk80gj0#eclipse-maven3-plugin.7z use two ways to install eclipse-maven3-plugin.7z , One,link Way
in your eclipse Create two folders under the root of the installation: links myplugins (name customizable), eclipse-maven3-plugin.7z and plugins folder is placed in myplugins folder
links Create a (name customizable) file, open and enter: path=myplugins ( or "\ \" NBSP;NBSP;
configuration
Reference Document 2: Modify the MAVEN local warehouse path.
3. Create a new MAVEN project that does not show the source file package
Symptom : Eclipse creates a MAEVN Web project, and after selecting the Maven_archetype_web prototype, the default is only src/main/resources this source Floder
workaround : Right-select Properti
Install maven on Mac and maven on Mac
1. Install maven
1. Check the jdk version on the local machine first.
$ java -versionjava version "9.0.4"Java(TM) SE Runtime Environment (build 9.0.4+11)Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)$
2. Download the corresponding maven version based on the jdk vers
; % M2_HOME % \ bin ---- add the number after path;
Start cmd and enter mvm-v to view the version.
2. Modify the location of the local repository
The default local repository location of maven is/. m2/repository in the current user directory. We can configure it to another disk.
E:/m2/repository is configured here.
Open cmd and run a simple maven command: mvn help: system to download the relevant
Maven environment configuration and maven Environment
I have studied how to build a maven project. The following describes how to build a maven project.
1. Download maven
Click to enter http://maven.apache.org/download.cgi? .
2. Deploy
. The first component is used as a dependency on other components, the most common being the various jar packages. This is the majority of the component types stored in the central warehouse. Another component type is a plug-in, and the Maven plugin is a special type of widget. For this reason, the plugin repository is independent of the other warehouses. The
The remote repository has two sets of releases and snapshots configurations, and
each project, developers need to rewrite the process, and there is a lot of repetition. MAVEN is declarative, the work required by the project build process and every stage of the process is implemented by plug-ins, and most plug-ins are readily available, and developers only need to declare the basic elements of the project, and Maven executes the built-in, complete build process. This eliminates duplicat
result:MVN resources:resources \Compiler:compile \Resources:testresources \Compiler:testcompile \Surefire:test \Jar:jarRunning the package phase keeps track of all the targets contained in a particular build, and it also allows each project to use MAVEN to follow a well-defined set of standards. This life cycle allows us to jump from one MAVEN project to another MAVEN
1. Import Maven Project
The MAVEN project was written in 4 and is now imported. Select the menu item File, and then select Import, we will see an Import dialog box, select Maven Projects under the Maven directory in the dialog box, and then click Next, and the Import Maven P
because:Archetype:create This command is not available in MAVEN version 3.02 or more, use the Generate command insteadPlease refer to the official documentationArchetype:createFull Name:Org.apache.maven.plugins:maven-archetype-plugin:2.4:createThis plugin goal have been deprecated:Please use the Generate Mojo instead.We need to wait 3 minutes or so.Build success indicates that the project was built success
Add the following code under the Pom.xml File build node:123 45678 9Ten One A - -The user can bind any plug-in target to the stage of any life cycle as needed, such as binding the jar-no-fork target of Maven-source-plugin to the package stage of the default life cycle, so that later execution mvn Package command when packaging a project, source code packaging is performed after the packages phaseExecution can be configured un
Project object model.2, Pom.xml contains the project construction information, including the project information, project dependencies and so on.3, Pom.xml files can be inherited, large projects, sub-modules Pom.xml generally inherit from the parent module Pom.xmlThe contents of the Pom.xml file are as follows: 1 Description of the node element of the Pom.xml file:Name of the Address of the Where the GroupID, Artifactid, and version uniquely determin
This article explains the use of Maven in Eclipse, which comes with a Maven plugin in some of the higher versions of Eclipse. So this is not going to explain how to install the plugin.Next we create a Mavenfirst projectFirst, create a Mavenfirst project in EclipseFirst step: Create a MAVEN project Step two: Choose to create a Java project-->next Step three:
[Go deep into Maven source code] maven binds command line parameters to specific plug-ins and maven command line parametersMaven plugin
We know that the specific building actions of Maven are implemented by the plug-in. maven itself only provides a framework, which provides
jar packages (or DLL files), it is obviously not good, the same files on the hard disk to save multiple copies, too much space, and these dependent jar package (or DLL file) version is not very good management ( For example, a common jar package, upgrading from 1.0 to 2.0, if all the items referencing this jar package need to be updated, each item must be modified.The MAVEN repository solves these problems by creating a native repository on each mach
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.