dita dependency in maven project

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

dita dependency in maven project

Post 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
Nicolas Delobel
AmeXio
nicolas.delobel at group.amexio.net
NicoAMP
Posts: 97
Joined: Tue Mar 06, 2018 2:07 pm
Contact:

Re: dita dependency in maven project

Post by NicoAMP »

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

Nicolas
Nicolas Delobel
AmeXio
nicolas.delobel at group.amexio.net
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: dita dependency in maven project

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
NicoAMP
Posts: 97
Joined: Tue Mar 06, 2018 2:07 pm
Contact:

Re: dita dependency in maven project

Post 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.
Nicolas Delobel
AmeXio
nicolas.delobel at group.amexio.net
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: dita dependency in maven project

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
NicoAMP
Posts: 97
Joined: Tue Mar 06, 2018 2:07 pm
Contact:

Re: dita dependency in maven project

Post by NicoAMP »

Hi Radu,

I will try this solution. Thanks a lot.

Regards,
Nicolas
Nicolas Delobel
AmeXio
nicolas.delobel at group.amexio.net
Post Reply