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

Improve the generated POM

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2, 1.1.11
    • Backlog priority:
      870

      Description

      The "project" tag is missing schema info, it must be:

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

      That is breaking XML validation, completion, ...

      The Nuxeo repositories are missing (required for Maven bootstrap).
      The Nuxeo Studio repository should be optionally added.

      Also, ideally the parent POM should be the Nuxeo corporate POM org.nuxeo:nuxeo-ecm (or another selected by the user) and the current suggested one (nuxeo-features) should be replaced with org.nuxeo:nuxeo-addons-parent or org.nuxeo.ecm.distribution:nuxeo-distribution and imported in the dependencyManagement:

      <parent>
        <groupId>org.nuxeo</groupId>
        <artifactId>nuxeo-ecm</artifactId>
        <version>5.5</version>
      </parent>
      <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>org.nuxeo</groupId>
            <artifactId>nuxeo-addons-parent</artifactId>
            <version>5.5</version>
            <scope>import</scope>
          </dependency>
        </dependencies>
      </dependencyManagement>
      
      <repositories>
        <repository>
          <id>public</id>
          <url>http://maven.nuxeo.org/nexus/content/groups/public</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
        <repository>
          <id>public-snapshot</id>
          <url>http://maven.nuxeo.org/nexus/content/groups/public-snapshot</url>
          <releases>
            <enabled>false</enabled>
          </releases>
          <snapshots>
            <updatePolicy>always</updatePolicy>
            <enabled>true</enabled>
          </snapshots>
        </repository>
      </repositories>
      
      <pluginRepositories>
        <pluginRepository>
          <id>public</id>
          <url>http://maven.nuxeo.org/nexus/content/groups/public</url>
          <name>Nuxeo releases</name>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </pluginRepository>
      </pluginRepositories>
      

      The POM is missing other informations which should be overridden (they are currently inherited from Nuxeo) such as url, organization, licenses, issueManagement, ciManagement, ...

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: