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。