Generating project file from maven

Having trouble installing Oxygen? Got a bug to report? Post it all here.
cmarchand
Posts: 8
Joined: Fri Oct 23, 2015 10:44 am

Generating project file from maven

Post by cmarchand »

Hello,

our XSL/XQuery projects are organized as maven projects, to be able to perform continuous integration on unit tests.
I want to be able to generate the Oxygen project file from a maven command, like a

Code: Select all

mvn eclipse:eclispe
Is there available documentation on project files ?
Does the schema evolves through Oxygen various releases ?

Best regards,
Christophe
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Generating project file from maven

Post by Radu »

Hi Christophe,

You can find a schema for our project file in:

OXYGEN_INSTALL_DIR/frameworks/oxygen/project.xsd

We do not have additional documentation for it but you can create one in Oxygen with a couple of added folders and look at its structure.
It's in our best interest to keep our project format backward compatible, otherwise users with older projects would have trouble migrating to newer ones.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
cmarchand
Posts: 8
Joined: Fri Oct 23, 2015 10:44 am

Re: Generating project file from maven

Post by cmarchand »

Found, thanks a lot.
Any way to define a catalog in the project file ?

Best regards,
Christophe
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Generating project file from maven

Post by Radu »

Hi Christophe,

You cannot embed an XML catalog in a project ".xpr". But you could save in it a reference to an XML catalog.
The project XPR configuration file can contain options which are saved at project level.

For example in the Preferences->"XML / XML Catalog" page you can pass the page to project level and add in it a reference to an extra XML catalog like:

${pdu}/catalog.xml

Then you can open the XPR as an XML (drag it from the Windows Explorer and drop it in Oxygen) and see how that saved information looks like.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
cmarchand
Posts: 8
Joined: Fri Oct 23, 2015 10:44 am

Re: Generating project file from maven

Post by cmarchand »

Ok, that's work fine !
Now, I have to write a maven plugin to generate the catalog each time the pom dependencies change.

Does oxygen supports the rewriteSystem for catalog ?

Thanks in advance,
Christophe
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Generating project file from maven

Post by Radu »

Hi Christophe,

About this question:
Does oxygen supports the rewriteSystem for catalog ?
Both Oxygen and the XSLT processor (usually Saxon 9) should support the entire XML catalog 1.1 specification.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
cmarchand
Posts: 8
Joined: Fri Oct 23, 2015 10:44 am

Re: Generating project file from maven

Post by cmarchand »

It appears that oXygen 17.1 supports rewriteSystem, but not oXygen 15.2. Is that correct ?

Best,
Christophe
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Generating project file from maven

Post by Radu »

Hi Christophe,

Both Oxygen 17 and 15.2 should support it as well.Support for XML catalogs has been present in Oxygen almost since the inception of the application, more than 10 years ago.
If you have a clear situation in which it does not seem to work, maybe you can give us more details and we can take a look at it.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
cmarchand
Posts: 8
Joined: Fri Oct 23, 2015 10:44 am

Re: Generating project file from maven

Post by cmarchand »

Ok. I probably make mistakes between the two environments.
If I have again the problem, I will report it with a test-case.

Thanks,
Christophe
Post Reply