liboscal-java
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>gov.nist.secauto.oscal</groupId>
<artifactId>liboscal-java</artifactId>
<version>3.0.3</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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>gov.nist.secauto</groupId>
<artifactId>oss-parent</artifactId>
<version>27</version>
</parent>
<groupId>gov.nist.secauto.oscal</groupId>
<artifactId>liboscal-java</artifactId>
<version>3.0.3</version>
<packaging>jar</packaging>
<name>OSCAL Java Library</name>
<description>A Java library that parses XML, JSON, and YAML data
formatted acording to a Metaschema-based model.
</description>
<url>https://github.com/usnistgov/liboscal-java</url>
<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/usnistgov/liboscal-java/issues</url>
</issueManagement>
<scm>
<url>https://github.com/usnistgov/liboscal-java</url>
<connection>scm:git:git@github.com:usnistgov/liboscal-java.git</connection>
<developerConnection>scm:git:git@github.com:usnistgov/liboscal-java.git</developerConnection>
<tag>v3.0.3</tag>
</scm>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<site>
<id>nist-pages</id>
<url>${site.url}</url>
</site>
</distributionManagement>
<licenses>
<license>
<name>NIST License</name>
<url>https://www.nist.gov/director/licensing</url>
<distribution>repo</distribution>
<comments>NIST software License</comments>
</license>
</licenses>
<organization>
<name>National Institute of Standards and Technology</name>
<url>https://www.nist.gov</url>
</organization>
<developers>
<developer>
<id>david.waltermire@nist.gov</id>
<name>David Waltermire</name>
<email>david.waltermire@nist.gov</email>
<organization>National Institute of Standards and Technology
</organization>
<roles>
<role>architect</role>
<role>developer</role>
<role>maintainer</role>
</roles>
</developer>
</developers>
<mailingLists>
<mailingList>
<name>OSCAL NIST Team</name>
<post>oscal@nist.gov</post>
</mailingList>
<mailingList>
<name>OSCAL Project Development Discussion</name>
<post>oscal-dev@nist.gov</post>
<subscribe>oscal-dev-join@nist.gov</subscribe>
<unsubscribe>oscal-dev-leave@nist.gov</unsubscribe>
</mailingList>
<mailingList>
<name>OSCAL Project Updates</name>
<subscribe>oscal-updates-join@nist.gov</subscribe>
<unsubscribe>oscal-updates-leave@nist.gov</unsubscribe>
</mailingList>
</mailingLists>
<properties>
<!-- site configuration -->
<site.url>https://pages.nist.gov/liboscal-java/</site.url>
<scm.url>https://github.com/usnistgov/liboscal-java</scm.url>
<issueManagement.url>https://github.com/usnistgov/liboscal-java/issues</issueManagement.url>
<!--
================================================================================ -->
<!-- Web dependencies version -->
<!--
================================================================================ -->
<anchorJsVesrion>3.2.2</anchorJsVesrion>
<bootstrapVersion>4.4.1</bootstrapVersion>
<bootswatchVersion>4.4.1</bootswatchVersion>
<highlightJsVersion>9.15.7</highlightJsVersion>
<highlightJsTheme>github</highlightJsTheme>
<jqueryVersion>3.4.1</jqueryVersion>
<fontawesomeVersion>5.12.1</fontawesomeVersion>
<popperVersion>1.16.0</popperVersion>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.release>11</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<dependency.metaschema-framework.version>0.12.2</dependency.metaschema-framework.version>
<dependency.auto-service.version>1.1.1</dependency.auto-service.version>
<dependency.commons-lang3.version>3.14.0</dependency.commons-lang3.version>
<dependency.infinispan.version>13.0.10.Final</dependency.infinispan.version>
<dependency.jetbrains-annotation.version>23.0.0</dependency.jetbrains-annotation.version>
<dependency.jmock-junit5.version>2.12.0</dependency.jmock-junit5.version>
<dependency.log4j2.version>2.22.0</dependency.log4j2.version>
<dependency.saxon.version>12.4</dependency.saxon.version>
<dependency.spotbugs-annotations.version>4.7.3</dependency.spotbugs-annotations.version>
<dependency.xmlresolver.version>5.2.3</dependency.xmlresolver.version>
<plugin.cyclonedx.version>2.7.11</plugin.cyclonedx.version>
<plugin.maven-toolchains.version>3.1.0</plugin.maven-toolchains.version>
<cyclonedx.schema.version>1.3</cyclonedx.schema.version>
<oscal-content.commit>main</oscal-content.commit>
<resources.jsonschema.path>schema/json</resources.jsonschema.path>
<resources.xmlschema.path>schema/xml</resources.xmlschema.path>
</properties>
<repositories>
<repository>
<name>Nexus Snapshots</name>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<layout>default</layout>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>apache.snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.xmlresolver</groupId>
<artifactId>xmlresolver</artifactId>
<version>${dependency.xmlresolver.version}</version>
<classifier>data</classifier>
<exclusions>
<exclusion>
<!-- to avoid duplicate import of XML APIs -->
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.xmlresolver</groupId>
<artifactId>xmlresolver</artifactId>
<version>${dependency.xmlresolver.version}</version>
<exclusions>
<exclusion>
<!-- to avoid duplicate import of XML APIs -->
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>gov.nist.secauto.metaschema</groupId>
<artifactId>metaschema-java-binding</artifactId>
<version>${dependency.metaschema-framework.version}</version>
</dependency>
<dependency>
<groupId>com.google.auto.service</groupId>
<artifactId>auto-service</artifactId>
<optional>true</optional>
<version>${dependency.auto-service.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${dependency.commons-lang3.version}</version>
</dependency>
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${dependency.log4j2.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<scope>test</scope>
<version>${dependency.log4j2.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock-junit5</artifactId>
<version>${dependency.jmock-junit5.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock-imposters</artifactId>
<version>${dependency.jmock-junit5.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.25.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.xmlunit</groupId>
<artifactId>xmlunit-core</artifactId>
<version>2.9.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.xmlunit</groupId>
<artifactId>xmlunit-assertj3</artifactId>
<version>2.9.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
<version>${dependency.saxon.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>${project.build.directory}/generated-resources/oscal</directory>
<includes>
<include>**/*.json</include>
</includes>
<targetPath>${resources.jsonschema.path}</targetPath>
</resource>
<resource>
<directory>${project.build.directory}/generated-resources/oscal</directory>
<includes>
<include>**/*.xsd</include>
</includes>
<targetPath>${resources.xmlschema.path}</targetPath>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<version>${plugin.maven-toolchains.version}</version>
<executions>
<execution>
<goals>
<goal>toolchain</goal>
</goals>
</execution>
</executions>
<configuration>
<toolchains>
<jdk>
<version>11</version>
<vendor>temurin</vendor>
</jdk>
</toolchains>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<configuration>
<excludeRoots>
<excludeRoot>target/generated-sources/metaschema</excludeRoot>
</excludeRoots>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<topSiteURL>${site.url}</topSiteURL>
</configuration>
</plugin>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<version>${plugin.cyclonedx.version}</version>
<configuration>
<projectType>library</projectType>
<schemaVersion>${cyclonedx.schema.version}</schemaVersion>
<includeBomSerialNumber>true</includeBomSerialNumber>
<includeCompileScope>true</includeCompileScope>
<includeProvidedScope>false</includeProvidedScope>
<includeRuntimeScope>false</includeRuntimeScope>
<includeSystemScope>false</includeSystemScope>
<includeTestScope>false</includeTestScope>
<includeLicenseText>false</includeLicenseText>
<outputFormat>all</outputFormat>
<outputName>
${project.artifactId}-${project.version}-cyclonedx</outputName>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>makeAggregateBom</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${plugin.spotbugs.version}</version>
<configuration>
<excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>7.0.0</version>
<configuration>
<useNativeGit>false</useNativeGit>
</configuration>
<executions>
<execution>
<id>oscal-git-info</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
<configuration>
<dotGitDirectory>${project.basedir}/oscal/.git</dotGitDirectory>
<prefix>oscal-git</prefix>
</configuration>
</execution>
<execution>
<id>git-info</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
<configuration>
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
<prefix>git</prefix>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-oscal-xml-schema</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/generated-resources/oscal/schema/xml</outputDirectory>
<resources>
<resource>
<directory>
${project.basedir}/oscal/xml/schema</directory>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-oscal-json-schema</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/generated-resources/oscal/schema/json</outputDirectory>
<resources>
<resource>
<directory>
${project.basedir}/oscal/json/schema</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>templating-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>filter-src</id>
<goals>
<goal>filter-sources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.8.0</version>
<configuration>
<skipCache>true</skipCache>
<overwrite>false</overwrite>
</configuration>
<executions>
<execution>
<id>download-catalog-xml</id>
<phase>test-compile</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<uri>
https://raw.githubusercontent.com/usnistgov/oscal-content/${oscal-content.commit}/nist.gov/SP800-53/rev5/xml/NIST_SP-800-53_rev5_catalog.xml</uri>
<outputDirectory>
${project.build.directory}/download/content</outputDirectory>
</configuration>
</execution>
<execution>
<id>download-catalog-json</id>
<phase>test-compile</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<uri>
https://raw.githubusercontent.com/usnistgov/oscal-content/${oscal-content.commit}/nist.gov/SP800-53/rev5/json/NIST_SP-800-53_rev5_catalog.json</uri>
<outputDirectory>
${project.build.directory}/download/content</outputDirectory>
</configuration>
</execution>
<execution>
<id>download-catalog-yaml</id>
<phase>test-compile</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<uri>
https://raw.githubusercontent.com/usnistgov/oscal-content/${oscal-content.commit}/nist.gov/SP800-53/rev5/yaml/NIST_SP-800-53_rev5_catalog.yaml</uri>
<outputDirectory>
${project.build.directory}/download/content</outputDirectory>
</configuration>
</execution>
<execution>
<id>download-low-profile-xml</id>
<phase>test-compile</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<uri>
https://raw.githubusercontent.com/usnistgov/oscal-content/${oscal-content.commit}/nist.gov/SP800-53/rev5/xml/NIST_SP-800-53_rev5_LOW-baseline_profile.xml</uri>
<outputDirectory>
${project.build.directory}/download/content</outputDirectory>
</configuration>
</execution>
<execution>
<id>download-moderate-profile-json</id>
<phase>test-compile</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<uri>
https://raw.githubusercontent.com/usnistgov/oscal-content/${oscal-content.commit}/nist.gov/SP800-53/rev5/json/NIST_SP-800-53_rev5_MODERATE-baseline_profile.json</uri>
<outputDirectory>
${project.build.directory}/download/content</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>gov.nist.secauto.metaschema</groupId>
<artifactId>metaschema-maven-plugin</artifactId>
<version>${dependency.metaschema-framework.version}</version>
<executions>
<execution>
<id>default-cli</id>
<goals>
<goal>generate-sources</goal>
</goals>
<configuration>
<metaschemaDir>
${project.basedir}/oscal/src/metaschema</metaschemaDir>
<configs>
<config>
${project.basedir}/src/main/metaschema-bindings/oscal-metaschema-bindings.xml</config>
</configs>
<includes>
<include>oscal_complete_metaschema.xml</include>
</includes>
</configuration>
</execution>
<execution>
<id>generate-schemas</id>
<goals>
<goal>generate-schemas</goal>
</goals>
<configuration>
<metaschemaDir>
${project.basedir}/oscal/src/metaschema</metaschemaDir>
<outputDirectory>
${project.build.directory}/generated-resources/oscal</outputDirectory>
<includes>
<include>oscal_*_metaschema.xml</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>
${project.build.directory}/generated-sources/metaschema</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-oscal-resources</id>
<phase>process-resources</phase>
<goals>
<goal>add-resource</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>
${project.build.directory}/generated-resources/oscal</directory>
<includes>
<include>**/*.xsd</include>
<include>**/*.json</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<ignoredDependencies>
<ignoredDependency>com.google.auto.service:auto-service</ignoredDependency>
</ignoredDependencies>
<usedDependencies>
<usedDependency>org.apache.logging.log4j:log4j-core</usedDependency>
</usedDependencies>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>