Uploaded image for project: 'Maven Source Plugin'
  1. Maven Source Plugin
  2. MSOURCES-23

test-jar misses sources from "generate-test-sources" phase

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.3
    • 2.2
    • None
    • Maven 2.0.7

    Description

      When the goal source:test-jar is run directly from the command-line, the plugin will miss source files that get generated during the "generate-test-sources" phase as the mojo currently only requires the "generate-sources" phase.

      Though simply increasing the mojos lifecycle requirement would solve the problem, it kind of looks ugly to have the lengthy and potentially failing "compile" phase get run just to package test sources (first time I realize practical limitations of Maven's simple waterfall lifecycle compared to partially ordered goals...). An additional mojo like "generated-test-jar" might therefore be the best solution to keep the majority of use-cases fast but support the more sophisticated cases as well.

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              bentmann Benjamin Bentmann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: