mavent--Learn Java not maven, how can

Source: Internet
Author: User

about Maven

maven is an open source project under Apache is pure Java development and is only used to manage Java projects.

The advantage of MAVEN is that it saves space (all the required jar packages are saved to the local repository)

Files in Maven, we only need to focus on the settings.xml file.

To configure the location of the local warehouse:

1. Maven Common Commands
Clean clears the files that have been compiled

Compile files that have the home directory compiled
Test compiles and runs the code for the test directory
Package Packaging
Install is to publish the project to the local warehouse

Tomcat:run start with one click (when the TOMCAT7 plugin is configured, use Tomcat7:run)
2. New Project

Punch here.

Environmental variables Considerations:

Directory structure

3. Import Package

4. Introduction of Plugins

<build>    <finalName>HelloWorld</finalName>    <!--Configure a number of plugins--    <plugins>        <plugin>            <groupId>org.apache.maven.plugins</groupId>            <artifactId> maven-compiler-plugin</artifactid>            <version>3.5.1</version>            <configuration>                <source>1.7</source>                <target>1.7</target>                <encoding>utf-8</ encoding>            </configuration>        </plugin>        <plugin>            <!--use TOMCAT7: Run-            <groupId>org.apache.tomcat.maven</groupId>            <artifactId> tomcat7-maven-plugin</artifactid>            <version>2.2</version>        </plugin>    < /plugins></build>

  

mavent--Learn Java not maven, how can

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.