﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-花痴无极限，凉粉Forever-随笔分类-容器框架</title><link>http://www.blogjava.net/dearwolf/category/16762.html</link><description /><language>zh-cn</language><lastBuildDate>Sat, 03 Mar 2007 04:40:33 GMT</lastBuildDate><pubDate>Sat, 03 Mar 2007 04:40:33 GMT</pubDate><ttl>60</ttl><item><title>Spring OSGI Bundle项目的配置--修正了官方的错误</title><link>http://www.blogjava.net/dearwolf/archive/2006/10/31/78365.html</link><dc:creator> 小小凉粉</dc:creator><author> 小小凉粉</author><pubDate>Tue, 31 Oct 2006 13:41:00 GMT</pubDate><guid>http://www.blogjava.net/dearwolf/archive/2006/10/31/78365.html</guid><wfw:comment>http://www.blogjava.net/dearwolf/comments/78365.html</wfw:comment><comments>http://www.blogjava.net/dearwolf/archive/2006/10/31/78365.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/dearwolf/comments/commentRss/78365.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/dearwolf/services/trackbacks/78365.html</trackback:ping><description><![CDATA[1. The Maven Command:<br /><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">mvn archetype:create<br /></span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">DarchetypeGroupId</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">org.springframework.osgi<br /></span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">DarchetypeArtifactId</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">spring</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">osgi</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">bundle</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">archetype<br /></span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">DarchetypeVersion</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">1.0</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">SNAPSHOT<br /></span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">DremoteRepositories</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">http:</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">static.springframework.org/maven2-snapshots</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">DgroupId</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">maventest<br /></span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">DartifactId</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">maventest<br /></span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">Dversion</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">1.0</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">0</span></div><br /><br />2. After the project is successfully created, please add the following repositories to the POM<br /><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">repository</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">id</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"> springframework.org </span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">id</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">name</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">Springframework Maven SNAPSHOT Repository</span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">name</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">url</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"> http:</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">static.springframework.org/maven2-snapshots/ &lt;/url&gt;</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">repository</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">                 <br />                       <br /> </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">repository</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">                                        <br />    </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">id</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">safehaus</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">repository</span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">id</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">                       <br />    </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">name</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">Safehaus Repository</span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">name</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">                   <br />    </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">url</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">http:</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">m2.safehaus.org &lt;/url&gt;                  </span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">repository</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"> <br /></span></div><br /><div>
3. run "mvn compile", everything is ok! :-)<br /><br />Thanks for the help of every guys。</div><img src ="http://www.blogjava.net/dearwolf/aggbug/78365.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/dearwolf/" target="_blank"> 小小凉粉</a> 2006-10-31 21:41 <a href="http://www.blogjava.net/dearwolf/archive/2006/10/31/78365.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>