ðºÅºÍËûµÄѧÉúÃÇ£¨Á¬ÔØ24£©¡ª¡ª¶ÔÏó·â×° - ±à³ÌÈëÃÅÍø
xies>
¡¡¡¡ <proxy>
¡¡¡¡¡¡ <id>myproxy</id>
¡¡¡¡¡¡ <active>true</active>
¡¡¡¡¡¡ <protocol>http</protocol>
¡¡¡¡¡¡ <host>proxy.somewhere.com</host>
¡¡¡¡¡¡ <port>8080</port>
¡¡¡¡¡¡ <username>proxyuser</username>
¡¡¡¡¡¡ <password>somepassword</password>
¡¡¡¡¡¡ <nonProxyHosts>*.google.com|ibiblio.org</nonProxyHosts>
¡¡¡¡ </proxy>
¡¡ </proxies>
id:´úÀíµÄ±êÖ¾ active£ºÊÇ·ñ¼¤»î´úÀí protocol, host, port:protocol://host:port ´úÀí username, password£ºÓû§ÃûºÍÃÜÂë nonProxyHosts: ²»ÐèÒª´úÀíµÄhost mavenÅäÖÃƪ֮settings.xml(3)ʱ¼ä:2011-07-01 BlogJava ÏÐÈËÒ°¾ÓProfiles ÀàËÆÓÚpom.xmlÖеÄprofileÔªËØ£¬Ö÷Òª°üÀ¨activation,repositories,pluginRepositories ºÍpropertiesÔªËØ ¸Õ¿ªÊ¼½Ó´¥µÄʱºò£¬¿ÉÄÜ»á±È½ÏÃÔ»ó£¬ÆäʵÕâÊÇmaven2ÖбȽÏÇ¿´óµÄ¹¦ÄÜ¡£´Ó×ÖÃæÉÏÀ´Ëµ£¬¾ÍÊǸöÐÔÅäÖᣠµ¥¶À¶¨Òåprofileºó£¬²¢²»»áÉúЧ£¬ÐèҪͨ¹ýÂú×ãÌõ¼þÀ´¼¤»î¡£ repositories ºÍpluginRepositories ¶¨ÒåÆäËû¿ª·¢¿âºÍ²å¼þ¿ª·¢¿â¡£¶ÔÓÚÍŶÓÀ´Ëµ£¬¿Ï¶¨ÓÐ×Ô¼ºµÄ¿ª·¢¿â¡£¿ÉÒÔͨ¹ý´ËÅäÖÃÀ´¶¨Òå¡£ ÈçϵÄÅäÖ㬶¨ÒåÁ˱¾µØ¿ª·¢¿â£¬ÓÃÓÚrelease ·¢²¼¡£
releases, snapshots:ÿ¸ö²úÆ·µÄ°æ±¾µÄRelease»òÕßsnapshot(×¢£ºreleaseºÍsnapshotµÄÇø±ð£¬releaseÒ»°ãÊDZȽÏÎȶ¨µÄ°æ±¾£¬¶øsnapshot»ù±¾Éϲ»Îȶ¨£¬Ö»ÊÇ×÷Ϊ¿ìÕÕ£© mavenÅäÖÃƪ֮settings.xml(4)ʱ¼ä:2011-07-01 BlogJava ÏÐÈËÒ°¾Óproperties maven µÄproperties×÷ΪplaceholderÖµ£¬ÈçantµÄproperties¡£ °üÀ¨ÒÔϵÄ5ÖÖÀàÐÍÖµ£º env.X£¬·µ»Øµ±Ç°µÄ»·¾³±äÁ¿ project.x:·µ»ØpomÖж¨ÒåµÄÔªËØÖµ£¬Èçproject.version settings.x£º·µ»Øsettings.xmlÖж¨ÒåµÄÔªËØ java ϵͳÊôÐÔ£ºËùÓо¹ýjava.lang.System.getProperties()·µ»ØµÄÖµ x£ºÓû§×Ô¼ºÉ趨µÄÖµ Activation ÓÃÓÚ¼¤»î´Ëprofile
|
ÁèÖڿƼ¼×¨ÒµÌṩ·þÎñÆ÷×âÓᢷþÎñÆ÷Íйܡ¢ÆóÒµÓʾ֡¢ÐéÄâÖ÷»úµÈ·þÎñ£¬¹«Ë¾ÍøÕ¾£ºhttp://www.lingzhong.cn ΪÁ˸ø¹ã´ó¿Í»§Á˽â¸ü¶àµÄ¼¼ÊõÐÅÏ¢£¬±¾¼¼ÊõÎÄÕÂÊÕ¼¯À´Ô´ÓÚÍøÂç,ÁèÖڿƼ¼×ðÖØÎÄÕÂ×÷ÕߵİæȨ£¬Èç¹ûÓÐÉæ¼°ÄãµÄ°æȨÓбØҪɾ³ýÄãµÄÎÄÕ£¬ÇëºÍÎÒÃÇÁªÏµ¡£ÒÔÉÏÐÅÏ¢ÓëÎÄÕÂÕýÎÄÊDz»¿É·Ö¸îµÄÒ»²¿·Ö,Èç¹ûÄúҪתÔر¾ÎÄÕÂ,Çë±£ÁôÒÔÉÏÐÅÏ¢£¬Ð»Ð»! |