Posted on 2006-10-31 21:41
小小凉粉 阅读(1640)
评论(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。