`
dearwolf
  • 浏览: 339359 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Spring OSGI Bundle项目的配置--修正了官方的错误

阅读更多
1. The Maven Command:

 
  1. mvn archetype:create  
  2. -DarchetypeGroupId=org.springframework.osgi  
  3. -DarchetypeArtifactId=spring-osgi-bundle-archetype  
  4. -DarchetypeVersion=1.0-SNAPSHOT  
  5. -DremoteRepositories=http://static.springframework.org/maven2-snapshots  
  6. -DgroupId=maventest  
  7. -DartifactId=maventest  
  8. -Dversion=1.0.0  


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

 
  1. <repository>    
  2.    <id> springframework.org</id>    
  3.     <name>Springframework Maven SNAPSHOT Repository</name>    
  4.     <url> http://static.springframework.org/maven2-snapshots/</url>    
  5.  </repository>                     
  6.                            
  7. <repository>                                            
  8.     <id>safehaus-repository</id>                           
  9.     <name>Safehaus Repository</name>                       
  10.     <url>http://m2.safehaus.org</url>                      
  11. </repository>    

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

Thanks for the help of every guys。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics