gpt4 book ai didi

java - Spring 框架 : catalina. start.osgi

转载 作者:行者123 更新时间:2023-11-29 09:17:54 25 4
gpt4 key购买 nike

我将通过本教程在实践中学习一些关于 OSGI 的知识 https://sites.google.com/site/springosgi/ch01.html

我卡在 1.3 上,当我转到“应用 > 运行”时,我发现构建失败了

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.741s
[INFO] Finished at: Tue Nov 22 23:16:54 EST 2011
[INFO] Final Memory: 3M/54M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project spring-osgi-tp: Could not resolve dependencies for project org.springframework.osgi:spring-osgi-tp:pom:1.1.3: Could not find artifact org.springframework.osgi:catalina.start.osgi:jar:SNAPSHOT-1.0 in eclipse-repository (http://repo1.maven.org/eclipse/) -> [Help 1]
[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/DependencyResolutionException

下载时出现警告

[WARNING] The POM for org.springframework.osgi:catalina.start.osgi:jar:SNAPSHOT-1.0 is missing, no dependency information available

我做了一些搜索,我发现一个线程似乎在说该人工制品在以下 repo 中

    <repository>
<id>i21-s3-osgi-repo</id>
<name>i21 osgi artifacts repo</name>
<snapshots>
<enabled>true</enabled>
</snapshots>
<url>http://maven.springframework.org/osgi</url>
</repository>

如果我注释掉有问题的依赖关系,那么它会正确构建,尽管我想随着我在教程中的进一步深入,我将需要这个包来启动 Tomcat,有没有人能在这个领域给我一些指导,因为我是相对较新的到 Spring 和 OSGi?

最佳答案

您不应该注释掉违规的依赖项。而是将上面指定的 repository 添加到您的 settings.xml 中,以便在下载依赖项时也将引用它。

此外,不确定它们是否是复制/粘贴错误,但这些行看起来很可疑。

... repository (http://repo1.maven.org/eclipse/) -> [Help 1]

这是一个无效的仓库

... start.osgi:jar:SNAPSHOT-1.0 is missing

版本号不对...

关于java - Spring 框架 : catalina. start.osgi,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8381759/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com