Skip to content

Commit e0ffacc

Browse files
author
Henning Schmiedehausen
committed
Create tests and test-sources jars
There are a number of useful classes (MockFluentd) in the test code which are only accessible if the project builds and distributes test jars.
1 parent ffc1341 commit e0ffacc

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

Diff for: pom.xml

+17-2
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,13 @@
115115
<plugin>
116116
<groupId>org.apache.maven.plugins</groupId>
117117
<artifactId>maven-source-plugin</artifactId>
118-
<version>2.1.2</version>
118+
<version>3.0.1</version>
119119
<executions>
120120
<execution>
121121
<id>attach-sources</id>
122122
<goals>
123-
<goal>jar</goal>
123+
<goal>jar-no-fork</goal>
124+
<goal>test-jar-no-fork</goal>
124125
</goals>
125126
</execution>
126127
</executions>
@@ -151,6 +152,20 @@
151152
<argLine>-Xmx512M</argLine>
152153
</configuration>
153154
</plugin>
155+
<plugin>
156+
<groupId>org.apache.maven.plugins</groupId>
157+
<artifactId>maven-jar-plugin</artifactId>
158+
<version>3.1.1</version>
159+
<executions>
160+
<execution>
161+
<id>default</id>
162+
<phase>package</phase>
163+
<goals>
164+
<goal>test-jar</goal>
165+
</goals>
166+
</execution>
167+
</executions>
168+
</plugin>
154169
</plugins>
155170
</build>
156171

0 commit comments

Comments
 (0)