|
mac °²×°ÅäÖÃnexus3.0 ½ñÌìÅäÖÃjava »·¾³£¬°²×°nexus °Ù¶ÈÁ˺þòŰ²×°ºÃ£¬ËùÒÔÌØ±ðдÏÂÀ´ ·ÖÏí¸øÍ¬ÑùÓöµ½ÎÊÌâµÄÄã¡£
/ M7 o, B! o" Z5 U: B4 ~·Ï»°²»¶à˵£¬Ö±½ÓÉϲ½Öè ǰÖÃÌõ¼þ £ºÒѾ°²×°ÁËJDK 2£º½âѹÏÂÔØÎļþ£¬ÕâÀïÎÒ·ÅÔÚÁË/Users/andy/nexus-3.0.0-03-mac/nexus-3.0.0-03Õâ¸öĿ¼Ï ÅäÖÃÐ޸ģº
8 O: i( X3 j5 n1£ºÔÚNexusµÄ°²×°Ä¿Â¼ÕÒµ½/bin/nexus
9 }$ `( E) v& X$ v2£ºÊ¹ÓÃÎı¾±à¼Æ÷´ò¿ªnexus
/ z( ?" j* R0 ~3£ºÐÞ¸Änexus Îļþ £¬ÉèÖÃnexus °²×°µÄ¸ù·¾¶ ÈçÎÒµÄÐ޸ģº NEXUS_HOME="/Users/andy/nexus-3.0.0-03-mac/nexus-3.0.0-03";
( N+ Q7 u4 Q0 g1 _; {* LÒÔÉÏÈý²½£¬ÅäÖþÍÍê³ÉÁË£¬µ±È»»¹ÓÐһЩÆäËûµÄÅäÖã¬Ä¿Ç°Óò»ÉÏ£¬ÔÝʱ¾Í²»ÐÞ¸ÄÁË£¬½ÓÏÂÀ´¿ÉÒÔÆô¶¯¿´¿´ÊÇ·ñ³É¹¦ ÔËÐа²×°Ä¿Â¼ÏÂ/binÏÂÃæµÄNexusÃüÁ¼´¿ÉÆô¶¯Nexus£º /Users/andy/nexus-3.0.0-03-mac/nexus-3.0.0-03/bin/nexus start
! _0 _- G5 f) a3 I0 h8 e1 C Nexus°²×°Íê³ÉÒԺ󣬳ɹ¦Æô¶¯·þÎñÒԺ󣬴ò¿ªä¯ÀÀÆ÷£¬ ÊäÈ룺 http://localhost:8081/nexus/ Èç¹ûÄܳɹ¦·ÃÎÊ¡£Ôò˵Ã÷°²×°³É¹¦ÁË¡£
" ]6 e+ d v( c& q2 {+ T" K# Oµ½ÕâÀïneuxsµÄ°²×°ÅäÖþÍÍê³ÉÁË£¬ÏÂÃæ½éÉÜÈçºÎÔÚmavneÖÐʹÓÃ×Ô¼ºµÄ˽·þ¡£ nexus3.0 ¸ú2.0°æ±¾²Ù×÷ÆðÀ´ÓбȽϴóµÄÇø±ð£¬Ò»¿ªÊ¼Ò²²»Ì«»á£¬×îºó¿´Á˹ÙÍøµÄ½éÉÜ£¬²ÅÅäÖÃÆðÀ´
9 l8 ^% d) u V0 U1£º´ò¿ªmaven µÄ°²×°Ä¿Â¼ £¬±à¼ settings.xml 2£ºÅäÖÃÏÂÔØÎļþ±£´æÂ·¾¶£¬ ÕâÀïÒ²¿ÉÒÔʹÓÃĬÈϵ쬲»ÓÃÅäÖà <localRepository>/Users/andy/chen/repository</localRepository>3£ºÅäÖþµÏñ <mirrors> <mirror> <id>nexus</id> <mirrorOf>*</mirrorOf> <url>http://localhost:8081/repository/maven-public/</url> </mirror> </mirrors>4£ºÉèÖÃÖÐÑ빤³§ <profiles> <profile> <id>nexus</id> <!--Enable snapshots for the built in central repo to direct --> <!--all requests to nexus via the mirror --> <repositories> <repository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles>5£º¼¤»îÉèÖà <activeProfiles> <!--make the profile active all the time --> <activeProfile>nexus</activeProfile> </activeProfiles>
- @# K8 u2 z) v' T0 q5 m# aÕâÑù maven+ nexus ÒѾÉèÖÃÍê³ÉÁË£¬Ö»ÐèÒªÔÚeclipse ÖÐÌí¼Ómaven ÉèÖþÍOK ÁË¡£ |