Skip to content

Commit 72fc4b0

Browse files
author
Vladimir Kotal
committed
add UserPlugin tests via build-helper plugin
1 parent 94e775b commit 72fc4b0

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

plugins/pom.xml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
3838

3939
<build>
4040
<sourceDirectory>.</sourceDirectory>
41-
<!-- TODO: use build-helper:add-test-source to add plugins/UserPlugin/test/ -->
41+
<!-- Note that the plugins/UserPlugin/test/ directory is added via the build-helper plugin below -->
4242
<testSourceDirectory>LdapPlugin/test</testSourceDirectory>
4343

4444
<testResources>
@@ -75,6 +75,26 @@ Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
7575
</configuration>
7676
</plugin>
7777

78+
<plugin>
79+
<groupId>org.codehaus.mojo</groupId>
80+
<artifactId>build-helper-maven-plugin</artifactId>
81+
<version>1.8</version>
82+
<executions>
83+
<execution>
84+
<id>add-test-source</id>
85+
<phase>generate-test-sources</phase>
86+
<goals>
87+
<goal>add-test-source</goal>
88+
</goals>
89+
<configuration>
90+
<sources>
91+
<directory>UserPlugin/test</directory>
92+
</sources>
93+
</configuration>
94+
</execution>
95+
</executions>
96+
</plugin>
97+
7898
</plugins>
7999
</build>
80100

0 commit comments

Comments
 (0)