Maven TutorialIntroduction to Maven Installation and environment configuration Maven settings Standard directory structure in Maven project command line IntelliJ IDEA Super POM and Parent POM Understanding POM.xml file Declaring maven dependencies Dependency management using repositories in Maven Adding jar file as a dependency in Maven Maven archetypes Maven build life cycle, phases and goals Generating project API documentation Generating Site documentation for a project Installing artifacts in local repository Deploying the artifact on remote repository Maven plug-ins surefire plugin compiler plugin Profiles in MavenExecuting Maven phases and goals through command prompt Maven command line optionsexec-maven-plugin usage Skipping tests in Maven Test execution report in Maven
Creating project in MavenJust fire up command prompt, create new directory and execute below command from that directory.
If everything goes fine, maven will download required resources and finally create the sample maven project in the given directory. It creates project directories as per the maven standard directory layout. Here is the sample output of above command in windows power shell. To compile the project, we can execute below command.
mvn archetype:generate -DgroupId=”org.softpost” -DartifactId=maventut -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
To execute tests from the project, we can execute below command.
Complex problems, Simple Solutions