@@ -28,7 +28,7 @@ Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
28
28
<artifactId >plugins</artifactId >
29
29
<packaging >jar</packaging >
30
30
<version >1.1-SNAPSHOT</version >
31
- <name >OpenGrok Sample Plugins </name >
31
+ <name >OpenGrok authorization plugins </name >
32
32
33
33
<parent >
34
34
<groupId >org.opensolaris.opengrok</groupId >
@@ -38,8 +38,21 @@ Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
38
38
39
39
<build >
40
40
<sourceDirectory >.</sourceDirectory >
41
+ <!-- TODO: use build-helper:add-test-source to add plugins/UserPlugin/test/ -->
42
+ <testSourceDirectory >LdapPlugin/test</testSourceDirectory >
41
43
44
+ <testResources >
45
+ <testResource >
46
+ <targetPath >opengrok/auth/plugin/</targetPath >
47
+ <directory >LdapPlugin/test/opengrok/auth/plugin/</directory >
48
+ <excludes >
49
+ <exclude >*.java</exclude >
50
+ </excludes >
51
+ </testResource >
52
+ </testResources >
53
+
42
54
<plugins >
55
+
43
56
<plugin >
44
57
<artifactId >maven-compiler-plugin</artifactId >
45
58
<version >2.0.2</version >
@@ -51,6 +64,17 @@ Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
51
64
</includes >
52
65
</configuration >
53
66
</plugin >
67
+
68
+ <plugin >
69
+ <groupId >org.apache.maven.plugins</groupId >
70
+ <artifactId >maven-surefire-plugin</artifactId >
71
+ <configuration >
72
+ <systemPropertyVariables >
73
+ <junit-force-all >true</junit-force-all >
74
+ </systemPropertyVariables >
75
+ </configuration >
76
+ </plugin >
77
+
54
78
</plugins >
55
79
</build >
56
80
@@ -60,10 +84,15 @@ Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
60
84
<artifactId >opengrok-indexer</artifactId >
61
85
<version >${project.version} </version >
62
86
</dependency >
87
+ <dependency >
88
+ <groupId >javax.servlet</groupId >
89
+ <artifactId >servlet-api</artifactId >
90
+ </dependency >
63
91
<dependency >
64
92
<groupId >junit</groupId >
65
93
<artifactId >junit</artifactId >
66
94
<version >4.12</version >
95
+ <scope >test</scope >
67
96
</dependency >
68
97
</dependencies >
69
98
0 commit comments