获取username,password,releaseRepositoryUrl和snapshotRepositoryUrl信息
3. 配置本地settings.xml文件将下面的xml内容复制替换到本地的settings.xml文件中,在替换之前记得保存自己本地的setting.xml的副本。
修改xml中的username,password,releaseRepositoryUrl和snapshotRepositoryUrl为第二步中的内容
4. 上传jar包或pom文件到私有Maven仓库中mirror mirror http://maven.aliyun.com/nexus/content/groups/public *,!dayu-maven-releases,!dayu-maven-snapshots,!maven-dayu-common dayu-common maven-dayu-common-reader stVr5LAX4ZlOPMjf dayu-maven-snapshots username password dayu-maven-releases username password maven-dayu-common maven-dayu-common https://nexus.dayu.work/repository/maven-dayu-common true true maven-dayu-common https://nexus.dayu.work/repository/maven-dayu-common true true dayu-project dayu-maven-releases releaseRepositoryUrl true false dayu-maven-snapshots snapshotRepositoryUrl false true dayu-maven-releases releaseRepositoryUrl true false dayu-maven-snapshots snapshotRepositoryUrl false true maven-dayu-common dayu-project
执行mvn package打出来要上传的jar包通过maven deploy:deploy-file上传jar包
示例
snapshot包:(版本以SNAPSHOT结尾的传到此仓库)
mvn deploy:deploy-file -DgroupId=org.vaadin.addons -DartifactId=dcharts-widget -Dversion=0.10.0 -Dpackaging=jar -Dfile=dcharts-widget-SNAPSHOT-0.10.0.jar -DpomFile=dcharts-widget-SNAPSHOT-0.10.0.pom -DgeneratePom=false -Durl=https://nexus.dayu.work/repository/bp[替换为项目ID]-snapshots -DrepositoryId=dayu-maven-snapshots



