Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-5511

UIMA-DUCC: add javadoc plugin to parent pom.xml

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.1-Ducc
    • Component/s: DUCC
    • Labels:
      None

      Description

      Add javadoc plugin to ducc's parent pom.xml. Since each ducc subproject imports parent pom and javadoc plugin is not defined, maven uses javadoc plugin from uima super pom where this plugin configuration is quite old. It sets java source level to 1.5.

      The consequence is that the build fails (when building with -Papache-release).

      The error is:
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar (attach-javadocs) on project uima-ducc-user: MavenReportException: Error while creating archive:
      [ERROR] Exit code: 1 - /users1/cwiklik/releases/builds/uima-ducc/trunk/uima-ducc-user/src/main/java/org/apache/uima/ducc/user/service/UimaASServiceContainer.java:114: error: try-with-resources is not supported in -source 1.5
      [ERROR] try (FileOutputStream outs = new FileOutputStream(outf)) {
      [ERROR] ^
      [ERROR] (use -source 7 or higher to enable try-with-resources)

      By providing javadoc plugin in the paren pom we effectively override uima super pom settings for this plug-in. Set the java source level to whatever maven compiler plugin source is set to. The try-with-resources is available since java 1.7.

        Attachments

          Activity

            People

            • Assignee:
              cwiklik Jerry Cwiklik
              Reporter:
              cwiklik Jerry Cwiklik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: