1. The Maven Command:
2. After the project is successfully created, please add the following repositories to the POM
3. run "mvn compile", everything is ok! :-)
Thanks for the help of every guys。
- 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。
本文介绍如何使用Maven命令创建Spring OSGi Bundle项目,并添加必要的仓库到项目的POM文件中。通过运行特定的Maven命令,可以完成项目的创建。之后还需要将指定的仓库添加到项目的POM文件中,最后通过运行mvn compile来验证项目配置是否正确。
1236

被折叠的 条评论
为什么被折叠?



