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

Bad test bundle for directory-ldap

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.0
    • Fix Version/s: Postponed
    • Component/s: Directory, Tests

      Description

      nuxeo-platform-directory-ldap provides a test jar nuxeo-platform-directory-ldap-test.

      However, because of a bad pom configuration, the generated test jar holds the manufest from the "regular" jar.

      This result in the test jar not being usable since when both jars are inside the class path, the test-jar may be deployed instead of the implementation one : as a result, there is no LDAP directory in the test feature

      Example of NXRuntime setup trying to deploy the test jar instead of the regular one :

      main 10:07:07,414 ERROR [OSGiRuntimeService] Unknown component 'OSGI-INF/LDAPDirectoryFactory.xml' referenced by bundle 'org.nuxeo.ecm.directory.ldap'. Check the MANIFEST.MF
      main 10:07:07,414 ERROR [Framework] 
      main 10:07:07,414 ERROR [OSGiRuntimeService] Unknown component 'OSGI-INF/management-contrib.xml' referenced by bundle 'org.nuxeo.ecm.directory.ldap'. Check the MANIFEST.MF
      main 10:07:07,414 ERROR [Framework] 
      

      pom must be reviewed so that the test jar include a test manifest.

       <configuration>
                    <archive>
                      <manifestFile>src/test/resources/META-INF/MANIFEST.MF</manifestFile>
                    </archive>
                  </configuration>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tdelprat Thierry Delprat
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: