Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

阿里云 OSS Java SDK 对 JDOM 1.1 版本的引用会阻止 maven bundle 插件工作 #75

Closed
chzhong opened this issue Mar 17, 2017 · 3 comments

Comments

@chzhong
Copy link

chzhong commented Mar 17, 2017

阿里云 OSS Java SDK 引用了 JDOM 1.1 版本(2008年9月发布)
这个依赖库由于在默认包(root package)下有类,导致 maven-bundle-plugin 打包 jar 时出错:

The default package '.' is not permitted by the Import-Package syntax

这会使得引用阿里云 Java SDK 开发者无法正常使用 maven 打包自己的 jar。

JDOM 1.1.2、1.1.3 (分别于2011年11月、2012年12月发布)移除了默认包下的类。
JDOM 最新的版本是 2.0.6,www.jdom.org 上建议更新到最新版本。(Apache Maven 上能找到的最新版本是 2.0.2)
已经确认,在 pom 文件中强制引用 1.1.3 会临时解决此问题。

建议更新 JDOM 的引用版本修正此问题,版本升级攻略 https://github.com/hunterhacker/jdom/wiki/JDOM2-Migration-Issues。

参考:
http://stackoverflow.com/questions/33395100/the-default-package-is-not-permitted-by-the-import-package-syntax
https://techotom.wordpress.com/2014/10/21/fixing-the-default-package-is-not-permitted-by-the-import-package-syntax-with-maven-bundle-plugin/

@chzhong chzhong changed the title 阿里云 OSS Java SDK 对 JDOM 1.1 版本会阻止 maven bundle 插件工作 阿里云 OSS Java SDK 对 JDOM 1.1 版本的引用会阻止 maven bundle 插件工作 Mar 17, 2017
@baiyubin
Copy link
Contributor

非常感谢您的反馈,我们正在评估JDOM的版本。

@nickfan
Copy link

nickfan commented Apr 12, 2019

@baiyubin 大概还要评估多久?2019年了。。

@huiguangjun
Copy link
Contributor

ed47fe2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants