我正在尝试使用maven 3.1.1在Windows 7 64位下安装GraniteDS示例项目
我正在按照发布的教程:
https://github.com/graniteds-tutorials/graniteds-tutorial-data
转载步骤:
安装maven 3.1.1(提取二进制zip并创建M2_HOME,M2 变量并将“%M2_HOME%\ bin”添加到PATH)
安装git 1.8.5.2 for windows
运行git shell,然后执行:
cd c:\dev\ws_flex\fb4.7
git clone http://github.com/graniteds-tutorials/graniteds-tutorial-data.git
cd graniteds-tutorial-data
mvn clean install asciidoctor:process-asciidoc -Dserver=spring -Dclient=air
我正在犯错误:
[ERROR] Failed to execute goal on project tutorial-data-server-model: Could not
resolve dependencies for project org.graniteds.tutorials:tutorial-data-server-mo
del:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: org.granite
ds:granite-server:jar:3.0.0.SNAPSHOT, org.graniteds:granite-server-hibernate4:ja
r:3.0.0.SNAPSHOT, org.graniteds:granite-server-eclipselink:jar:3.0.0.SNAPSHOT, o
rg.graniteds:granite-server-openjpa:jar:3.0.0.SNAPSHOT: Could not find artifact
org.graniteds:granite-server:jar:3.0.0.SNAPSHOT -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
n project tutorial-data-server-model: Could not resolve dependencies for project
org.graniteds.tutorials:tutorial-data-server-model:jar:1.0-SNAPSHOT: The follow
ing artifacts could not be resolved: org.graniteds:granite-server:jar:3.0.0.SNAP
SHOT, org.graniteds:granite-server-hibernate4:jar:3.0.0.SNAPSHOT, org.graniteds:
granite-server-eclipselink:jar:3.0.0.SNAPSHOT, org.graniteds:granite-server-open
jpa:jar:3.0.0.SNAPSHOT: Could not find artifact org.graniteds:granite-server:jar
:3.0.0.SNAPSHOT
and more...
和一些调试警告
[DEBUG] Could not find metadata org.graniteds:granite-server:3.0.0.SNAPSHOT/mave
n-metadata.xml in local (C:\Users\devel\.m2\repository)
[DEBUG] Could not find metadata org.graniteds:granite-server:3.0.0.SNAPSHOT/mave
n-metadata.xml in local (C:\Users\devel\.m2\repository)
[WARNING] The POM for org.graniteds:granite-server:jar:3.0.0.SNAPSHOT is missing
, no dependency information available
以及更多......
我绝对是maven的新手。我会很高兴得到任何帮助
答案 0 :(得分:0)
解决。刚刚将3.0.0.SNAPSHOT替换为server-model / pom.xml中的3.0.0.GA(仅限org.graniteds。*工件)。 请参阅maven存储库: