Android 搭建自己的nexus maven服务器

所需积分/C币:19 2017-07-20 15:02:44 8.5MB PDF

3.3.1-2
NCXus Repository Manager非 e昌m Rep。 Stories L Dlob scree Create repos tory Fiter E Repositories ce Content Sel 园日 Name↑ For时t Health cheek Orline Privilege Aven? Online s, Roles 00 maven2 codY Anonymous Online- Ready to Connect maver-publIc w Realms LSSL Certificates f-srapshots maven2 St pport CodY Ha Analytics sgroup group coDy I Legging nuget-hosted c N -og View Online- Ready to Connect Bcos Anayze mEtrics 9 Sysem Ir formation □ Nall server D Licensing Nodes Nexus Repository Manage 6昌 min C Sign out Repositories/e Select Recipe s e ower(group e ower(osted D Privileg E anwer(army) Users g dorker hester e maven2(oii s maven (ostad Support 四 Analytics 口 Logging 9 npm(hosted) FLog Veer mEtres g nuget(group) g System Information sYstem rory pyp (groupl 63 Capabilities 区 Emai Server s ypi(proxy) 学HTTp group) B Recent Conections B raw (proxy) 图 Nodes 我们进行操作的时候,其实最主要的还是 maven-releases和 maven- snapshots两 个仓库,这只是一个 Deployment Policy部署协议上的区别 maven-releases上的是 Disable Redeploy(不允许重复部署),意思就是部 署上去的就是正式版本的库,如果之后更新ib只能以更新版本号的形式操作。 maven-snapshots则是 Allow Redeploy(允许重复部署),顾名思义,就是不 需要更新版本号,只要 grouped, artifact, version相同就可以进行覆盖。 s Repositories/B Select Recipe/ B Create Repository: maven 2 (group) L Blob sores A Unique gentner tcr this repository tO Content selectors Online: if checked, the repository accepts icam a Security Storage 3 Rol C Users Blo store used to assEt coents R AuIylIuuS Strict Content Tyoe validation: Validate : hat all contant uploaded to this repository is of a M me typE appropiate fcr the repashory fomat a SSL Certificates x Suport Analytes Member repositories: lect and order he repositories that are part cf this croP I Support ZIP RHer g Systen Information com. android p Bundles calas 曰 mail Server maven central H Http E Licensing C Recent Connections A Tasks Create repository Cancel 三、上传配置 拷贝我们添加的仓库地址 c。 admIn C> SIg gn out 目 Repositories Ma lage reyusiluri lo Store (o Content selectors Name↑ Status Health check a Secutity e comandroid Copy to clipboard: 88+C, Enter Ecop a Privileges g garay Roles htp: /27001: BO81renositnry' maven- relase Clase A Anonym maven-certra copy Realms L SSL Cortificatos 日 maven-releases maver 2 Online sUPport E Analytics groUp I Loggin E Log Voer sh nuge org-praxy DOXy line - Ready to Metrics I Support ZIP 3 System Informat e Bundles ka CapabiliTies □ Emal Server ea P C Recent Connections 国 Nodes O Tess 在 build gradle下进行如下配置 白國(++⑥四R中中〈C甲2》+mDg的②t2? C test demo C tula. gride e am tst dama" C Funrthnall hay e MainAcmvrv java .ruston buildscript dependencies t c lasspath ' com, and oid, tools. burIc: gradle: 2.3.1 licd Lion dependencies he 15 yallproject Lhttp://127,0.0.1:8081/repository/godfery" 22 task clean(type: Delete)[ 上午1147Gd| le sync started 干1147 Grad!e sync complete3 9 TCDO 5: Android Manitcr 9: Version Control B. Teminal+ Gradle \ iew 在 build. gradle( libiary)代码未尾添加如下 upload Archives t configuration configurations archives repositories maven Deployer snapshotRepository(url: MAVEN_SNAPSHOT_URL) authentication(userName: NEXUS_USERNAME, password NEXUS_ PASSWORD) repository(url: MAVEN_URL)( authentication(user Name: NEXUS_USERNAME, password NEXUS PASSWORD) om project version NEXUS VErsion artifactld ArtifAct ID grouped GROUP_ID packaging TYPE description DESCRIPTION artifacts i archives file('FunctionalLibrary. aar) 如以D③双白中人EP 静m日m百vF山52A? Gradte ties have changed since last project sync, A project sync may be necessary for the IDE to work properly. configurations, archives hotReposito ne: NEXUS_ USERNAME, password: NEXUS_PASSWORD) repository(urL: MAVEN_URL) t DESCRIPTION 必须是brzy项目名称 60 artifacts 11: 47 Gradle sync started 上午1147 Gradie sync complete 9 TODO M 5:Android Manncr 3 2: version Control tEminal Gradie view 在 gradle. properties中代码末尾添加 ⑤四员中中〈 6点1,上动 I iral amperes e serlings grare camp e meet remo x C Funrthnall hray r e Min Artvin javax erustonFdrt intenerjaa x nctionalubrary Gradle fies have changed since last pra ect sync. A project syrc may be necessary tor the IDE to work propert Sync No Liuyi e used with decoupled projects. More detalls, visit htilhsec: decoupled projects tp://127.0.0. 1: 8081/ repository/godfery/ ERSION:1.0.20 GROUP ID-com android DESCR1PTCN=修改 zxing包为code-3,1,B 上午1147Gd| le sync started 干1147 Grad!e sync complete3 9 TCDO 5: Android Manitcr 9: Version Control B. Teminal+ Gradle \ iew Loc Gradle Console 然后就可以上传啦 四、上传ar到 maven服务器 在 Gradle projects中点击我们的 library项目,找到 upload下 upload Archives 就可以上传到我们的服务器了 R中〈C甲+卷Dga24? ②÷1-FD9a=p Dlecdl-proporuesw Osttings-gradex C app 0 test dama w C Functional brary a,i Radia files have changed since last pro ect sync, A project sync may be necessary for tha IDE to work proper. Syr used with decoupled arts. More detalls PshOt_ url=htTp://127.0.0, 1: 8081/repository/godfery/ Seumas gradle ERNAME=admin a.0. 1: 8081/repository/godfery/ ERSTON-1,0.22 29 ARTIFACT ID-yodfery 投为aar 述信息 ICN=修改ZX1ng包为code-3,1.0 FFll: 47 Gradle sync complete R TODO# 5: Android Monitor 3 2: Version Control B Terminal Cradle Wew 五、使用 、然后向我们往常一样,在buid. gradle配置了如下信息 白圆仍+的①四员中中人口甲”p+卷Dg的围2?以 C test demo C tula. gride buildscript dependencies t c lasspath ' com, and oid, tools. burIc: gradle: 2.3.1 15 yallproject Lhttp://127,0.0.1:8081/repository/godfery" 22 task clean(type: Delete)[ 上午1147Gd| le sync started 干1147 Grad!e sync complete3 9 TCDO 5: Android Manitcr 9: Version Control B. Teminal+ Gradle \ iew 然后我们在自己的 maven服务器上看到自己的上传的对应自己的版本加版本号即 可 compile 'com. android: godfery: 0.0.1 就可以使用了

...展开详情
img
Godery
  • 签到新秀

    累计签到获取,不积跬步,无以至千里,继续坚持!
  • 技术圈认证

    用户完成年度认证,即可获得

关注 私信 TA的资源

上传资源赚积分,得勋章
最新资源