cancel
Showing results for 
Search instead for 
Did you mean: 

Custom package fails to get zipped by mvn

Daniel_deLamare
Champ on-the-rise
Champ on-the-rise

I have an issue where I generated a package with a service and an operation using the nuxeo-cli tool ,but when I build it, I get an error saying

Failed to execute goal org.nuxeo.build:ant-assembly-maven-plugin:2.1.0:build (default-build) on project case-tracker-addons-package: Error occurred while running C:\Users\<snip>\Documents\case-tracker-addons\case-tracker-addons-package\src\main\assemble\assembly.xml@138:56
-> [Help 1]

In the assembly.xml the section it references is :

    <!-- Studio Registries Extraction -->
    <nx:studioExtraction todir="${outdir}/marketplace">
      <fileset dir="${outdir}/marketplace/install/bundles"/>
    </nx:studioExtraction>

If I remove this, the zip file generates, but then does not seem to get automatically registered when I upload into studio.

How can I fix this error?

1 ACCEPTED ANSWER

Daniel_deLamare
Champ on-the-rise
Champ on-the-rise

This was fixed in a newer version of the ant build plugin.

Iwas able to get it working by adding the tag

2.1.3

to the plugin declaration in the package pom.xml right below artifactid

View answer in original post

5 REPLIES 5

Rodri_
Star Contributor
Star Contributor

Hello,

Have you made sure you can correctly connect to connect.nuxeo.com? You can check this post about Token Management: https://doc.nuxeo.com/studio/token-management/

And you can also check how to store the token in your Maven configuration: https://doc.nuxeo.com/studio/maven-integration/#setting-up-the-maven-client

I hope it helps!

Rodri, I do not think that is the issue. I have already set up maven as you described. Upon further investigation, I have found this error,

I ended up removing that section from the assemble.xml and running the package command. This worked, but I had to manually generate the json registry to import it into nuxeo studio.

michal_m
Champ on-the-rise
Champ on-the-rise

I had exactly the same problem on Windows. mvn clean package with the same code on Ubuntu worked just fine, Daniel's theory about issues with Windows paths seems to be correct.

Daniel_deLamare
Champ on-the-rise
Champ on-the-rise

This was fixed in a newer version of the ant build plugin.

Iwas able to get it working by adding the tag

2.1.3

to the plugin declaration in the package pom.xml right below artifactid

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.