You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by Nick Burch <ni...@apache.org> on 2018/03/02 11:15:13 UTC

Single Java 9 module jar?

Hi All

From my understanding of Java 9 modules, you basically can't have one 
package split across multiple jars. This is an issue for us, as we do 
split things betwen core, scratchpad and ooxml, to permit people to 
minimise their jar sizes by excluding components they don't want.

Longer term, we could maybe look at having per-component jars. In the 
short term... I think if we just bundled the 3 jars together and dropped 
in a module info file, that'd fix things for Java 9 module users at the 
expense of them having to get all of POI (no exclusions).

Build wise, it'd be really simple - just generate an extra jar with the 
contents of the 3 base jars included, along with the module info file, and 
call it something like poi-all-java9.

What do people think of this idea? Any downsides? Comments? Suggestions?

Also, would David North like to share his Java 9 module slides from his 
talk a few weeks back? :)

Cheers
Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


RE: Single Java 9 module jar?

Posted by "Murphy, Mark" <mu...@metalexmfg.com>.
Yet another reason to consider package reorganization.

-----Original Message-----
From: Nick Burch [mailto:nick@apache.org] 
Sent: Friday, March 02, 2018 6:15 AM
To: dev@poi.apache.org
Subject: Single Java 9 module jar?

Hi All

From my understanding of Java 9 modules, you basically can't have one package split across multiple jars. This is an issue for us, as we do split things betwen core, scratchpad and ooxml, to permit people to minimise their jar sizes by excluding components they don't want.

Longer term, we could maybe look at having per-component jars. In the short term... I think if we just bundled the 3 jars together and dropped in a module info file, that'd fix things for Java 9 module users at the expense of them having to get all of POI (no exclusions).

Build wise, it'd be really simple - just generate an extra jar with the contents of the 3 base jars included, along with the module info file, and call it something like poi-all-java9.

What do people think of this idea? Any downsides? Comments? Suggestions?

Also, would David North like to share his Java 9 module slides from his talk a few weeks back? :)

Cheers
Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Re: Single Java 9 module jar?

Posted by Nick Burch <ap...@gagravarr.org>.
On Thu, 19 Apr 2018, Michal Schielmann wrote:
> Is there any way to run poi with ooxml at the moment on Java 9?

Apache POI works just fine with Java 9 on the classpath

Java 9 / 10 module path is not supported at the moment

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Re: Single Java 9 module jar?

Posted by Michal Schielmann <mi...@gmail.com>.
Hi,

Is there any way to run poi with ooxml at the moment on Java 9? 

I've tried with --patch-module and --patch-path options with no luck.
Although the code is compiling, ClassNotFoundException is thrown on the
runtime.

Any suggestions?
Thanks,
MS



--
Sent from: http://apache-poi.1045710.n5.nabble.com/POI-Dev-f2312866.html

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Re: Single Java 9 module jar?

Posted by Mark Murphy <jm...@gmail.com>.
A poi-all jar may be the path of least resistance, but is it the best way?
Under semver, a major version of >0 indicates a stable build, but only
spreadsheet claims to be stable. Maybe it would be best to split things by
document type and start everything but spreadsheet with a 0.4.0 version
number.

On Fri, Mar 2, 2018, 9:43 AM pj.fanning <fa...@yahoo.com> wrote:

> I had a quick look at it looks like we'd have to move a lot of classes to
> new
> packages.
> Maybe, the poi-all jar is the path of least resistance.
>
>
>
> --
> Sent from: http://apache-poi.1045710.n5.nabble.com/POI-Dev-f2312866.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
> For additional commands, e-mail: dev-help@poi.apache.org
>
>

Re: Single Java 9 module jar?

Posted by "pj.fanning" <fa...@yahoo.com>.
I had a quick look at it looks like we'd have to move a lot of classes to new
packages.
Maybe, the poi-all jar is the path of least resistance.



--
Sent from: http://apache-poi.1045710.n5.nabble.com/POI-Dev-f2312866.html

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Re: Single Java 9 module jar?

Posted by Nick Burch <ap...@gagravarr.org>.
On Fri, 2 Mar 2018, pj.fanning wrote:
> Could we consider keeping all the jars but ensure that no package spans 
> jars?

We'd need to re-package all the jars by component / area. You couldn't 
have a HSSF only one for example, it'd need to be HSSF+XSSF+SS if there 
was to be no package spanning.

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Re: Single Java 9 module jar?

Posted by "pj.fanning" <fa...@yahoo.com>.
Could we consider keeping all the jars but ensure that no package spans jars?



--
Sent from: http://apache-poi.1045710.n5.nabble.com/POI-Dev-f2312866.html

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org