One of the MAVEN series is a brief introduction to MAVEN's basic information, installation and configuration, and everyone has a general understanding of MAVEN, but not enough in MAVEN project development, to learn more about MAVEN, now we introduce the creation of
Maven (III): maven project structure and running mechanism, and maven Running Mechanism
In the previous article, we talked about how to create a maven project. Now we can go back to tha
Src/test/java
Unit test Java source code files
Src/test/resources
Test the required resource pool
Src/test/filters
Test Resource Filter Library
Src/site
Some documents
target/
Store the files and directories after the project is built, jar packages, war packages, compiled class files, etc., generated by the MAVEN
Project Aggregation [, Æɡr? ') ɡe??? NHttps://maven.apache.org/guides/introduction/introduction-to-the-pom.htmlHttps://maven.apache.org/guides/mini/guide-multiple-modules.htmlModular development (aggregation of all modules in one parent POM)Use a parent pom to manage individual modules, control inter-module dependencies and build orderStart a simple demo to understand this structure1. Create a parent pom (Maven
Let's start with the catalogue of this essay.1. Introduce the difference between the environment variable path and classpath in Windows.2. May cause the command line to run Javac compile successfully, but the Java Command + is the class name of the class to be executed is invalid reason.3, introduce the structure of MAVEN project.4. There are two ways to add
Scenario: The work of the project is using MAVEN's directory structure, although the development work can be completed as scheduled, but not familiar with the configuration of a Maven project, here is mainly about the MAVEN project
In the previous Javase development, not very concerned about the Eclipse Engineering directory environment, always see a src on the point to create a new package and then write a class. In the days to come, there is no chance to notice how a project is organized and how to control it.But recently, when learning about Maven, I learned that it had a requirement for the directory
People who have used Maven know that the directory structure of the MAVEN project is somewhat different from the traditional Dynamicweb project. Of course we do the best with Maven's specs, but what if you don't exactly follow Maven's specs and just need to use
People who have used Maven know that the directory structure of the MAVEN project is somewhat different from the traditional Dynamicweb project. Of course we do the best with Maven's specs, but what if you don't exactly follow Maven's specs and just need to use
For the MAVEN-configured SPRING+MVC project, we are debugging with the Maven jetty and Tomcat plug-in, which is handy. But when it comes to debugging, the Web server that these plug-ins start, it's probably not as simple as how to start and run our project as a Web project.
Typically when you create a Javaweb project, you will more or less follow some established, more generic directory structure, and share a Javaweb project directory structure reference map based on MAVEN management:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6C
You can create the structure of an EJB project with Maven.1. Open cmd2. Enter the contentMVN Archetype:generate-darchetypegroupid=org.codehaus.mojo.archetypes-darchetypeartifactid=pom-root- Darchetypeversion=1.1-darchetyperepository=http://repo.maven.apache.org/maven2-dgroupid=com.xxx-dartifactid= Yyy-dversion=1.0-snapshot-dpackage=zzz-dbasedir=www-darchetype.int
to create a new Maven project, refer to:http://www.cnblogs.com/jifeng/p/4658765.htmlThe build web file structure is too slow, and when you proceed to the following steps: Add a parameter archetypecatalog=internal to the properties, without this parameter, will be very slow when Maven builds the skeleton, and sometimes
a MAVEN Web Project Project catalog:The directory hierarchy in the Explorer is as follows: After exporting to the war package, the directory hierarchy is: We will find that there is no such directory hierarchy as follows: So these two directory levels are just added by the IDE for us, easy to program.Java ResourceDirectory isSource Folder, the resources under the
This is the most common project structureVertical structureAlso used by beginnersAlso used in small projectsAdvantagesAll the code in one project, at a glance.Simple and easy to understand structureSmall at firstDisadvantagesAnd the drawbacks that come with it are obvious.Front-end projects, back-end projects, interface projects and other projects without common code, code will be copied and pasted, more an
Maven (maven Summary 2 of the project management tool series), maven Project Management
What is maven?
Download and install maven
Learn about mavenWarehouse
Configure
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.
maven builds Javaweb projectCreate a new MAVEN projectDefaultDefaultTo a Web project, right-click Project PropertiesAfter the turn over the folder WebContent, the webcontent under the Web-inf, Meta-inf folder copy to the Src/main/webapp directory (no directory new folder), and delete the WebContent directoryRight-click
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.