maven start project code example

Example 1: maven create project from archetype command line

mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false

Example 2: example of simple maven pom java

<properties>        <maven.compiler.release>11</maven.compiler.release>    </properties>     <build>        <pluginManagement>            <plugins>                <plugin>                    <groupId>org.apache.maven.plugins</groupId>                    <artifactId>maven-compiler-plugin</artifactId>                    <version>3.8.1</version>                </plugin>            </plugins>        </pluginManagement>    </build>

Tags:

C Example