pom.xml 11.2 KB
Newer Older
1
2
3
4
5
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <parent>
      <groupId>org.ow2.authzforce</groupId>
      <artifactId>authzforce-ce-core</artifactId>
6
      <version>13.3.1-SNAPSHOT</version>
7
8
9
10
      <relativePath>..</relativePath>
   </parent>
   <artifactId>authzforce-ce-core-pdp-testutils</artifactId>
   <name>${project.groupId}:${project.artifactId}</name>
11
   <description>AuthzForce - XACML-compliant Core PDP Test Utilities</description>
12
13
14
15
16
17
18
19
20
21
22
23
24
25
   <url>${project.url}</url>
   <scm>
      <!-- Used by Jenkins - Maven release plugin -->
      <connection>scm:git:${git.url.base}/core.git/pdp-testutils</connection>
      <developerConnection>scm:git:${git.url.base}/core.git/pdp-testutils</developerConnection>
      <tag>HEAD</tag>
      <!-- Publicly browsable repository URL. For example, via Gitlab web UI. -->
      <url>${git.url.base}/core/pdp-testutils</url>
   </scm>
   <!-- distributionManagement defined in parent POM already -->
   <dependencies>
      <dependency>
         <groupId>${project.groupId}</groupId>
         <artifactId>${artifactId.prefix}-core-pdp-engine</artifactId>
26
         <version>13.3.1-SNAPSHOT</version>
27
      </dependency>
cdanger's avatar
cdanger committed
28
29
30
31
      <dependency>
         <groupId>org.mongodb</groupId>
         <artifactId>mongo-java-driver</artifactId>
         <!-- See this issue for compatibility with Jongo: https://github.com/bguerout/jongo/issues/254 -->
32
33
         <!-- Version must match the one defined in Jongo's pom.xml -->
         <version>3.5.0</version>
cdanger's avatar
cdanger committed
34
35
36
37
      </dependency>
      <dependency>
         <groupId>org.jongo</groupId>
         <artifactId>jongo</artifactId>
38
         <version>1.4.0</version>
cdanger's avatar
cdanger committed
39
      </dependency>
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
      <dependency>
         <groupId>junit</groupId>
         <artifactId>junit</artifactId>
      </dependency>
      <!-- Test dependencies -->
      <dependency>
         <groupId>ch.qos.logback</groupId>
         <artifactId>logback-classic</artifactId>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>org.apache.cxf</groupId>
         <artifactId>cxf-rt-frontend-jaxws</artifactId>
         <version>${cxf.version}</version>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>org.apache.cxf</groupId>
         <artifactId>cxf-rt-transports-http-jetty</artifactId>
         <version>${cxf.version}</version>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>org.apache.cxf.services.sts</groupId>
         <artifactId>cxf-services-sts-core</artifactId>
         <version>${cxf.version}</version>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>org.apache.cxf</groupId>
         <artifactId>cxf-testutils</artifactId>
         <version>${cxf.version}</version>
         <scope>test</scope>
      </dependency>
cdanger's avatar
cdanger committed
74
75
76
77
78
79
      <dependency>
         <groupId>de.bwaldvogel</groupId>
         <artifactId>mongo-java-server</artifactId>
         <version>1.7.0</version>
         <scope>test</scope>
      </dependency>
80
81
82
83
84
85
86
87
88
      <!-- /Test dependencies -->
   </dependencies>
   <build>
      <plugins>
         <plugin>
            <!-- Consider combining with Red Hat Victims and OSS Index. More info on Victims vs. Dependency-check: https://bugzilla.redhat.com/show_bug.cgi?id=1388712 -->
            <groupId>org.owasp</groupId>
            <artifactId>dependency-check-maven</artifactId>
            <configuration>
89
               <cveValidForHours>24</cveValidForHours>
90
91
               <!-- The plugin has numerous issues with version matching, which triggers false positives so we need a "suppresion" file for those. More info: https://github.com/jeremylong/DependencyCheck/issues -->
               <suppressionFile>owasp-dependency-check-suppression.xml</suppressionFile>
92
               <failBuildOnAnyVulnerability>true</failBuildOnAnyVulnerability>
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
            </configuration>
            <executions>
               <execution>
                  <goals>
                     <goal>check</goal>
                  </goals>
               </execution>
            </executions>
         </plugin>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-pmd-plugin</artifactId>
            <!-- target JDK already set by parent project's maven.compiler.target property -->
            <configuration>
               <verbose>true</verbose>
               <excludeRoots>
                  <excludeRoot>target/generated-sources/xjc</excludeRoot>
                  <excludeRoot>target/generated-test-sources/xjc</excludeRoot>
                  <excludeRoot>target/generated-test-sources/cxf</excludeRoot>
               </excludeRoots>
            </configuration>
            <executions>
               <execution>
                  <phase>verify</phase>
                  <goals>
                     <goal>check</goal>
                     <goal>cpd-check</goal>
                  </goals>
               </execution>
            </executions>
         </plugin>
         <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>findbugs-maven-plugin</artifactId>
            <configuration>
               <onlyAnalyze>org.ow2.authzforce.*</onlyAnalyze>
               <excludeFilterFile>findbugs-exclude-filter.xml</excludeFilterFile>
            </configuration>
            <executions>
               <execution>
                  <phase>verify</phase>
                  <goals>
                     <goal>check</goal>
                  </goals>
               </execution>
            </executions>
         </plugin>
         <plugin>
            <groupId>com.mycila</groupId>
            <artifactId>license-maven-plugin</artifactId>
            <configuration>
