Uploaded image for project: 'Nuxeo IDE'
  1. Nuxeo IDE
  2. NXIDE-326

Marketplace Packaging must use ant-assembly-maven-plugin since Nuxeo 5.9.2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None

      Description

      Environment: Eclipse (Kepler Service Release 1) and Nuxeo IDE (1.2.0R12x_v20131205_1418)
      Steps to reproduce with a very basic, fake plug-in.

      • (SDK set on 5.9.5 - we create plug-in and MP for 5.9.5)
      • Create a new project
        • First page of the wizard:
          • Id: aaaa-my-plugin
          • root package: org.nuxeo.myplugin
        • Second page (Maven Settings):
          • Artifact Information:
            • Group Id: org.nuxeo.myplugin
            • Artifact Id: aaaa-my-plugin
            • Artifact version: 5.9.5
          • Parent POM
            • Parent Group Id: org.nuxeo
            • Parent Artifact Id: nuxeo-addons-parent
            • Parent Version: 5.9.5
          • Name: aaaa-my-plugin
      • Add an operation
        • Project aaaa-my-plugin
        • Package: org.nuxeo.myplugin
        • Name: FakeOp
        • Operation Id: FakeOp
        • For the rest: Category CAT_DOCUMENT, input and output Document
        • The code is just return input;

      Check all looks good:

      cd /path/to/aaaa-my-plugin
      mvn clean install
      

      => BUILD SUCCESS (which is ok )

      Now, create the Marketplace Package with Eclipse:

      • Create a new "Marketplace Project"
        • project ID: aaaa-my-plugin-mp
        • Root package: org.nuxeo.myplugin
        • Project to bind: aaaa-my-plugin
      • "Define Marketplace Information" page:
        • Nuxeo Version: 5.9.5 (which is ok: version of the current SDK)
        • Distribution: dm (let the default value)
        • Home page: http://nuxeo.com
        • Version: 5.9.5
        • Deployment info: Check doesn't need to restart and supports hot reload
        • Tests generations: No box checked

      Check all looks good:

      cd /path/to/aaaa-myplugin-mp
      mvn install
      

      => Error

      [INFO] Scanning for projects...
      [WARNING] The POM for org.nuxeo.build:nuxeo-distribution-tools:jar:2.0.2 is missing, no dependency information available
      [ERROR] The build could not read 1 project -> [Help 1]
      [ERROR]   
      [ERROR]   The project org.nuxeo.myplugin.marketplace:marketplace:5.9.5 (/Users/thibaud/Eclipse-Workspace/aaaa-my-plugin-mp/marketplace/pom.xml) has 2 errors
      [ERROR]     Unresolveable build extension: Plugin org.nuxeo.build:nuxeo-distribution-tools:2.0.2 or one of its dependencies could not be resolved: Failure to find org.nuxeo.build:nuxeo-distribution-tools:jar:2.0.2 in http://maven.nuxeo.org/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of public has elapsed or updates are forced -> [Help 2]
      [ERROR]     Unknown packaging: zip @ org.nuxeo.myplugin.marketplace:marketplace:[unknown-version], /Users/thibaud/Eclipse-Workspace/aaaa-my-plugin-mp/marketplace/pom.xml, line 12, column 14
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
      [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
      

      What is wrong? What must be fixed, added, removed in the misc. poms? (I suspect there are some missing things in the poms)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: