| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <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.apache.arrow</groupId> |
| <artifactId>arrow-memory</artifactId> |
| <version>19.0.0-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>arrow-memory-core</artifactId> |
| |
| <name>Arrow Memory - Core</name> |
| <description>Core off-heap memory management libraries for Arrow ValueVectors.</description> |
| |
| <properties> |
| <!-- List of add-opens arg line arguments for this module's tests --> |
| <surefire.add-opens.argLine>--add-reads=org.apache.arrow.memory.core=ch.qos.logback.classic --add-opens=java.base/java.lang.reflect=org.apache.arrow.memory.core --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED</surefire.add-opens.argLine> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.immutables</groupId> |
| <artifactId>value-annotations</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.checkerframework</groupId> |
| <artifactId>checker-qual</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.google.errorprone</groupId> |
| <artifactId>error_prone_annotations</artifactId> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <compilerArgs combine.children="append"> |
| <arg>-Xmaxerrs</arg> |
| <!-- javac only reports the first 100 errors or warnings --> |
| <arg>10000</arg> |
| <arg>-Xmaxwarns</arg> |
| <arg>10000</arg> |
| <arg>-AskipDefs=.*Test</arg> |
| <!-- Skip analysis for Testing classes --> |
| <arg>-AatfDoNotCache</arg> |
| <!-- not cache results --> |
| </compilerArgs> |
| <annotationProcessorPaths combine.children="append"> |
| <path> |
| <groupId>org.checkerframework</groupId> |
| <artifactId>checker</artifactId> |
| <version>${checker.framework.version}</version> |
| </path> |
| </annotationProcessorPaths> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <argLine>--add-reads=org.apache.arrow.memory.core=ch.qos.logback.classic --add-opens=java.base/java.lang.reflect=org.apache.arrow.memory.core --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED</argLine> |
| <excludes> |
| <!-- Test is only useful when NOT running with add-opens --> |
| <exclude>**/TestOpens.java</exclude> |
| </excludes> |
| </configuration> |
| <executions> |
| <execution> |
| <!-- TestOpens requires no add-opens JVM directives --> |
| <id>opens-tests</id> |
| <goals> |
| <goal>test</goal> |
| </goals> |
| <phase>test</phase> |
| <configuration> |
| <!-- Do not inherit the default add-opens flag and excludes --> |
| <argLine combine.self="override"></argLine> |
| <excludes combine.self="override"></excludes> |
| <includes> |
| <include>**/TestOpens.java</include> |
| </includes> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |