cancel
Showing results for 
Search instead for 
Did you mean: 

use nuxeo cli with Nuxeo 2021

Ghazi_HAKIM
Confirmed Champ
Confirmed Champ

Hello,

Nuxeo CLI has not been updated when Nuxeo 2021 is released. I uninstalled Nuxeo CLI and install again using the commande npm install -g nuxeo-cli but when i type nuxeo -v I still get version 2.0.0. When I generate a sample project with nuxeo bootstrap single-module command, I still get in the generated pom :

<parent>
<groupId>org.nuxeo</groupId>
<artifactId>nuxeo-addons-parent</artifactId>
<version>10.10</version>
</parent>

Do you have any idea if it will be upgraded to Nuxeo 2021 ? Regards.

1 ACCEPTED ANSWER

Jordann_Roussel
Champ on-the-rise
Champ on-the-rise

Hello, Nuxeo CLI prompts you for the Nuxeo platform version you want to use, if you specify 10.10 (default value) you obtain the pom.xml above. If you want to create a package for LTS-2021, you need to specify version 2021.X where X equals to the latest release you want to use (e.g. 2021.24)

For example, to create a whole package to start developing: nuxeo bootstrap type an image title

Then finally create a package module to be able to compile your Java MarketPlace as a package you can compile and install on a server: nuxeo bootstrap package type an image title

You will end up with a standard project having:

  • a parent pom.xml
  • a core project (where you put your main code)
  • a package project (where you express package dependency and install instructions)

Your pom.xml should looks like this:

  <parent>
    <groupId>org.nuxeo</groupId>
    <artifactId>nuxeo-parent</artifactId>
    <version>2021.24</version>
  </parent>

  <groupId>org.mygroup.id</groupId>
  <artifactId>test-parent</artifactId>
  <name>Test parent</name>

View answer in original post

6 REPLIES 6

Sudarshan_Ghate
Champ in-the-making
Champ in-the-making

Hello,

Can anyone from Nuxeo comment on this thread? I am in the similar boat. There are a lot of challenges with writing custom Java code.

Thanks,

SG

Jordann_Roussel
Champ on-the-rise
Champ on-the-rise

Hello, Nuxeo CLI prompts you for the Nuxeo platform version you want to use, if you specify 10.10 (default value) you obtain the pom.xml above. If you want to create a package for LTS-2021, you need to specify version 2021.X where X equals to the latest release you want to use (e.g. 2021.24)

For example, to create a whole package to start developing: nuxeo bootstrap type an image title

Then finally create a package module to be able to compile your Java MarketPlace as a package you can compile and install on a server: nuxeo bootstrap package type an image title

You will end up with a standard project having:

  • a parent pom.xml
  • a core project (where you put your main code)
  • a package project (where you express package dependency and install instructions)

Your pom.xml should looks like this:

  <parent>
    <groupId>org.nuxeo</groupId>
    <artifactId>nuxeo-parent</artifactId>
    <version>2021.24</version>
  </parent>

  <groupId>org.mygroup.id</groupId>
  <artifactId>test-parent</artifactId>
  <name>Test parent</name>

Jordan,

Sudarshan, Nuxeo LTS 2021 Maven artefacts are private. If you're working on a 2021 project with proper subscription, you need to request access to the repository through a support ticket, then update your Maven settings with a personal token you will need to generate.

Perfect ! I had the access but i was using the wrong token in my Maven settings.xml file. I appreciate the help!

Thank you Jordan for your response.

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.