cancel
Showing results for 
Search instead for 
Did you mean: 

Creating marketplace package with variables in install.xml

patrek
Star Contributor
Star Contributor

Making a package for the marketplace, I'm trying the following syntax, with no success <update file="${package.root}/bundles/my-super-bundle-${property-from-pom.version}" todir="${env.bundles}" overwrite="true" />

But it works if I use <update file="${package.root}/bundles/my-super-bundle-1.0.0" todir="${env.bundles}" overwrite="true" />

As my bundle contains a few jar, I'd like to be able to define my version number in one place (the pom.xml file) and reuse it in assembly.xml and install.xml. Is there a way/syntax to do it or do I have to revert to replacement with the maven filtering mechanism?

Thanks

1 ACCEPTED ANSWER

Julien_Carsique
Elite Collaborator
Elite Collaborator

I recommend to assemble the Marketplace package using nuxeo-distribution-tools.

You can give a look at nuxeo-marketplace-dm to see how it's done for Nuxeo DM Marketplace package.

About your question, you could use Ant replacement with Maven variables (thanks to nuxeo-distribution-tools) but note the update command accepts a directory as input: you don't need to list each bundle with its precise name, simply provide the directory containing the bundles you want to be deployed by your package.

View answer in original post

3 REPLIES 3

Julien_Carsique
Elite Collaborator
Elite Collaborator

I recommend to assemble the Marketplace package using nuxeo-distribution-tools.

You can give a look at nuxeo-marketplace-dm to see how it's done for Nuxeo DM Marketplace package.

About your question, you could use Ant replacement with Maven variables (thanks to nuxeo-distribution-tools) but note the update command accepts a directory as input: you don't need to list each bundle with its precise name, simply provide the directory containing the bundles you want to be deployed by your package.

We are using the nuxeo-distribution-tools.

Note the Marketplace package build is using a comparison between the two EAR-like artifacts [nuxeo-distribution-cap][1] and [nuxeo-distribution-dm][2].

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.