This will deploy any artifacts from command line without pom.xml. Here repositoryId will be the id defined in settings.xml.
mvn deploy:deploy-file -Dfile=file_FullPath
-DgroupId=*** -DartifactId=*** -Dversion=***
-Dpackaging=jar -Durl={repo_url} -DrepositoryId=releases
This command will download the artifacts from Nexus via command line.
mvn -C org.apache.maven.plugins:maven-dependency-plugin:2.4:get
-DremoteRepositories=http://<host:port>/nexus/content/repositories/Test/
-DgroupId=com.edu.test -DartifactId=testArtifact-Dversion=1.0 -Dpackaging=jar
No comments:
Post a Comment
Thank You for your valuable comment