Posted on 2006-10-31 21:41
小小涼粉 閱讀(1645)
評論(0) 編輯 收藏 所屬分類:
容器框架
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。