Uploaded image for project: 'Build'
  1. Build
  2. BUILD-194

Pre-configure poms to generate test-jars

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • POMs 31
    • None
    • None
    • None

    Description

      We currently copy & paste this snippet when we need to share test-jars:

            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-jar-plugin</artifactId>
              <executions>
                <execution>
                  <goals>
                    <goal>test-jar</goal>
                  </goals>
                </execution>
              </executions>
            </plugin>
            <!-- let's also attach the test sources -->
            <plugin>
              <artifactId>maven-source-plugin</artifactId>
              <executions>
                <execution>
                  <id>attach-test-sources</id>
                  <goals>
                    <goal>test-jar-no-fork</goal>
                  </goals>
                </execution>
              </executions>
      

      Doing this in the parent pom by default might result in unnecessary disk space usage (and perhaps some confusion as to which projects do provide valuable reusable test code)

      It'd be nice if we could somehow avoid the redundancy.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                gjoseph Magnolia International
                gjoseph Magnolia International
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: