Page 1 of 1
dita dependency in maven project
Posted: Wed May 27, 2020 12:51 pm
by NicoAMP
Hi,
In my project (manage under Maven) I would like to extends following classes : DITAExtensionsBundle and DitaLinkTextResolver.
Which dependency I have to add in my pom.xml to make it works?
Thanks a lot.
Nicolas
Re: dita dependency in maven project
Posted: Wed May 27, 2020 1:33 pm
by NicoAMP
The question in fact is: the dita.jar is available as a Maven artifact?
Nicolas
Re: dita dependency in maven project
Posted: Wed May 27, 2020 2:37 pm
by Radu
Hi Nicolas,
In the Oxygen SDK "com.oxygenxml.samples" maven project:
https://www.oxygenxml.com/oxygen_sdk/download.html
there is a module named "bundle-frameworks".
You can also access the Java sources:
https://www.oxygenxml.com/maven/com/oxy ... /22.1.0.0/
Regards,
Radu
Re: dita dependency in maven project
Posted: Thu May 28, 2020 11:41 am
by NicoAMP
Hi Radu,
I created a maven module with my custom framework and inside a java source I try to import ro.sync.ecss.extensions.dita.DITAExtensionsBundle
But I have the following error when I try to build the complete project: error: package ro.sync.ecss.extensions.dita does not exist
Do you know why? Thanks.
Re: dita dependency in maven project
Posted: Thu May 28, 2020 2:24 pm
by Radu
Hi Nicolas,
Sorry about the delay, I discussed this with one of my colleagues, we tried various ways to make it work but it seems we need to expose in the future a special artifact to support this use case.
In the meantime you will need to use for compliaction the "OXYGEN_INSTALL_DIR\frameworks\dita\dita.jar" and add it as a system reference in the pom.xml:
Code: Select all
<dependency>
<groupId>com.xxx</groupId>
<artifactId>xxx</artifactId>
<version>22.1/version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/dita.jar</systemPath>
</dependency>
Regards,
Radu
Re: dita dependency in maven project
Posted: Fri May 29, 2020 4:09 pm
by NicoAMP
Hi Radu,
I will try this solution. Thanks a lot.
Regards,
Nicolas