Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-26320

Nuxeo Maven Plugin #1 - Run Nuxeo

    XMLWordPrintable

    Details

      Description

      Problem

      As a developper implementing a customisation for Nuxeo Platform in a custom bundle, running my customisation is tedious: building the jar, deploying it, starting the server, there is no tooling for this beside nuxeocli which is not integrated to my IDE.

      Context

      I have a Studio project and a Maven simple module project in order to customise Nuxeo.

      Source code in my repository is as below:

      .
      ├── pom.xml
      └── src
          └── main
              ├── java
              │   └── ...
              └── resources
                  ├── META-INF
                  │   └── MANIFEST.MF
                  └── OSGI-INF
                      └── ...
      

      My pom.xml file contains the following:

      • nuxeo-distribution as parent
      • nuxeo-maven-plugin in the build section
      • a studio project dependency

      Solution

      From my terminal, in order to run Nuxeo, I want to be able to do:

      [~/workspace/nuxeo-addon] $ mvn nuxeo:run
      

      This will start a Nuxeo containing my Studio package and my addon.
      Output of console will be equivalent to Nuxeo's server.log file.
      I can exit/stop this instance by typing CTRL+C.

      I can also configure the plugin in order to start Nuxeo with different set up. For instance, I can choose several Nuxeo templates, change nuxeo.conf parameters...
      These customisations can be done:

      • in the <configuration> element of plugin
      • through command line
      • from a nuxeo.conf file

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kleturc Kevin Leturc
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: