posts - 28, comments - 27, trackbacks - 0, articles - 0
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理
1. The Maven Command:

mvn archetype:create
-DarchetypeGroupId=org.springframework.osgi
-DarchetypeArtifactId=spring-osgi-bundle-archetype
-DarchetypeVersion=1.0-SNAPSHOT
-DremoteRepositories=http://static.springframework.org/maven2-snapshots
-DgroupId=maventest
-DartifactId=maventest
-Dversion=1.0.0


2. After the project is successfully created, please add the following repositories to the POM


 
<repository>
   
<id> springframework.org </id>
   
<name>Springframework Maven SNAPSHOT Repository</name>
   
<url> http://static.springframework.org/maven2-snapshots/ </url>
 </repository>                 
                       
 
<repository>                                        
   
<id>safehaus-repository</id>                       
   
<name>Safehaus Repository</name>                   
   
<url>http://m2.safehaus.org </url>                  
 </repository> 

3. run "mvn compile", everything is ok! :-)

Thanks for the help of every guys。

只有注册用户登录后才能发表评论。


网站导航: