svn co http://dev.plutext.org/svn/docx4j/trunk/docx4j docx4j : which I assume got me the latest trunk version.
When executing the mvn install command I received the following error:
- Code: Select all
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.docx4j.diff.ParagraphDifferencerTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.032 sec <<< FAILURE!
Running org.docx4j.samples.HyperlinkTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!
Results :
Tests in error:
initializationError0(org.docx4j.diff.ParagraphDifferencerTest)
initializationError0(org.docx4j.samples.HyperlinkTest)
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
Please refer to C:\projects\docx4j\target\surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Wed Dec 17 13:34:36 CST 2008
[INFO] Final Memory: 18M/57M
[INFO] ------------------------------------------------------------------------
In looking in the Surefire logs I see the details of the error:
- Code: Select all
-------------------------------------------------------------------------------
Test set: org.docx4j.diff.ParagraphDifferencerTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.032 sec <<< FAILURE!
initializationError0(org.docx4j.diff.ParagraphDifferencerTest) Time elapsed: 0.016 sec <<< ERROR!
java.lang.Exception: Method testDiffDocx() should not be static
at org.junit.internal.runners.MethodValidator.validateTestMethods(MethodValidator.java:67)
at org.junit.internal.runners.MethodValidator.validateInstanceMethods(MethodValidator.java:28)
and
- Code: Select all
Test set: org.docx4j.samples.HyperlinkTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!
initializationError0(org.docx4j.samples.HyperlinkTest) Time elapsed: 0 sec <<< ERROR!
java.lang.Exception: No runnable methods
At that point I wasn't sure what to do, but I thought I would try to go ahead and do an ant dist to build the docx4j jar file by calling ant dist and it came back with quite a few compiler errors.
- Code: Select all
build-project:
[echo] docx4j: C:\projects\docx4j\build.xml
[javac] Compiling 735 source files to C:\projects\docx4j\bin
[javac] C:\projects\docx4j\src\main\java\org\docx4j\JcrNodeMapper\AlfrescoJcrNodeMapper.java:22: package javax.jcr does not exist
[javac] import javax.jcr.Node;
[javac] ^
[javac] C:\projects\docx4j\src\main\java\org\docx4j\JcrNodeMapper\AlfrescoJcrNodeMapper.java:23: package javax.jcr does not exist
[javac] import javax.jcr.Property;
one weird thing is that it also seemed to be complaining about log4j:
- Code: Select all
[javac] C:\projects\docx4j\src\main\java\org\docx4j\JcrNodeMapper\AlfrescoJcrNodeMapper.java:32: cannot find symbol
[javac] symbol : class Logger
[javac] location: class org.docx4j.JcrNodeMapper.AlfrescoJcrNodeMapper
[javac] private static Logger log = Logger.getLogger(AlfrescoJcrNodeMapper.class);
[javac] ^
In looking at the M2 directory I don't see either log4j or javax.jcr
- Code: Select all
12/17/2008 01:11 PM <DIR> com
12/17/2008 01:10 PM <DIR> docx4j
12/17/2008 01:10 PM <DIR> org
12/17/2008 01:11 PM <DIR> pdf-renderer
12/17/2008 01:10 PM <DIR> webdavclient4j
12/17/2008 01:10 PM <DIR> xalan
12/17/2008 01:10 PM <DIR> xhtmlrenderer
Do I need to manually add either log4j or the javax.jcr jars somewhere?
Do I need to be building with a different version of Java, ant, or maven?
Or is there something that I missed?
Thanks