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

Pre-configure poms to generate test-jars

XMLWordPrintable

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved: