Page 1 of 1

docx4j svn checkout errors

PostPosted: Wed Mar 30, 2011 3:02 am
by Lars
Hi jason,

I followed the instructions in the guide and tried to check out the sources to create a new build of docx4j. (eclipse with maven 3.0.3)

Unfortunately after checking out I got lots of errors in the code, most of them are concering the import statements (commons, log4j, etc), so i tried to add the missing jars to solve the problems but at the end i got still some errors left.

Do you got some advice? I can't find anything in the guide concerning this. Also, do I really have to add all these jars on my own? The only thing is that "mvn install" in the docx4j folder got some errors cause "the build could not read 1 project"

Code: Select all
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.docx4j:docx4j:2.6.0 (F:\workspace_dpcx4j\docx4j\pom.xm
l) has 1 error
[ERROR]     Unresolveable build extension: Plugin org.jvnet.wagon-svn:wagon-svn:
1.8 or one of its dependencies could not be resolved: Failure to find org.jvnet.
wagon-svn:wagon-svn:jar:1.8 in http://repo1.maven.org/maven2 was cached in the l
ocal repository, resolution will not be reattempted until the update interval of
central has elapsed or updates are forced -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException


regards
Lars

Re: docx4j svn checkout errors

PostPosted: Wed Mar 30, 2011 8:24 am
by jason
Lars wrote:ERROR] Unresolveable build extension: Plugin org.jvnet.wagon-svn:wagon-svn:
1.8 or one of its dependencies could not be resolved:


Somebody else also just reported this. I'll look into it later, but for now you can comment that out in the pom.

You shouldn't need to get the jars yourself - maven should do it for you.

That said, I generally build with ant. You can put the jars from the docx4j dist somewhere, and alter build.xml to point to them.

Make sure you have jaxb-NamespacePrefixMapper-interfaces-2.0

Re: docx4j svn checkout errors

PostPosted: Wed Mar 30, 2011 10:35 pm
by Lars
Hi,

ok, i did the following:
- check out from svn

- change pom.xml from:
Code: Select all
<extensions>
<extension>
  <groupId>org.jvnet.wagon-svn</groupId>
  <artifactId>wagon-svn</artifactId>
  <version>1.8</version>
</extension>
</extensions>

to:
Code: Select all
<extensions>
<extension>
  <groupId>org.jvnet.wagon-svn</groupId>
  <artifactId>wagon-svn</artifactId>
  <version1.9</version>
</extension>
</extensions>

with this change the download of the jars works fine

- also this line sometimes is missing in the .classpath file:
Code: Select all
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>

without it maven downloads the jars, but don't add it to the project library

regards
Lars

Re: docx4j svn checkout errors

PostPosted: Wed Mar 30, 2011 11:46 pm
by jason
Thanks for this Lars; I've updated pom,xml with http://dev.plutext.org/trac/docx4j/changeset/1454