Skip to content

Commit

Permalink
Create tests and test-sources jars
Browse files Browse the repository at this point in the history
There are a number of useful classes (MockFluentd) in the test code which are
only accessible if the project builds and distributes test jars.
  • Loading branch information
Henning Schmiedehausen committed Feb 26, 2019
1 parent ffc1341 commit e0ffacc
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,13 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
<goal>jar-no-fork</goal>
<goal>test-jar-no-fork</goal>
</goals>
</execution>
</executions>
Expand Down Expand Up @@ -151,6 +152,20 @@
<argLine>-Xmx512M</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.1</version>
<executions>
<execution>
<id>default</id>
<phase>package</phase>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit e0ffacc

Please sign in to comment.