[oXygen-sdk] Problem with using the "defaultFrameworkSources" dependency

Dan Caprioara dan at sync.ro
Fri May 23 03:46:16 CDT 2014


Yes, we are considering this.

On 23.05.2014 11:44, Jan Bevers wrote:
> Hi Dan
>
> Thanks for your quick reply. I'll use this solution for now.
>
> Are there any plans to make the dita.jar available as a Maven artifact?
>
> Kind regards
> Jan
>
> -----Original Message-----
> From: oxygen-sdk-bounces at oxygenxml.com [mailto:oxygen-sdk-bounces at oxygenxml.com] On Behalf Of Dan Caprioara
> Sent: vrijdag 23 mei 2014 10:13
> To: oxygen-sdk at oxygenxml.com
> Subject: Re: [oXygen-sdk] Problem with using the "defaultFrameworkSources" dependency
>
> Hello,
>
> The dita.jar is not yet available as a Maven artifact.
> You should take it from an oXygen 16.0 installation and use a system dependency in your pom.xml file:
>
> <dependency>
>         <groupId>com.oxygenxml</groupId>
>         <artifactId>dita</artifactId>
>         <version>16.0.0</version>
>         <scope>system</scope>
>         <systemPath>PATH_TO_DITA_JAR/dita.jar</systemPath>
> </dependency>
>
> The source code may be downloaded from:
> http://www.oxygenxml.com/maven/com/oxygenxml/oxygen/16.0.0/oxygen-16.0.0-defaultFrameworksSources.jar
>
> I also recommend creating a dependency to the entire SDK, not only to the oxygen.jar artifact:
>
> <dependency>
> 	<groupId>com.oxygenxml</groupId>
> 	<artifactId>oxygen-sdk</artifactId>
> 	<version>16.0.0</version>
> </dependency>
>
> Best regards,
> Dan
> --
> Dan Caprioara
> <oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
>
>
> On 23.05.2014 10:21, Jan Bevers wrote:
>> Hi
>>
>> I was trying to upgrade my project to use the new Maven repository.
>>
>> In one of my projects I used to have a dependency to "dita.jar" by
>> referencing it as a system type.
>>
>> Now I've changed the dependency in my pom.xml as followed.
>>
>> <dependency>
>>
>>               <groupId>com.oxygenxml</groupId>
>>
>>               <artifactId>oxygen</artifactId>
>>
>>               <classifier>defaultFrameworksSources</classifier>
>>
>>               <type>jar</type>
>>
>>               <version>16.0.0</version>
>>
>> </dependency>
>>
>> In my code I'm extending from the DITAConrefResolver class.
>>
>> package sdl.trisoft.framework.dita;
>>
>> import ro.sync.ecss.extensions.dita.conref.DITAConRefResolver;
>>
>> ...
>>
>> public class TrisoftDITAContentResolver extends DITAConRefResolver {
>>
>> ...
>>
>> }
>>
>> When using a reference to the old dita.jar this worked without problems.
>> After changing the dependency to use the online one I was getting
>> compilation errors.
>>
>> Failed to execute goal
>> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
>> (default-compile) on project oxygen-sample-framework: Compilation
>> failure: Compilation failure:
>>
>> sdl/trisoft/framework/dita/TrisoftDITAContentResolver.java:[19,42]
>> error: package ro.sync.ecss.extensions.dita.conref does not exist
>>
>> ...
>>
>> I'm using NetBeans as an IDE.
>>
>> Kind regards
>>
>> *Jan Bevers |* Developer *|* SDL *| *+32 (0)15 400 970 *|* jbevers at sdl.com
>>
>>
>> www.sdl.com
>> <http://www.sdl.com/?utm_source=Email&utm_medium=Email%2BSignature&utm_campaign=SDL%2BStandard%2BEmail%2BSignature>
>>
>> *SDL PLC confidential, all rights reserved.* If you are not the intended
>> recipient of this mail SDL requests and requires that you delete it
>> without acting upon or copying any of its contents, and we further
>> request that you advise us.
>> SDL PLC is a public limited company registered in England and Wales.
>> Registered number: 02675207.
>> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire
>> SL6 7DY, UK.
>>
>> This message has been scanned for malware by Websense. www.websense.com
>> <http://www.websense.com/>
>>
>>
>>
>> _______________________________________________
>> oXygen-sdk mailing list
>> oXygen-sdk at oxygenxml.com
>> http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
>>
>
> _______________________________________________
> oXygen-sdk mailing list
> oXygen-sdk at oxygenxml.com
> http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
>




More information about the oXygen-sdk mailing list