5/15/2023 0 Comments Ansible untar![]() ![]() Note: The "repositoryId" parameter is not a Nexus repository ID, it is the ID of a server section in your settings.xml file which has then credentials needed for deployment. This plugin goal also allows deployment of snapshot versions, and the plugin will take care of calculating the timestamped version needed: mvn deploy:deploy-file -DgroupId=com.somecompany -DartifactId=project -Dversion=1.0.0-SNAPSHOT -DgeneratePom=true -Dpackaging=jar -DrepositoryId=nexus -Durl= -Dfile=target/project-1.0.0-SNAPSHOT.jar With a pom file: mvn deploy:deploy-file -DgeneratePom=false -DrepositoryId=nexus -Durl= -DpomFile=pom.xml -Dfile=target/project-1.0.0.jar You can deploy files using the "deploy-file" goal on the Maven deploy plugin.Įxample without a pom file: mvn deploy:deploy-file -DgroupId=com.somecompany -DartifactId=project -Dversion=1.0.0 -DgeneratePom=true -Dpackaging=jar -DrepositoryId=nexus -Durl= -Dfile=target/project-1.0.0.jar Using curl you can do this with: curl -v -u admin:admin123 -upload-file pom.xml Maven "deploy-file" Deployment You can do an HTTP PUT of a file into /content/repositories//. (See this article for Nexus Repo 3) Direct Deploy ![]() There are several ways to upload artifacts into Nexus Repo 2 without running a build. ![]()
0 Comments
Leave a Reply. |