Grails 2.5.2 and Apache POI - ClassNotFoundException
<p>I need to export some data to Excel from a small Grails application. To do so, I have added the following dependencies to my BuildConfig:</p>

<pre><code>    dependencies {            
        compile 'org.apache.poi:poi-ooxml:3.13'
        compile 'org.apache.poi:poi-ooxml-schemas:3.13'
    }
</code></pre>

<p>Whenever I try to utilize the libraries, I run into a ClassNotFoundException. The following code reproduces to error:</p>

<pre><code>    Workbook workbook = new XSSFWorkbook()
    Sheet sheet = workbook.createSheet("Title")
    Row row = sheet.createRow(0)
    // Make first header row:
    row.createCell(0).setCellValue("Header1")
</code></pre>

<p>The call to <code>row.createCell(0).setCellValue("Header1")</code>
Produces the following stacktrace-message:</p>

<pre><code>Class
java.lang.ClassNotFoundException
Message
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExtensionList
</code></pre>

<p>Originally I only included the <code>poi-ooxml</code> but a jar-finder search suggests that the class is included in <code>poi-ooxml-schemas</code>, so I included that as well. It still doesn't work however. The code compiles fine and the error occurs runtime.</p>

<p>Any suggestions? Am I missing something or what?</p>