Maven (maven Summary 2 of the project management tool series), maven Project Management
What is maven?
Download and install maven
Learn about mavenWarehouse
Configure maven in eclipse
C
This section describes the dependency scope of Maven:
In the scope of the Pom. xml dependency label. In eclipse, there are compiling paths, Maven paths for compiling, running, and testing.
1. Scope is test, which is the test path. Most of them are JUnit jar packages.
2. the scope is compile, which is the default level and is effective during compilation and test
Install maven on Windows:
1. First check and install JDK
Run the command echo % java_home % and Java-version through the command line to view the current Java installation folder and Java version number. MAVEN requires that the JDK version number be greater than 1.4.
2. Download MavenGo to the maven download page:
]------------------------------------------------------------------------[INFO] BUILD SUCCESS[INFO]------------------------------------------------------------------------[INFO] Total time:1.088s[INFO] Finished At:tue Dec 02:56:42 CST 2013[INFO] Final memory:9m/156m[INFO]------------------------------------------------------------------------See no, even we just did not explain the interactivemode parameters, it also has a description.So, be good at using the Help plugin to find the information
Maven several concepts 1,pom (Project object model)Describe how the project builds, declares project dependencies, and so on. In the form of XML, named Pom.xml, a MAVEN project corresponds to a pom.xml. Equivalent to Ant's Build.xml file, Gradle's Build.gradle file.2, Component,Using the Maven tool, you can compile you
Maven (2)-coordinate and dependency, maven coordinate dependency
This article briefly introduces the coordinates (coodinate) and Dependency management (Dependency) in Maven)
I. Coordinates
First:
In the peoject column, there are groupId, artifactId, and version. This is the concept of coordinates in
Maven Learning (2): maven Learning
The m2eclipse plug-in was installed on eclipse in the evening, and then a small project was created using maven for testing. However, several problems occurred during the test. Now, let's briefly summarize:
The project is to add hibernate support, and then use junit to test and add a
Maven creates webapp (2) and maven creates webapp
This section describes how to use maven to create a simple webapp project under myeclipse.
The web Development maven repository automatically adds components, so you need to keep the network smooth.
Open myeclipse --> File
Some time ago to study maven, halfway because of the work of a period of time, again to see the installation process is basically forgotten. Have to look for information and then come again, will maven,artifactory and m2eclipse installation of the entire process of recording the record out, the memo. In addition, I think this information should be more suitable for MAVE
Ensure the TOMCAT7 configuration is complete. Install M2eclipse plug-in;Here are the specific ways to use it:
TOMCAT7 User and Permissions configuration: In the Conf directory, locate Tomcat-users.xml, add Manager permissions to the user. Here I have used the permissions are added to the Admin user, the specific code is as follows:"Admin-gui"/>"Admin-script"/>"Manager-gui"/>"Manager-script"/>"MANAGER-JMX"/>"Manager-status"/>"Admin"password="Password"roles="Manager-gui,manager-script,manager-
The Maven repository has few knowledge points and is easy to understand.
There are only two types of warehouses: Local warehouses and remote warehouses. The local repository is the repository on your machine and is configured in the setting. xml file:
1
The local repository stores the dependencies downloaded from the remote repository and some self-installed builds when Maven is used to parse the project.
above. 2. Dependency Management is the ability to manage the dependencies between jar packages, and the relationship between jar packages in dependency graph in the pom file of the MAVEN project in MyEclipseis not feeling very good look!!! second, maven download 2.1myeclipse comes with Maven4myeclipse MyEclipse's own
Maven authoritative guide Study Notes (2) posted by Ryan on 2010/05/02 leave
A comment (0) Go
To comments
POM
Pom is a descriptive statement of a Maven project. It is also a "map" that you need to understand when building a Maven project"
We have determined that POM is descriptive and declarative. It does no
PrefaceThis document uses the link method instead of installing the Maven plug-in online. LinkTo facilitate the management of Eclipse plug-ins, so that a lot of things are not stored in the plugins directory.The author's eclipse version isIndigo Release, Eclipse Java ee ide for Web Developers.1. DownloadMaven 2Apache Official Website: http://maven.apache.org/download.html, select the latest Maven 2.0.11 bin
does not exist in the local repositoryNoSearch for these remote repositories.
How to configure remote repository for plug-ins
Use
The remote repository configuration of the plug-in built in Maven is as follows: it disables support for snapshot to prevent unstable building.
Simple Configuration:
1.2 omit the groupid Configuration:
Maven provides a simple configuration policy for its official plug-ins.
, right-click to run Maven Build The following results show that build succeededThen we choose Install run to packageWhen packaged successfully, the following results appear, showing the storage directory of our War packagesAfter that, we will generate the target file We configured in our project directory.We copy the War package under Tomcat under the WebApps directory and run the Tomcat serverIn the browser input URL display Helloword http://local
Start from scratch based on MAVEN build Springmvc+mybatis project (2)Tags: javamavenmybatisspring mvcCopyright NOTICE: Welcome Reprint, Reproduced please keep the original link.Following the above, this section describes the aggregation and inheritance of maven.Read the portal from the beginningIn the internet age, software is becoming more and more complex, and developers often divide the software into mod
new MAVEN profile address, the system will automatically identify our new local warehouse location, click Apply, click OKAfter configuring OK in the previous step, we right-click on the Item-maven-update project, force update is mandatory updateThis time the tool will download the required jar to the local repository according to Pom.xml from the public repository, as shown in the download completeTo compl
First, build MAVEN project:
1, first build directory D:\maven_test\maven\03
2, switch to the directory, run MVN archetype:generate command to create the project skeleton, will prompt: ' groupId ': input: Cn.edu.zttc.hello;
' Artifactid ': input: Hello-third;
' Version ': 1.0-snapshot:: input: 0.0.1SNAPSHOT;
' Package ': Input: Cn.edu.zttc.hello::
Enter the ' Y '
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.