梅文 + Flexbuilder 工件源和 javadoc 附件

发布于 2024-11-30 02:08:23 字数 824 浏览 2 评论 0原文

今天我带着一个有趣的挑战来到你们这里。

我有一个 ma​​ven+flexbuilder 项目,它依赖于外部工件。

这是通过以下声明指定的:

<dependency>
    <groupId>com.abc.commons</groupId>
    <artifactId>commons-abc-client</artifactId>
    <version>${commons.abc.version}</version>
    <type>swc</type>
</dependency>

commons-abc-client 部署到外部版本存储库,并且在 AS 开发人员的本地环境中不可用。

使用以下命令将该工件部署到远程存储库:

mvn clean source:jar javadoc:jar deploy

如果我运行,

mvn eclipse:clean flexmojos:flexbuilder -DdownloadSources=true -DdownloadJavadocs=true

则正确生成了对 commons-abc-client 的依赖项(指向下载到本地存储库版本),并且它显示源已附加。

尝试打开 commons-abc-client 中的任何源都会引发错误。看起来好像它是从 SWC 内部而不是附加的 jar 中查找资源。

关于解决方法有什么想法吗?

I come to you today with an interesting challenge.

I have a maven+flexbuilder project that has a dependency on an external artifact.

This is specified with the following declaration:

<dependency>
    <groupId>com.abc.commons</groupId>
    <artifactId>commons-abc-client</artifactId>
    <version>${commons.abc.version}</version>
    <type>swc</type>
</dependency>

The commons-abc-client is deployed to an external releases repository, and is not available on the local environments for the AS developers.

The artifact is deployed to the remote repository using the followind command:

mvn clean source:jar javadoc:jar deploy

If I run

mvn eclipse:clean flexmojos:flexbuilder -DdownloadSources=true -DdownloadJavadocs=true

The dependency to commons-abc-client is properly generated (pointing to the downloaded-to-the-local-repo version) and it shows that the source is attached.

Trying to open any of the sources in the commons-abc-client throws an error. It seems as if it is looking the resources from inside the SWC and not in the attached jar.

Any ideas on work arounds?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文