144
               <header>license/alv2-header.txt</header>
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
               <includes>
                  <include>src/main/java/org/ow2/authzforce/**</include>
                  <!-- Include test files also -->
                  <include>src/test/java/org/ow2/authzforce/**</include>
               </includes>
            </configuration>
            <executions>
               <execution>
                  <id>format-sources-license</id>
                  <phase>process-sources</phase>
                  <goals>
                     <goal>format</goal>
                  </goals>
               </execution>
               <execution>
                  <id>format-test-sources-license</id>
                  <phase>process-test-sources</phase>
                  <goals>
                     <goal>format</goal>
                  </goals>
               </execution>
            </executions>
         </plugin>
         <plugin>
            <groupId>org.jvnet.jaxb2.maven2</groupId>
            <artifactId>maven-jaxb2-plugin</artifactId>
            <configuration>
               <!-- debug=true will generate JAXBDebug class. More info: https://github.com/highsource/maven-jaxb2-plugin/wiki/Miscellaneous -->
               <debug>false</debug>
               <strict>false</strict>
               <verbose>true</verbose>
               <removeOldOutput>true</removeOldOutput>
               <extension>true</extension>
               <args>
                  <arg>-Xvalue-constructor</arg>
               </args>
               <plugins>
                  <plugin>
                     <groupId>org.jvnet.jaxb2_commons</groupId>
                     <artifactId>jaxb2-value-constructor</artifactId>
                     <version>${jaxb2-value-constructor.version}</version>
                  </plugin>
               </plugins>
               <useDependenciesAsEpisodes>false</useDependenciesAsEpisodes>
               <episodes>
                  <episode>
                     <groupId>${project.groupId}</groupId>
                     <artifactId>${artifactId.prefix}-xmlns-model</artifactId>
                  </episode>
                  <episode>
                     <groupId>${project.groupId}</groupId>
                     <artifactId>${artifactId.prefix}-xacml-model</artifactId>
                  </episode>
                  <episode>
                     <groupId>${project.groupId}</groupId>
                     <artifactId>${artifactId.prefix}-pdp-ext-model</artifactId>
                  </episode>
               </episodes>
               <catalog>src/main/jaxb/catalog.xml</catalog>
               <bindingDirectory>src/main/jaxb</bindingDirectory>
               <bindingIncludes>
                  <include>bindings.xjb</include>
               </bindingIncludes>
            </configuration>
            <executions>
               <execution>
                  <id>jaxb-generate-test-sources</id>
                  <goals>
                     <goal>generate</goal>
                  </goals>
                  <configuration>
                     <schemaDirectory>src/main/resources</schemaDirectory>
                     <generateDirectory>${project.build.directory}/generated-sources/xjc</generateDirectory>
                     <generatePackage>${project.groupId}.core.pdp.testutil.ext.xmlns</generatePackage>
                     <addCompileSourceRoot>true</addCompileSourceRoot>
                     <addTestCompileSourceRoot>false</addTestCompileSourceRoot>
                  </configuration>
               </execution>
            </executions>
         </plugin>
         <plugin>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-codegen-plugin</artifactId>
            <version>${cxf.version}</version>
            <executions>
               <execution>
                  <phase>generate-sources</phase>
                  <configuration>
                     <sourceRoot>
                        ${basedir}/target/generated-test-sources/cxf
                     </sourceRoot>
                     <wsdlOptions>
                        <wsdlOption>
                           <wsdl>
                              ${basedir}/src/test/resources/org/apache/coheigea/cxf/sts/xacml/common/DoubleItLogical.wsdl
                           </wsdl>
                        </wsdlOption>
                     </wsdlOptions>
                  </configuration>
                  <goals>
                     <goal>wsdl2java</goal>
                  </goals>
               </execution>
            </executions>
         </plugin>
         <!-- Test configuration -->
         <plugin>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
               <skipTests>false</skipTests>
               <systemPropertyVariables>
                  <javax.xml.accessExternalSchema>all</javax.xml.accessExternalSchema>
               </systemPropertyVariables>
258
259
260
               <properties>
                  <property>
                     <name>surefire.testng.verbose</name>
cdanger's avatar
cdanger committed
261
                     <!-- verbosity level from 0 to 10 (10 is the most detailed), or -1 for debug. More info: http://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html -->
262
                     <value>3</value>
263
264
                  </property>
               </properties>
265
266
267
268
269
270
271
272
               <includes>
                  <include>**/MainTest.java</include>
               </includes>
            </configuration>
         </plugin>
      </plugins>
   </build>
</project>