å ±æã©ã¤ãã©ãªã管çããããã« Sonatype ã® Nexus Repository Manager OSS ã使ç¨ãã ( ãã®ï¼ï¼ )( Nexus ã¸ã³ã³ãã¼ãã³ããç»é²ããå°ç¨ User ãä½æãã )
æ¦è¦
- ä»åã®æé ã§ç¢ºèªã§ããã®ã¯ä»¥ä¸ã®å
容ã§ãã
- admin ã§ã¯ãªãã¢ãããã¼ãç¨ã® User ãä½æãã¦ã³ã³ãã¼ãã³ããç»é²ãã¾ãã
åç §ãããµã¤ãã»æ¸ç±
ç®æ¬¡
- ã³ã³ãã¼ãã³ãç»é²ç¨ã® Role ãä½æãã
- ã³ã³ãã¼ãã³ãç»é²ç¨ã® User ãä½æãã
- ä½æãã User ã§ã³ã³ãã¼ãã³ããç»é²ãã
- ã¡ã¢æ¸ã
æé
ã³ã³ãã¼ãã³ãç»é²ç¨ã® Role ãä½æãã
-
http://localhost:8081/ ã«ã¢ã¯ã»ã¹ã nexus ã®ç®¡çç»é¢ã表示å¾ãç»é¢å³ä¸ã®ãSign inããã¯ãªãã¯ã㦠admin / admin123 ã§ãµã¤ã³ã¤ã³ãã¾ãã
-
ç»é¢ä¸é¨ã®æ¯è»ã®ã¢ã¤ã³ã³ãã¯ãªãã¯ãã¾ãã
ç»é¢å·¦å´ã®ããªã¼ãããSecurityã-ãRolesããé¸æå¾ãç»é¢å³å´ã®ç»é¢ã®ãCreate roleã-ãNexus roleããã¯ãªãã¯ãã¾ãã
ãCreate Roleãç»é¢ã表示ããã¾ãã以ä¸ã®å¤ãå ¥åå¾ããCreate roleããã¿ã³ãã¯ãªãã¯ãã¾ããPrivileges ã«ã¯ä»¥ä¸ã®ãã®ãé¸æãã¾ãã
- nx-repository-view-maven2-maven-releases-add
- nx-repository-view-maven2-maven-releases-browse
- nx-repository-view-maven2-maven-releases-edit
- nx-repository-view-maven2-maven-releases-read
- nx-repository-view-maven2-maven-snapshots-add
- nx-repository-view-maven2-maven-snapshots-browse
- nx-repository-view-maven2-maven-snapshots-edit
- nx-repository-view-maven2-maven-snapshots-read
â»Maven2 ã® repository ã«ã³ã³ãã¼ãã³ãã追å ããã®ã«å¿ è¦ãªã®ã¯
nx-repository-view-maven2-maven-...
ã§å§ã¾ã role ã§ãã
â»ä»åä½æããã¦ã¼ã¶ã«ã¯ã¢ãããã¼ããããã³ã³ãã¼ãã³ããåé¤ã§ããªãããã«...-delete
以å¤ã® role ã追å ãã¾ãã
ã³ã³ãã¼ãã³ãç»é²ç¨ã® User ãä½æãã
ç»é¢å·¦å´ã®ããªã¼ãããSecurityã-ãUsersããé¸æå¾ãç»é¢å³å´ã®ç»é¢ã®ãCreate userããã¯ãªãã¯ãã¾ãã
ãCreate Userãç»é¢ã表示ããã¾ãã以ä¸ã®å¤ãå ¥åå¾ããCreate userããã¿ã³ãã¯ãªãã¯ãã¾ãã
- ä»åã¯åç´ã« role ã¨åãååãä»ãããã¨ã«ãã¾ãã
- Password ã«ã¯
xxxxxxxx
ãå ¥åãã¾ãã - Roles ã«ã¯ä¸ã§ä½æãããupload-componentãã ããé¸æãã¾ãã
ä½æãã User ã§ã³ã³ãã¼ãã³ããç»é²ãã
ã¾ã upload-component ã¦ã¼ã¶ã§ maven-releases 㨠maven-snapshots ã® repository ãé²è¦§ã§ããã確èªãã¾ãã
nexus ã®ç®¡çç»é¢å³ä¸ã®ãSign outããã¯ãªãã¯ãã¦ãµã¤ã³ã¢ã¦ãããå¾ããSign inããã¯ãªãã¯ã㦠upload-component ã§ãµã¤ã³ã¤ã³ãã¾ãããµã¤ã³ã¤ã³å¾ãmaven-releases 㨠maven-snapshots ã® repository ã¯ä»¥ä¸ã®ããã«è¡¨ç¤ºããã¾ããã
ksbysample-library-depend-nospring ããã¸ã§ã¯ãã§ä½æãã upload-component ã¦ã¼ã¶ã§ã¢ãããã¼ãã§ããã確èªãã¾ãã
build.gradle ã ãªã³ã¯å ã®ãã®ï¼ã®å 容 ã«å¤æ´ãã¾ãã
IntelliJ IDEA ã® Gradle projects View ã®ãRefresh all Gradle projectsããã¿ã³ãã¯ãªãã¯ããå¾ãuploadArchives ã¿ã¹ã¯ãå®è¡ãã¾ãã"BUILD SUCCESSFUL" ã表示ãããç»é²ã«æåãã¾ãã
nexus ã®ç®¡çç»é¢ã§ maven-snapshots repository ãè¦ãã¨ãksbysample-library-depend-nospring ã©ã¤ãã©ãªãç»é²ããã¦ãããã¨ã確èªã§ãã¾ãã
ãDelete componentããã¿ã³ã表示ããã¦ãã¾ãããã¯ãªãã¯ãã¦ãåé¤ã§ãã¾ããã§ããã
build.gradle ã ãªã³ã¯å ã®ãã®ï¼ã®å 容 ã«å¤æ´ãã¾ãã
IntelliJ IDEA ã® Gradle projects View ãã uploadArchives ã¿ã¹ã¯ãå®è¡ãã¾ãã"BUILD SUCCESSFUL" ã表示ãããç»é²ã«æåãã¾ãã
nexus ã®ç®¡çç»é¢ã§ maven-releases repository ãè¦ãã¨ãksbysample-library-depend-nospring ã©ã¤ãã©ãªãç»é²ããã¦ãããã¨ã確èªã§ãã¾ãã
ãDelete componentããã¿ã³ã表示ããã¦ãã¾ãããã¯ãªãã¯ãã¦ãåé¤ã§ãã¾ããã§ããã
ä»å nexus ã«ç»é²ãã 1.3-SNAPSHOT, 1.3-RELEASE ã®ã³ã³ãã¼ãã³ãã¯åé¤ããbuild.gradle ã®ä¿®æ£ãå ã«æ»ãã¾ãã
ã¡ã¢æ¸ã
ä»åã¯ããã¾ããã§ããããupload ããã³ã³ãã¼ãã³ããéå®ãããå ´åã«ã¯ãããã以ä¸ã®æé 㧠Role ãä½æããã°åºæ¥ãã¯ãããã
- Content selector ãä½æãã¾ããselector ã® Specification ã« JEXL ã§éå®ããã³ã³ãã¼ãã³ããè¨è¿°ãã¾ãã
- Privilege ãä½æãã¾ãã
- Privilege ãå²ãå½ã¦ã Role ãä½æãã¾ãã
ããã¥ã¢ã«ã¯ãã ( https://books.sonatype.com/nexus-book/reference3/admin.html#content-selectors )ã
ã½ã¼ã¹ã³ã¼ã
build.gradle
â ãã®ï¼
group 'ksbysample.library' version '1.3-SNAPSHOT' ........ uploadArchives { def nexusUrl = "http://localhost:8081" def nexusUsername = "upload-component" def nexusPassword = "xxxxxxxx" ........ }
- version ã®å¤ã
1.2-RELEASE
â1.3-SNAPSHOT
ã¸å¤æ´ãã¾ãã - uploadArchives ã¿ã¹ã¯ã® nexusUsername, nexusPassword ã
admin
âupload-component
,admin123
âxxxxxxxx
ã¸å¤æ´ãã¾ãã
â ãã®ï¼
group 'ksbysample.library' version '1.3-RELEASE' ........
- version ã®å¤ã
1.3-SNAPSHOT
â1.3-RELEASE
ã¸å¤æ´ãã¾ãã
å±¥æ´
2016/12/18
åççºè¡ã