Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用dspace的maven包问题_Maven_Dspace - Fatal编程技术网

使用dspace的maven包问题

使用dspace的maven包问题,maven,dspace,Maven,Dspace,我正在为MLIS的学生教授DSpace,当我给出mvn包时,我得到以下错误(附文件) 我尝试使用以下一组文件在Windows 7上安装DSpace。在过去我已经成功过好几次了。由于我们无法在计算机实验室升级操作系统,这次我也不得不教授同样的安装 jdk1.6.0_38, apache-ant-1.9.2, apache-maven-3.0.5, apache tomcat 7.0, dspace-3.2-src-release. 请帮我解决 错误日志文件: C:\dspace\dspace-3

我正在为MLIS的学生教授DSpace,当我给出
mvn
包时,我得到以下错误(附文件)

我尝试使用以下一组文件在Windows 7上安装
DSpace
。在过去我已经成功过好几次了。由于我们无法在计算机实验室升级操作系统,这次我也不得不教授同样的安装

jdk1.6.0_38,
apache-ant-1.9.2,
apache-maven-3.0.5,
apache tomcat 7.0,
dspace-3.2-src-release.
请帮我解决

错误日志文件:

C:\dspace\dspace-3.2-src-release\dspace>mvn package
[INFO] Scanning for projects...
Downloading: http://oss.sonatype.org/content/repositories/releases/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Downloading: http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.dspace:dspace:3.2 (C:\dspace\dspace-3.2-src-release\dspace\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for org.dspace:dspace-parent:3.2: Could not transfer artifact org.sonatype.oss:oss-parent:pom:7 from/to sonatype-releases
(http://oss.sonatype.org/content/repositories/releases/): peer not authenticated and 'parent.relativePath' points at wrong local POM @ org.dspace:dspace-parent:3.2, C:\dspace\dspace-3.2-src-release\pom.xml, line 17, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
C:\dspace\dspace-3.2-src-release\dspace>

我不知道你在做什么。我想你下载了src发行版fom并执行了mvn包?这似乎很有效。日志中对您不起作用的链接似乎起作用(但maven 2.6和java 11除外)。贵公司是否有需要使用的代理?还是存储库代理?看一看“mvn帮助:有效设置”-可能其中有些内容太旧了。您遇到的问题是您通过http而不是https访问存储库…此外,我不明白您为什么要访问oss.sonatype部分。。。亲爱的Wemu,当我在maven文件夹中用我们的机构代理更正settings.xml中的代理设置时,同样的一组文件对我有效。现在只有它给出了这个错误。