gpt4 book ai didi

java - 如何构建 Apache Sling 9

转载 作者:太空宇宙 更新时间:2023-11-04 11:03:33 25 4
gpt4 key购买 nike

我正在尝试构建 Apache Sling 9(从项目根目录;不仅仅是启动板/构建器项目,而是所有模块)。

这是我所做的:

  1. 查看https://github.com/apache/sling (也尝试过 git://git.apache.org/sling.git)
  2. CD吊带
  3. mvn -DskipTests --update-snapshots 包(我使用的是 Maven 3.5.0)

不幸的是,我遇到了两个问题:

  • 我收到错误

    [ERROR] Unable to get artifact for Dependency {groupId=org.apache.sling, artifactId=org.apache.sling.launchpad, version=9-SNAPSHOT, type=slingfeature}: Could not find artifact org.apache.sling:org.apache.sling.launchpad:txt:slingfeature:9-SNAPSHOT in apache.snapshots ( http://repository.apache.org/snapshots )

  • 我想要构建 Apache Sling 9 中使用的源代码的精确版本,但我不知道是哪个版本

有人试过这个吗?有关如何执行此操作的任何指示?

[顺便说一句,这以前可以用,但我不记得确切的版本;当然是在 Sling 8 之后]

谢谢!

最佳答案

构建错误已在 r1811803 中修复,感谢您的报告!

对于 Sling 9 版本中包含的源,过程如下:

  • 枚举 Sling 9 Launchpad 中包含的所有 Artifact 。这可以很容易地从 the slingfeature.txt file deployed on Maven Central 获得。
  • 对于组 ID org.apache.sling 的每个 Artifact ,请从 https://svn.apache.org/repos/asf/sling/tags/${artifactId} 查看发布标签
  • 为每个 Artifact 运行 mvn install

关于java - 如何构建 Apache Sling 9,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46647058/

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