Deploying the artifact in Maven

mvn 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.
 
mvn deploy

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

solutions delivered!!