audit-java-client-parent
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.sap.xs.auditlog</groupId> <artifactId>audit-java-client-parent</artifactId> <version>3.1.4</version> </dependency>
<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"> <parent> <groupId>com.sap.ldi</groupId> <version>7.3.0</version> <artifactId>ldi-parent</artifactId> </parent> <modelVersion>4.0.0</modelVersion> <groupId>com.sap.xs.auditlog</groupId> <artifactId>audit-java-client-parent</artifactId> <version>3.1.4</version> <packaging>pom</packaging> <name>XS Audit Log Java Client Parent</name> <properties> <maven.compiler.source>17</maven.compiler.source> <maven.compiler.target>17</maven.compiler.target> <xs.env.version>1.53.0</xs.env.version> <xs.classloader.version>1.6.0</xs.classloader.version> <xs.auditlog.common.version>3.1.3</xs.auditlog.common.version> <xs.user.holder.version>1.1.11</xs.user.holder.version> <jackson.version>2.17.2</jackson.version> <httpclient.version>4.5.14</httpclient.version> <commons-codec.version>1.16.1</commons-codec.version> <auditlog-repository>https://int.repositories.cloud.sap/artifactory/build-milestones/com/sap/xs/auditlog/</auditlog-repository> </properties> <profiles> <profile> <id>dev</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <build.profile.id>dev</build.profile.id> <skip.integration.tests>true</skip.integration.tests> <skip.unit.tests>false</skip.unit.tests> </properties> </profile> <profile> <id>integration-test</id> <properties> <build.profile.id>integration-test</build.profile.id> <skip.integration.tests>false</skip.integration.tests> <skip.unit.tests>true</skip.unit.tests> </properties> </profile> <profile> <id>docker</id> <build> <directory>/gen/target</directory> <plugins> <plugin> <artifactId>exec-maven-plugin</artifactId> <groupId>org.codehaus.mojo</groupId> <version>1.5.0</version> <executions> <execution> <id>Reinstall auditlog</id> <phase>pre-integration-test</phase> <!-- Ensure that the plugin will not be called for the two child modules (we need only one auditlog-reinstall.sh execution) --> <inherited>false</inherited> <goals> <goal>exec</goal> </goals> </execution> </executions> <configuration> <executable>/auditlog/auditlog-reinstall.sh</executable> <arguments> <argument>${auditlog-repository}</argument> <argument>${xs.auditlog.common.version}</argument> </arguments> </configuration> </plugin> </plugins> </build> </profile> </profiles> <modules> <module>api</module> <module>impl</module> </modules> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <!-- Sets the VM argument line used when unit tests are run. --> <argLine> --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.time=ALL-UNNAMED --add-opens java.base/java.time.format=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/sun.nio.fs=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.nio.file=ALL-UNNAMED --add-opens java.logging/java.util.logging=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED --add-opens java.base/sun.security.rsa=ALL-UNNAMED --add-opens java.base/java.util.stream=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/sun.security.pkcs=ALL-UNNAMED --add-opens java.base/sun.security.pkcs=ALL-UNNAMED ${surefireArgLine} </argLine> <excludes> <exclude>**/*IT.java</exclude> </excludes> <skipTests>${skip.unit.tests}</skipTests> </configuration> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.12</version> <executions> <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when Maven the Surefire plugin is executed. --> <execution> <id>pre-unit-test</id> <goals> <goal>prepare-agent</goal> </goals> <configuration> <!-- Sets the path to the file which contains the execution data. --> <destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile> <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. --> <propertyName>surefireArgLine</propertyName> </configuration> </execution> <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. --> <execution> <id>post-unit-test</id> <phase>test</phase> <goals> <goal>report</goal> </goals> <configuration> <!-- Sets the path to the file which contains the execution data. --> <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile> <!-- Sets the output directory for the code coverage report. --> <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>add-integration-test-sources</id> <phase>generate-test-sources</phase> <goals> <goal>add-test-source</goal> </goals> <configuration> <sources> <source>src/integration-test/java</source> </sources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.19.1</version> <executions> <execution> <id>integration-tests</id> <goals> <goal>integration-test</goal> <goal>verify</goal> </goals> <configuration> <skipTests>${skip.integration.tests}</skipTests> <includes> <include>**/AuditLogMessageIT.java</include> </includes> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>