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。
评论
发表评论

您还没有登录,请登录后发表评论

dearwolf
搜索本博客
我的相册
E4ad347d-0c94-3e1b-b11c-cd60a6dbc8cc-thumb
sina
共 3 张
最近加入圈子
存档
最新评论