easyexcel icon indicating copy to clipboard operation
easyexcel copied to clipboard

支持Native-Image以及优化建议

Open pipinet opened this issue 2 years ago • 9 comments

在使用Spring Native和非Spring项目的Native的时候,在打Native包的时候会失败,大部分问题都集中在poi和ehcache的使用上,同时还发现了一些依赖方面的可调整的方面,,所以建议做如下修改来处理这些问题。 1、将easyexcel core对于spring的依赖去除,使用扩展的方式引入。 2、将easyexcel core对于ehcache的依赖去除,使用扩展的方式引入。 3、目前与poi的版本差距挺大的,建议将poi升级,若存在兼容性的问题可以使用多个版本的适配扩展包来实现。 4、然后,适配目前native过程中的问题。

不知道这些想法是否符合easyexcel的发展,这些建议是否符合easyexcel的初衷。

pipinet avatar Dec 06 '22 01:12 pipinet

  • Resolved at https://github.com/oracle/graalvm-reachability-metadata/pull/124 .

linghengqian avatar Dec 07 '22 00:12 linghengqian

您好,请问目前是在尝试支持native-image吗?我也遇到了相同的问题 @linghengqian

Q11shiyi avatar Feb 20 '23 08:02 Q11shiyi

@Q11shiyi I don't see a problem after collecting GraalVM reachability metadata for Easyexcel. If you think there is a problem, you can open a new issue after providing a minimal reproducible unit test.

linghengqian avatar Feb 20 '23 08:02 linghengqian

现在有支持graalvm的版本么

bajie-git avatar May 11 '23 00:05 bajie-git

收集 Easyexcel 的 GraalVM 可访问性元数据后,我没有看到问题。如果您认为存在问题,可以在提供最小可重现的单元测试后打开一个新问题。

Hello, where can I obtain the GraalVM accessibility metadata for Easyexcel

CV-Devlau avatar Mar 08 '24 02:03 CV-Devlau

收集 Easyexcel 的 GraalVM 可访问性元数据后,我没有看到问题。如果您认为存在问题,可以在提供最小可重现的单元测试后打开一个新问题。

您好,我在哪里可以获得 Easyexcel 的 GraalVM 可访问性元数据

@linghengqian

CV-Devlau avatar Mar 08 '24 08:03 CV-Devlau

  • @CV-Devlau You need to write a unit test suite for easyexcel and collect these jsons through the tracing agent integrated by graalvm native buildtools. I don't have time recently, and I may need to wait until graalvm ce for jdk29 is released.

linghengqian avatar Mar 08 '24 08:03 linghengqian

  • @CV-Devlau You need to write a unit test suite for easyexcel and collect these jsons through the tracing agent integrated by graalvm native buildtools. I don't have time recently, and I may need to wait until graalvm ce for jdk29 is released.

@linghengqian I saw that you mentioned that you collected a portion of metadata and tested it without any issues. I would like to test this portion of metadata, which may be more complete than what I obtained from writing my own tests

CV-Devlau avatar Mar 08 '24 12:03 CV-Devlau

@linghengqian I saw that you mentioned that you collected a portion of metadata and tested it without any issues. I would like to test this portion of metadata, which may be more complete than what I obtained from writing my own tests

  • The unit tests for alibaba easyexcel actually exist in my private test suite about https://github.com/oracle/graalvm-reachability-metadata/issues/225 , and I haven't prepared a PR for this part yet because I was blocked by a series of pre-requisite PRs.

  • The reason I don't have time now is simply because I'm a student about to graduate and my energy doesn't support me to deal with related issues.

linghengqian avatar Mar 08 '24 12:03 linghengqian