1 <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/maven-v4_0_0.xsd"> 2 <!-- 3 Copyright (C) 2006 Joe Walnes. 4 Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 XStream committers. 5 All rights reserved. 6 7 The software in this package is published under the terms of the BSD 8 style license a copy of which has been included with this distribution in 9 the LICENSE.txt file. 10 11 Created on 29. July 2006 by Mauro Talevi 12 --> 13 <modelVersion>4.0.0</modelVersion> 14 <parent> 15 <groupId>com.thoughtworks.xstream</groupId> 16 <artifactId>xstream-parent</artifactId> 17 <version>1.4.8</version> 18 </parent> 19 <artifactId>xstream</artifactId> 20 <packaging>jar</packaging> 21 <name>XStream Core</name> 22 23 <dependencies> 24 <dependency> 25 <groupId>dom4j</groupId> 26 <artifactId>dom4j</artifactId> 27 <optional>true</optional> 28 </dependency> 29 30 <dependency> 31 <groupId>org.jdom</groupId> 32 <artifactId>jdom</artifactId> 33 <optional>true</optional> 34 </dependency> 35 <dependency> 36 <groupId>org.jdom</groupId> 37 <artifactId>jdom2</artifactId> 38 <optional>true</optional> 39 </dependency> 40 41 <dependency> 42 <groupId>joda-time</groupId> 43 <artifactId>joda-time</artifactId> 44 <optional>true</optional> 45 </dependency> 46 47 <dependency> 48 <groupId>stax</groupId> 49 <artifactId>stax</artifactId> 50 <optional>true</optional> 51 </dependency> 52 53 <dependency> 54 <groupId>org.codehaus.woodstox</groupId> 55 <artifactId>wstx-asl</artifactId> 56 <optional>true</optional> 57 </dependency> 58 59 <dependency> 60 <groupId>stax</groupId> 61 <artifactId>stax-api</artifactId> 62 <optional>true</optional> 63 </dependency> 64 65 <dependency> 66 <groupId>xom</groupId> 67 <artifactId>xom</artifactId> 68 <optional>true</optional> 69 </dependency> 70 71 <dependency> 72 <groupId>xmlpull</groupId> 73 <artifactId>xmlpull</artifactId> 74 </dependency> 75 76 <dependency> 77 <groupId>net.sf.kxml</groupId> 78 <artifactId>kxml2-min</artifactId> 79 <optional>true</optional> 80 </dependency> 81 82 <dependency> 83 <groupId>net.sf.kxml</groupId> 84 <artifactId>kxml2</artifactId> 85 <optional>true</optional> 86 </dependency> 87 88 <dependency> 89 <groupId>xpp3</groupId> 90 <artifactId>xpp3_min</artifactId> 91 </dependency> 92 93 <dependency> 94 <groupId>cglib</groupId> 95 <artifactId>cglib-nodep</artifactId> 96 <optional>true</optional> 97 </dependency> 98 99 <dependency> 100 <groupId>org.codehaus.jettison</groupId> 101 <artifactId>jettison</artifactId> 102 <optional>true</optional> 103 </dependency> 104 105 <!-- test-scoped --> 106 <dependency> 107 <groupId>junit</groupId> 108 <artifactId>junit</artifactId> 109 </dependency> 110 111 <dependency> 112 <groupId>jmock</groupId> 113 <artifactId>jmock</artifactId> 114 </dependency> 115 116 <dependency> 117 <groupId>org.json</groupId> 118 <artifactId>json</artifactId> 119 <scope>test</scope> 120 </dependency> 121 122 <dependency> 123 <groupId>com.megginson.sax</groupId> 124 <artifactId>xml-writer</artifactId> 125 <scope>test</scope> 126 </dependency> 127 128 <dependency> 129 <groupId>oro</groupId> 130 <artifactId>oro</artifactId> 131 <scope>test</scope> 132 </dependency> 133 134 <dependency> 135 <groupId>commons-lang</groupId> 136 <artifactId>commons-lang</artifactId> 137 <scope>test</scope> 138 </dependency> 139 </dependencies> 140 141 <build> 142 <plugins> 143 <plugin> 144 <groupId>org.apache.maven.plugins</groupId> 145 <artifactId>maven-dependency-plugin</artifactId> 146 <executions> 147 <execution> 148 <id>complete-test-classpath</id> 149 <phase>process-test-resources</phase> 150 <goals> 151 <goal>copy</goal> 152 </goals> 153 <configuration> 154 <outputDirectory>target/lib</outputDirectory> 155 <artifactItems> 156 <artifactItem> 157 <groupId>proxytoys</groupId> 158 <artifactId>proxytoys</artifactId> 159 <version>0.2.1</version> 160 </artifactItem> 161 </artifactItems> 162 </configuration> 163 </execution> 164 <execution> 165 <id>collect-dependencies</id> 166 <phase>package</phase> 167 <goals> 168 <goal>copy-dependencies</goal> 169 </goals> 170 <configuration> 171 <outputDirectory>target/dependencies</outputDirectory> 172 <includeScope>runtime</includeScope> 173 </configuration> 174 </execution> 175 </executions> 176 </plugin> 177 <plugin> 178 <groupId>org.apache.maven.plugins</groupId> 179 <artifactId>maven-jar-plugin</artifactId> 180 <executions> 181 <execution> 182 <goals> 183 <goal>test-jar</goal> 184 </goals> 185 <configuration> 186 <includes> 187 <include>**/AbstractAcceptanceTest.*</include> 188 </includes> 189 <archive combine.children="append"> 190 <manifestEntries> 191 <Specification-Title>${project.name} Test</Specification-Title> 192 <Implementation-Title>${project.name} Test</Implementation-Title> 193 </manifestEntries> 194 </archive> 195 </configuration> 196 </execution> 197 </executions> 198 </plugin> 199 </plugins> 200 </build> 201 202 <profiles> 203 <profile> 204 <id>jdk18ge</id> 205 <activation> 206 <jdk>[1.8,)</jdk> 207 </activation> 208 <build> 209 <plugins> 210 <plugin> 211 <groupId>org.apache.maven.plugins</groupId> 212 <artifactId>maven-compiler-plugin</artifactId> 213 <configuration> 214 <compilerArgs> 215 <arg>-XDignore.symbol.file</arg> 216 </compilerArgs> 217 <excludes> 218 <exclude>**/Lambda**</exclude> 219 </excludes> 220 <testExcludes> 221 <exclude>**/Lambda**</exclude> 222 </testExcludes> 223 </configuration> 224 <executions> 225 <execution> 226 <id>compile-jdk18</id> 227 <configuration> 228 <source>1.8</source> 229 <target>1.8</target> 230 <excludes> 231 <exclude>foo</exclude> 232 </excludes> 233 <testExcludes> 234 <exclude>foo</exclude> 235 </testExcludes> 236 </configuration> 237 <goals> 238 <goal>compile</goal> 239 <goal>testCompile</goal> 240 </goals> 241 </execution> 242 </executions> 243 </plugin> 244 <plugin> 245 <groupId>org.apache.maven.plugins</groupId> 246 <artifactId>maven-javadoc-plugin</artifactId> 247 <configuration> 248 <excludePackageNames>com.thoughtworks.xstream.core.util</excludePackageNames> 249 </configuration> 250 </plugin> 251 </plugins> 252 </build> 253 <reporting> 254 <plugins> 255 <plugin> 256 <groupId>org.apache.maven.plugins</groupId> 257 <artifactId>maven-javadoc-plugin</artifactId> 258 <version>${version.plugin.maven.javadoc}</version> 259 <configuration> 260 <excludePackageNames>com.thoughtworks.xstream.core.util</excludePackageNames> 261 <additionalparam>${javadoc.xdoclint}</additionalparam> 262 <detectJavaApiLink>false</detectJavaApiLink> 263 <source>${version.java.source}</source> 264 <links> 265 <link>${link.javadoc.javase}</link> 266 </links> 267 </configuration> 268 </plugin> 269 </plugins> 270 </reporting> 271 </profile> 272 <profile> 273 <id>jdk17</id> 274 <activation> 275 <jdk>1.7</jdk> 276 </activation> 277 <build> 278 <plugins> 279 <plugin> 280 <groupId>org.apache.maven.plugins</groupId> 281 <artifactId>maven-compiler-plugin</artifactId> 282 <configuration> 283 <compilerArgs> 284 <arg>-XDignore.symbol.file</arg> 285 </compilerArgs> 286 <excludes> 287 <exclude>**/Lambda**</exclude> 288 </excludes> 289 <testExcludes> 290 <exclude>**/Lambda**</exclude> 291 </testExcludes> 292 </configuration> 293 </plugin> 294 </plugins> 295 </build> 296 </profile> 297 <profile> 298 <id>jdk15-16</id> 299 <activation> 300 <jdk>[1.5,1.7)</jdk> 301 </activation> 302 <build> 303 <plugins> 304 <plugin> 305 <groupId>org.apache.maven.plugins</groupId> 306 <artifactId>maven-compiler-plugin</artifactId> 307 <configuration> 308 <compilerArgs> 309 <arg>-XDignore.symbol.file</arg> 310 </compilerArgs> 311 <excludes> 312 <exclude>**/Lambda**</exclude> 313 </excludes> 314 <testExcludes> 315 <exclude>**/Lambda**</exclude> 316 <exclude>**/extended/*17Test*</exclude> 317 </testExcludes> 318 </configuration> 319 </plugin> 320 </plugins> 321 </build> 322 </profile> 323 <profile> 324 <id>jdk15-ge</id> 325 <activation> 326 <jdk>[1.5,)</jdk> 327 </activation> 328 <build> 329 <plugins> 330 <plugin> 331 <groupId>org.apache.maven.plugins</groupId> 332 <artifactId>maven-jar-plugin</artifactId> 333 <executions> 334 <execution> 335 <id>default-jar</id> 336 <goals> 337 <goal>jar</goal> 338 </goals> 339 <configuration> 340 <archive combine.children="append"> 341 <manifestFile>${project.build.directory}/OSGi/MANIFEST.MF</manifestFile> 342 </archive> 343 </configuration> 344 </execution> 345 </executions> 346 </plugin> 347 <plugin> 348 <groupId>org.apache.maven.plugins</groupId> 349 <artifactId>maven-source-plugin</artifactId> 350 </plugin> 351 <plugin> 352 <groupId>org.apache.felix</groupId> 353 <artifactId>maven-bundle-plugin</artifactId> 354 <configuration> 355 <instructions combine.children="append"> 356 <Export-Package>!com.thoughtworks.xstream.core.util,com.thoughtworks.xstream.*;-noimport:=true</Export-Package> 357 </instructions> 358 </configuration> 359 </plugin> 360 </plugins> 361 </build> 362 </profile> 363 <profile> 364 <id>jdk14</id> 365 <activation> 366 <jdk>1.4</jdk> 367 </activation> 368 <build> 369 <plugins> 370 <plugin> 371 <groupId>org.apache.maven.plugins</groupId> 372 <artifactId>maven-compiler-plugin</artifactId> 373 <configuration> 374 <excludes> 375 <exclude>**/Lambda**</exclude> 376 <exclude>**/annotations/*</exclude> 377 <exclude>**/AnnotationMapper*</exclude> 378 <exclude>**/EnumMapper*</exclude> 379 <exclude>**/enums/*</exclude> 380 <exclude>**/basic/StringBuilder*</exclude> 381 <exclude>**/basic/UUID*</exclude> 382 <exclude>**/core/util/Types*</exclude> 383 <exclude>**/extended/*15*</exclude> 384 <exclude>**/io/xml/JDom2*</exclude> 385 </excludes> 386 <testExcludes> 387 <exclude>**/Lambda**</exclude> 388 <exclude>**/annotations/*</exclude> 389 <exclude>**/enums/*</exclude> 390 <exclude>**/extended/*17Test*</exclude> 391 <exclude>**/reflection/SunLimitedUnsafeReflectionProviderTest*</exclude> 392 <exclude>**/reflection/PureJavaReflectionProvider15Test*</exclude> 393 <exclude>**/io/xml/JDom2*Test*</exclude> 394 <exclude>**/acceptance/Basic15TypesTest*</exclude> 395 <exclude>**/acceptance/Concurrent15TypesTest*</exclude> 396 </testExcludes> 397 </configuration> 398 </plugin> 399 </plugins> 400 </build> 401 <dependencies> 402 <dependency> 403 <groupId>xml-apis</groupId> 404 <artifactId>xml-apis</artifactId> 405 </dependency> 406 <dependency> 407 <groupId>xerces</groupId> 408 <artifactId>xercesImpl</artifactId> 409 </dependency> 410 </dependencies> 411 <properties> 412 <version.org.codehaus.jettison>1.0.1</version.org.codehaus.jettison> 413 </properties> 414 </profile> 415 </profiles> 416 417 <reporting> 418 <plugins> 419 <plugin> 420 <groupId>org.apache.maven.plugins</groupId> 421 <artifactId>maven-surefire-report-plugin</artifactId> 422 <version>${version.plugin.maven.surefire}</version> 423 </plugin> 424 <plugin> 425 <groupId>org.codehaus.mojo</groupId> 426 <artifactId>cobertura-maven-plugin</artifactId> 427 <version>${version.plugin.mojo.cobertura}</version> 428 </plugin> 429 </plugins> 430 </reporting> 431 432 </project> 433