Eliot Kimber
2018-07-31 22:18:36 UTC
I'm trying to set formatting properties on runs where the XWPFRun class does not provide a setter, e.g., the "em" (emphasis mark) property.
Using the code XWPFRun as a model, I'm trying to do this:
CTEm em = pr.isSetEm() ? pr.getEm() : pr.addNewEm();
However, in Eclipse, I get this compilation error:
The type org.openxmlformats.schemas.wordprocessingml.x2006.main.CTEm cannot be resolved. It is indirectly referenced from
required .class files
I assume this means I am missing some dependency in my project but I'm not sure what it might be.
I have these two POI-related dependencies in my POM:
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>4.0.0-SNAPSHOT</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>4.0.0-SNAPSHOT</version>
</dependency>
Are there more dependencies I need or some other setting in Eclipse?
Thanks,
Eliot
--
Eliot Kimber
http://contrext.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@poi.apache.org
For additional commands, e-mail: user-***@poi.apache.org
Using the code XWPFRun as a model, I'm trying to do this:
CTEm em = pr.isSetEm() ? pr.getEm() : pr.addNewEm();
However, in Eclipse, I get this compilation error:
The type org.openxmlformats.schemas.wordprocessingml.x2006.main.CTEm cannot be resolved. It is indirectly referenced from
required .class files
I assume this means I am missing some dependency in my project but I'm not sure what it might be.
I have these two POI-related dependencies in my POM:
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>4.0.0-SNAPSHOT</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>4.0.0-SNAPSHOT</version>
</dependency>
Are there more dependencies I need or some other setting in Eclipse?
Thanks,
Eliot
--
Eliot Kimber
http://contrext.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@poi.apache.org
For additional commands, e-mail: user-***@poi.apache.org