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
Deploying the artifact in Mavenmvn install command deploys the artifact to local repository. But the problem is that other developers can not access that artifact. So to make the artifact accessible by other developers, we need to deploy it to shared repository like Nexus. Below command deploys the artifact to remote repository.
Please note that you will have to provide the details of remote repository in distributionManagement tag in POM file. Otherwise, you will encounter error saying ….. Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter..
Web development and Automation testing