>7 dependency> 8 dependencies The contents of each attribute are basically the same.Note here that the naming rules for jar packages are: artifactid-version[-classifier]. Packaging For example, the pom.xml generated jar package name above is:Maventest-0.0.1-snapshot.jar. The classifier here is optional, but some projects may also need to export some attached files, such as Javadoc,source and so on, then this place will need to confi
-help-plugins pom file and the jar file that you just downloaded in the ~/.m2/repository/org/apache/maven/plugins/maven-help-plugins/directory.MAVEN determines the location of any component in the warehouse based on a set of rules. Because Maven repositories are transparently presented to
information identifies each of the different addresses. In Shenzhen often eat takeout people should have experience, delivery of the small brother will be based on the address you fill out to you, and you fill in the address to identify the only one address.Coordinates are like each Java component's identity card. The world of Maven has a lot of Java artifacts, possibly jars, war, and possibly other things. If there is no concept of coordinates in
Here's a summary of the many ways to package a jar with idea, and later package packages can refer to the following form:
The package form with idea comes in
Package with Maven plugin maven-shade-plugin
Package with Maven plugin maven-assembly-plugin
The way to pack with idea comes in:Open idea fi
: \ Users \ chenlei. CL, which can be seen in this folder. m2 folder. By default, this folder is placed in the maven local repository. m2/Repository. All Maven components are stored in the repository for reuse. Yes ~ In the/. m2/reposi-plugin/org/Apache/Maven/plugins/Maven-help-plugins/folder, find the downloaded
] ------------------------------------------------------------------------[INFO] BUILD SUCCESS[INFO] ------------------------------------------------------------------------[INFO] Total time: 1.799 s[INFO] Finished at: 2015-10-06T19:08:08+08:00[INFO] Final Memory: 13M/156M[INFO] ------------------------------------------------------------------------
From the output, we can see that Maven will first compile before compiling and executing unit tests.ma
larger project simply introduces a jar package that takes up a considerable amount of volume, And the MAVEN project just needs a pom.xml file to get it done.
conventions better than configuration
Maven uses conventions rather than configurations, and developers don't need to care about every configuration detail. When you create a MAVEN project,
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
Create a
Maven an excellent build tool.2) Maven is not just a build tool, but also a dependency management tool and project information management tool. MAVEN provides a central repository through which you can automatically download class libraries and solve dependency problems. In addition, MAVEN has established
guarantee the stability of the build. It also avoids potential performance issues caused by the version number Control tool to handle binaries. So. I venture to say that the practice that Neal Ford has put out is out!The purpose of the private MAVEN warehouse is not limited to this, it can greatly promote the efficiency of project integration by combining its own proactive deployment and Maven's snapshot mechanism.In a modular development environment
compiled, a test file is generated under target/test-classes. Before executing the appeal processing, Maven reads Pom. xml and performs some operations, such as checking whether the dependency exists in the local repository. If the dependency does not exist, download it from the central repository. In the preceding example, Maven downloads the junit-4.7.pom and junit-4.7.jar files.
Package and run:The pack
.
There is also an added benefit to using MAVEN, which is that MAVEN has established rules for content such as project directory structure, test case naming, and so long as these mature rules are followed, users switch between projects with extra learning costs, which can be said to be better than configuration (conven
I. Class naming rules1. entity layer:Inheritance relationship: All classes are inherited from basicentity. Among them, basicentity implements the java. Io. serializable interface;Naming rules: class name = Object + class suffix, where class suffix is Bean, for example, salesorderbean2. form layer:Inheritance relationship: All classes are inherited from basicform. Because this project is based on the struts structure, baseform inherits from validatorfo
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-
also an added benefit to using MAVEN, which is that MAVEN has established rules for content such as project directory structure, test case naming, and so long as these mature rules are followed, users switch between projects with extra learning costs, which can be said to be better than configuration (convention Over
Yii2-verification rules, rules, judgment conditions, yii2-rules
I will not elaborate on the validation rules of the yii2 model for simple use. You can see what you want to see.Official website tutorialHttp://www.yiichina.com/doc/guide/2.0/structure-models#validation-rulesCommunity netizen tutorialHttp://www.yiichina.co
that you do not use the snapshot version when referencing external components. Because of its instability, it is likely that the latest version is available, and the latest version and our component failure due to inconsistent requirements.
2. parse dependency from the Repository
When the local repository does not have the required dependencies, Maven will automatically download the latest snapshot version from the remote repository. When the depend
1. If you want maven projects to depend on another maven project, the dependent project must have corresponding jar packages in the maven repository. Therefore, you must execute the mvninstall command on the dependent project. 2. Create the HelloFriend directory of the second project module and the agreed directory structure vcmRlcj01cellspacing0cellpadding0Hello
Some recent projects need to be managed by MAVEN, one of which is to add the previous Eclipse Java Project Project and Web project to MAVEN management, and another scenario is to pull the MAVEN project on SVN locally, Some of the tricky issues encountered in using eclipse, the problem process, and the solution are as follows:1. When you start eclipse after instal
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
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.