You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Mark Murphy <jm...@gmail.com> on 2018/08/01 03:59:12 UTC

Re: How to Resolve "Indirectly referenced from required .class files" Issue?

CT Classes are added to the poi-ooxml-schemas jar based on unit tests. If
the class is used by a unit test, it is included in the jar. I generally
use the full schema in ooxml-schemas for development so I don't hit that
issue. And you should always add unit tests for new code, and examples so
that others can use your code.

On Tue, Jul 31, 2018 at 7:29 PM pj.fanning <fa...@yahoo.com> wrote:

> poi-ooxml depends on poi-ooxml-schemas and this latter jar has the most
> commonly used XMLBeans generated classes for the OOXML xsds. CTEm appears
> to
> be missing from this jar.
> We can add it for the 4.0.0 release.
> ooxml-schemas has the full set of generated classes. We will be releasing
> v1.4 of this jar with poi 4.0.0.
> It is built with the rest of the poi jars (if you building locally).
>
>
>
> --
> Sent from: http://apache-poi.1045710.n5.nabble.com/POI-User-f2280730.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
>

RE: How to Resolve "Indirectly referenced from required .class files" Issue?

Posted by "pj.fanning" <fa...@yahoo.com>.
I've already added artificial tests to ensure the CTEm class is included in
future versions of poi-ooxml-schemas.jar.
The full ooxml-schemas jar is published to maven and it is just a
convenience for poi to default to using the much smaller
poi-ooxml-schemas.jar.



--
Sent from: http://apache-poi.1045710.n5.nabble.com/POI-User-f2280730.html

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


RE: How to Resolve "Indirectly referenced from required .class files" Issue?

Posted by "Murphy, Mark" <mu...@metalexmfg.com>.
LOL, There is a lot of old stuff that doesn’t have unit tests. If you are regularly making use of CT classes, then you might want to consider using the full ooxml-schemas jar.

-----Original Message-----
From: Eliot Kimber [mailto:ekimber@contrext.com] 
Sent: Wednesday, August 01, 2018 7:40 AM
To: POI Users List <us...@poi.apache.org>
Subject: Re: How to Resolve "Indirectly referenced from required .class files" Issue?

Note that I'm getting this error in the context of a standalone project, not the POI code itself.

However, I can do the work I'm doing in POI in order to extend the XWPFRun API and for that I would of course create unit tests (what kind of monster would not create a unit test for a new method?).

Cheers,

E.
--
Eliot Kimber
http://contrext.com
 

On 7/31/18, 10:59 PM, "Mark Murphy" <jm...@gmail.com> wrote:

    CT Classes are added to the poi-ooxml-schemas jar based on unit tests. If
    the class is used by a unit test, it is included in the jar. I generally
    use the full schema in ooxml-schemas for development so I don't hit that
    issue. And you should always add unit tests for new code, and examples so
    that others can use your code.
    
    On Tue, Jul 31, 2018 at 7:29 PM pj.fanning <fa...@yahoo.com> wrote:
    
    > poi-ooxml depends on poi-ooxml-schemas and this latter jar has the most
    > commonly used XMLBeans generated classes for the OOXML xsds. CTEm appears
    > to
    > be missing from this jar.
    > We can add it for the 4.0.0 release.
    > ooxml-schemas has the full set of generated classes. We will be releasing
    > v1.4 of this jar with poi 4.0.0.
    > It is built with the rest of the poi jars (if you building locally).
    >
    >
    >
    > --
    > Sent from: http://apache-poi.1045710.n5.nabble.com/POI-User-f2280730.html
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
    > For additional commands, e-mail: user-help@poi.apache.org
    >
    >
    



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


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

Re: How to Resolve "Indirectly referenced from required .class files" Issue?

Posted by Eliot Kimber <ek...@contrext.com>.
Note that I'm getting this error in the context of a standalone project, not the POI code itself.

However, I can do the work I'm doing in POI in order to extend the XWPFRun API and for that I would of course create unit tests (what kind of monster would not create a unit test for a new method?).

Cheers,

E.
--
Eliot Kimber
http://contrext.com
 

On 7/31/18, 10:59 PM, "Mark Murphy" <jm...@gmail.com> wrote:

    CT Classes are added to the poi-ooxml-schemas jar based on unit tests. If
    the class is used by a unit test, it is included in the jar. I generally
    use the full schema in ooxml-schemas for development so I don't hit that
    issue. And you should always add unit tests for new code, and examples so
    that others can use your code.
    
    On Tue, Jul 31, 2018 at 7:29 PM pj.fanning <fa...@yahoo.com> wrote:
    
    > poi-ooxml depends on poi-ooxml-schemas and this latter jar has the most
    > commonly used XMLBeans generated classes for the OOXML xsds. CTEm appears
    > to
    > be missing from this jar.
    > We can add it for the 4.0.0 release.
    > ooxml-schemas has the full set of generated classes. We will be releasing
    > v1.4 of this jar with poi 4.0.0.
    > It is built with the rest of the poi jars (if you building locally).
    >
    >
    >
    > --
    > Sent from: http://apache-poi.1045710.n5.nabble.com/POI-User-f2280730.html
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
    > For additional commands, e-mail: user-help@poi.apache.org
    >
    >
    



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