install
mvn install:install-file -Dfile=<path-to-your-jar-file> \
-DgroupId=<your-group-id> -DartifactId=<your-artifact-id>\
-Dversion=<your-version> -Dpackaging=jar
deploy
URL=https://nexus.xxxx.com
REPOSITORY_ID=serverId
FILE=chromeinspector.jar
GROUP_ID=org.graalvm.tools
ARTIFACT_ID=chromeinspector
VERSION=23.1.2-SNAPSHOT
mvn deploy:deploy-file -Durl=$URL/repository/maven-snapshots/ -DrepositoryId=$REPOSITORY_ID \
-Dfile=$FILE -DgroupId=$GROUP_ID -DartifactId=$ARTIFACT_ID -Dversion=$VERSION -Dpackaging=jar
其中serverId
需要在maven
的settings.xml
中配置:
<server>
<id>serverId</id>
<username>deploy</username>
<password>password</password>
</server>