Maven project structure

Create a “pom.xml” file

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>me.syus.myproject</groupId>
    <artifactId>MyProject</artifactId>
    <packaging>jar</packaging>
    <version>0.0.1-SNAPSHOT</version>
    <name>MyProject</name>

    <dependencies>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>26.0-jre</version>
        </dependency>
    </dependencies>

</project>

Import project to IntelliJ

Select “Import Maven projects automatically”

Create Maven Project structure

Create directories
Go to Module Setting
Rename the name of compiler output folder
Mark Sources and Tests
Create new package
Create new package
Structure
Categories: Development