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

Resources from "generate" mojo do not end up in JARs

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0uimaFIT
    • Fix Version/s: 2.1.0uimaFIT
    • Component/s: uimaFIT-Maven-Plugin
    • Labels:
      None

      Description

      The "generate" mojo generates resource files (e.g. XML descriptors) - nothing that would compile. But it internally adds a source path to the project. The consequence is, that the generated resources show up in Eclipse as a source folder and appear ok, but in fact the generated resources do not end up in the JAR.

        Activity

        Hide
        rec Richard Eckart de Castilho added a comment - - edited

        Generating directly to

        ${project.build.directory}/classes
        

        now.

        Show
        rec Richard Eckart de Castilho added a comment - - edited Generating directly to ${project.build.directory}/classes now.
        Hide
        rec Richard Eckart de Castilho added a comment -

        "generate" operates on the class files, thus it must run after the "compile" phase. However, resources are copied before the "compile" phase, so adding the output directory as a resource directory to the project will not work. Looks like "generate" must directly write its output to target/classes.

        Show
        rec Richard Eckart de Castilho added a comment - "generate" operates on the class files, thus it must run after the "compile" phase. However, resources are copied before the "compile" phase, so adding the output directory as a resource directory to the project will not work. Looks like "generate" must directly write its output to target/classes.

          People

          • Assignee:
            rec Richard Eckart de Castilho
            Reporter:
            rec Richard Eckart de Castilho
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development