Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48058

plugin pom overloads maven properties for evil things

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • plugin-pom
    • None

      The plugin pom has profiles and other things that are setup by virtue of a plugin specific flag being set.

      For example javadoc publishig is skiped with "skipTests" property.
      Similar for findbugs.

      This is very bad as you may want to speed a release by skipping tests (using the standard maven way[1]) in the perform goal yet this leads to the surprising thing that javadocs are missing. This is very costly and it is NOT the maven way. The POM has even invented its own workaround for this that again is not what maven users would expect

      If you want to bind things to "tests not being run" then they should be bound to general maven properties like maven.test.skip and NOT a plugin specific property.

      If we want to be helpful to people so that they do not have to type long flags then we set a profile with an id of "quickBuild" that configures specific plugin flags

      [1] -Darguments=-DskipTests

            Unassigned Unassigned
            teilo James Nord
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: