MAVEN project structure and commands for creating MAVEN projects

Source: Internet
Author: User

Create a MAVEN Web project: MVN archetype:generate-dgroupid=packagename-dartifactid=webappname-darchetypeartifactid= Maven-archetype-webapp-darchetypegroupid=org.apache.maven.archetypes-dinteractivemode=false
Create a generic Java project for maven: MVN archetype:generate-dgroupid=packagename-dartifactid=projectname-dinteractivemode=false
MVN Eclipse:eclipse

--src
-----Main
----------Java
----------Resources
-----Test
---------Java
---------Resources

--target

--pom.xml

Src/main/java Application library Sources-java source code files
Src/main/resources Application Library Resources-Repository, automatically copied to the Classes folder
Src/main/filters Resources Filter Files-resource filtering file
src/main/assembly Assembly Descriptor-Description configuration of the component, how to package
Src/main/config Configuration Files-Profiles
Src/main/webapp Web application Sources-web application directory, WEB-INF,JS,CSS, etc.
Src/main/bin Script Library
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 build
Pom.xml Project description File
LICENSE.txt License
README.txt Read Me

MAVEN project structure and commands for creating MAVEN projects

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.