当前位置: 首页 > news >正文

一个网站空间可以做多少个网站单品网站模板

一个网站空间可以做多少个网站,单品网站模板,旅游网站开发数据库,文创产品设计案例及理念maven nexus私服搭建 访问nexus3官方镜像库#xff0c;选择需要的版本下载#xff1a;Docker Nexus docker pull sonatype/nexus3:3.49.0 创建数据目录并赋权 sudo mkdir /nexus-data sudo chown -R 200 /nexus-data 运行(数据目录选择硬盘大的卷进行挂载) …maven nexus私服搭建 访问nexus3官方镜像库选择需要的版本下载Docker Nexus docker pull sonatype/nexus3:3.49.0 创建数据目录并赋权 sudo mkdir /nexus-data sudo chown -R 200 /nexus-data 运行(数据目录选择硬盘大的卷进行挂载) docker run -d -p 8081:8081 --name nexus --restartalways -v /etc/localtime:/etc/localtime:ro -v /nexus-data:/nexus-data sonatype/nexus3:3.49.0 访问http://127.0.0.1:8081/ 默认管理员登录账号密码admin/yourpasswd 初始访问会要求输入密码账号是admin密码在数据目录下nexus-data/admin.password输入密码后开始配置,然后会要求输入新的密码。接下来的匿名登录这步根据实际来方便的情况下允许需要更新安全则不允许即可。 配置Maven Nexus私服 创建角色 通过设置--Roles--Create Roles创建一个开发者角色赋予的权限如图所示如需要其他权限修改角色权限即可。 默认的管理员和匿名登录角色保留即可。 创建用户 默认会有一个管理员用户和一个匿名登录用户我们可以根据实际需要添加开发者用户对应上面创建的开发者角色。 配置代理仓库 添加一个阿里的maven2 proxy直接在repositories列表上点击创建repository然后选择maven2 proxy。 创建成功后再次进入修改此代理界面发现URL显示是我们内网的地址了也就是我们可以通过http://127.0.0.1:8081/repository/nexus-aliyun/ 这个内网的地址通过maven私服去下载镜像。  阿里maven私服代理地址http://maven.aliyun.com/nexus/content/groups/public/ 公共仓库添加代理仓库 参考下图直接将创建好的代理仓库添加到maven-pulic即可。 setting.xml maven配置文件配置私服  配置文件参考如下注意修改localRepository本地仓库地址。 ?xml version1.0 encodingUTF-8?settings xmlnshttp://maven.apache.org/SETTINGS/1.0.0 xmlns:xsihttp://www.w3.org/2001/XMLSchema-instance xsi:schemaLocationhttp://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsdlocalRepositoryC:\User\xxx\.m2\repository/localRepositoryinteractiveModetrue/interactiveModeofflinefalse/offlinepluginGroupspluginGrouporg.mortbay.jetty/pluginGrouppluginGrouporg.jenkins-ci.tools/pluginGrouppluginGrouporg.sonatype.plugins/pluginGroup /pluginGroupsserversserveridmaven-releases/idusernameyourusername/usernamepasswordyourpasswd/password/serverserver idmaven-snapshots/idusernameyourusername/usernamepasswordyourpasswd/password/server/serversmirrorsmirroridmaven-public/idnamemaven-public/namemirrorOf*/mirrorOfurlhttp://127.0.0.1:8081/repository/maven-public//url/mirror/mirrorsprofilesprofileidnexus/idactivationactiveByDefaultfalse/activeByDefaultjdk1.8/jdk/activationrepositoriesrepositoryidcentral/idurlhttp://127.0.0.1:8081/nexus/content/groups/public//urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/repository/repositories pluginRepositoriespluginRepositoryidcentral/idurlhttp://127.0.0.1:8081/nexus/content/groups/public//urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/pluginRepository/pluginRepositories/profile/profilesactiveProfilesactiveProfilenexus/activeProfile/activeProfiles/settings配置项目pom.xml 配置项目的pom.xml打包时将jar包上传到私服 pluginsplugingroupIdorg.apache.maven.plugins/groupIdartifactIdmaven-compiler-plugin/artifactIdversion3.8.1/versionconfigurationtarget1.8/targetsource1.8/sourceencodingUTF-8/encodingskiptrue/skip/configuration/pluginplugingroupIdorg.apache.maven.plugins/groupIdartifactIdmaven-deploy-plugin/artifactIdversion2.7/version/plugin /plugins 配置distributionManagement distributionManagementrepositoryidmaven-releases/idurlhttp://127.0.0.1:8081/repository/maven-releases//url/repositorysnapshotRepositoryidmaven-snapshots/idurlhttp://127.0.0.1:8081/repository/maven-snapshots//url/snapshotRepository/distributionManagement 修改发布策略 默认情况下对于release版本的项目是不允许重复发布的为了方便我们修改配置允许重复发布。 发布项目版本到maven nexus私服 执行以下指令即可发布到私服 mvn deploy 登录到nexus查看我们的发布的项目已在私服这时其他开发人员可以直接从私服更新所需的jar避免所有开发人员需要所有源码进行本地安装。
http://www.hkea.cn/news/14450058/

相关文章:

  • 网站的建设与维护步骤佛山营销型网页设计
  • 郑州公司网站2014苏州建设银行招聘网站
  • 哪些网站可以做招商广告酷家乐网站做墙裙教程
  • asp 网站模板如何选择邯郸做网站
  • 做科普网站网站租用服务器多少钱
  • 网站模板后台ui设计培训机构好
  • 搭建网站用什么软件免费空间申请哪个好
  • 自己做一个网站难么加盟投资好项目
  • 冯提莫斗鱼前在哪个网站做直播石家庄正定新区建设局网站
  • 中国工商做年报网站专做男装的网站
  • dns上国外网站wordpress 在线skype
  • 网站建设步骤大全新东方烹饪学校
  • 海南省住房和城乡建设官方网站关键词优化多少钱
  • 池州最好的网站建设电子商务主要就业方向
  • 美食网站黑米如何做学习网页制作的网站
  • 高质量的丹阳网站建设代理网址在线
  • 网站代码语法在线玩游戏
  • 站长工具怎么关掉网页托管服务是什么
  • angular2.0网站制作免费又好用的wordpress模板
  • 营销型网站的类型有哪些织梦网站制作费用
  • 网站的系统帮助桥东企业做网站
  • 专业教学资源库网站建设工作公司官网介绍
  • 网站专做盗版小说 会犯法吗给个网站能用的2022
  • 建立公司企业网站租网络服务器多少钱
  • 网站系统的设计与实现263云通信企业邮箱
  • 网站如何在手机上显示wordpress固态链接
  • 做引流去那些网站好黄页营销网站
  • 建设好学校网站宠物网站开发与实现结论
  • 莱芜网站优化滨湖网站建设
  • 黄岩区信誉好高端网站设计创手机网站