作者:瑞铭与我_109 | 来源:互联网 | 2023-02-05 09:03
本地建立archiva私库https:archiva.apache.orgdownload.cgi下zip包,然后进入到bin目录下使用archivaconsole
本地建立archiva私库
https://archiva.apache.org/download.cgi 下zip包,然后进入到bin目录下使用 archiva console启动。
建立parent pom
建立parent pom管理文件,pom.xml
4.0.0com.foxconn.b2bb2b-business-parent1.0.0
pomb2b-business-parentb2b业务父POM文件
UTF-8
UTF-81.82020.0.12021.13.4.3.11.2.63.0.01.2.94.6.17
org.springframework.bootspring-boot-starter-parent2.4.2
org.springframework.cloudspring-cloud-dependencies${spring-cloud.version}pomimportcom.alibaba.cloudspring-cloud-alibaba-dependencies${spring-cloud-alibaba.version}pomimportcom.baomidoumybatis-plus-boot-starter${mybatis-plus.starter.version}com.alibabadruid-spring-boot-starter${druid.starter.version}io.springfoxspringfox-boot-starter${swagger.version}com.alibabafastjson${alibaba.fastjson.version}cn.hutoolhutool-all${hutool.version}
foxconn-releasesFoxconn Nexus Release Repositoryhttp://localhost:8080/repository/internaltruealwaystruealwaysfoxconn-snapshotsFoxconn Nexus Snapshot Repositoryhttp://localhost:8080/repository/snapshotstruealwaystruealways
foxconn-releasesFoxconn Nexus Release Repositoryhttp://localhost:8080/repository/internal
foxconn-snapshotsFoxconn Nexus Snapshot Repositoryhttp://localhost:8080/repository/snapshots
foxconn-releasesFoxconn Nexus Release Repositoryhttp://localhost:8080/repository/internalfoxconn-snapshotsFoxconn Nexus Snapshot Repositoryhttp://localhost:8080/repository/snapshots
登录archiva
登录archiva,需要有upload权限
选择右侧的Upload Artifact,进行上传
通过Browse可以发现,pom文件并未上传成功
选择右侧的Upload Artifact,重现进行上传
通过Browse可以发现,pom文件上传成功
本地pom引用
4.0.0springcloud-template0.0.1-SNAPSHOT
pomspringcloud-templatetemplate for spring cloud micro-service maven project
com.foxconn.b2bb2b-business-parent1.0.0 sp-nacos-samplesp-mvc-samplefoxconn-releasesFoxconn Nexus Release Repositoryhttp://localhost:8080/repository/internaltruealwaystruealways
maven-setting设置
如果maven的setting中配置了代理,需要将远程archiva仓库路径加入nonProxyHosts中
optionaltrue
httpH7113701
fmTQW4J610.67.9.200
3128local.net|some.host.com