dita dependency in maven project

Post here questions and problems related to oXygen frameworks/document types.
NicoAMP
Posts: 44
Joined: Tue Mar 06, 2018 2:07 pm
Contact:

dita dependency in maven project

Post by NicoAMP » Wed May 27, 2020 12:51 pm

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

NicoAMP
Posts: 44
Joined: Tue Mar 06, 2018 2:07 pm
Contact:

Re: dita dependency in maven project

Post by NicoAMP » Wed May 27, 2020 1:33 pm

The question in fact is: the dita.jar is available as a Maven artifact?

Nicolas

Radu
Posts: 7026
Joined: Fri Jul 09, 2004 5:18 pm

Re: dita dependency in maven project

Post by Radu » Wed May 27, 2020 2:37 pm

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

NicoAMP
Posts: 44
Joined: Tue Mar 06, 2018 2:07 pm
Contact:

Re: dita dependency in maven project

Post by NicoAMP » Thu May 28, 2020 11:41 am

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.

Radu
Posts: 7026
Joined: Fri Jul 09, 2004 5:18 pm

Re: dita dependency in maven project

Post by Radu » Thu May 28, 2020 2:24 pm

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

NicoAMP
Posts: 44
Joined: Tue Mar 06, 2018 2:07 pm
Contact:

Re: dita dependency in maven project

Post by NicoAMP » Fri May 29, 2020 4:09 pm

Hi Radu,

I will try this solution. Thanks a lot.

Regards,
Nicolas

Post Reply