梅文 + Flexbuilder 工件源和 javadoc 附件
今天我带着一个有趣的挑战来到你们这里。
我有一个 maven+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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论