From 622aa4f9da06b530847004c4368b24adefe58626 Mon Sep 17 00:00:00 2001 From: David Waltermire Date: Tue, 29 Aug 2023 00:46:00 -0400 Subject: [PATCH] Removed OSCAL schemas from build. Using schemas generated directly from the OSCAL Metaschema modules instead. Streamlined the build removing extra unneeded configurations. Kept some default configurations for readability. --- pom.xml | 84 +++++++++++++++++++-------------------------------------- 1 file changed, 28 insertions(+), 56 deletions(-) diff --git a/pom.xml b/pom.xml index 6226a045..0e5fae19 100644 --- a/pom.xml +++ b/pom.xml @@ -284,18 +284,6 @@ - - - src/main/resources - - - ${project.build.directory}/generated-resources/oscal - - **/*.xsd - **/*.json - - - @@ -419,45 +407,6 @@ - - maven-resources-plugin - - - copy-oscal-xml-schema - generate-resources - - copy-resources - - - - ${project.build.directory}/generated-resources/oscal/schema/xml - - - - ${project.basedir}/oscal/xml/schema - - - - - - copy-oscal-json-schema - generate-resources - - copy-resources - - - - ${project.build.directory}/generated-resources/oscal/schema/json - - - - ${project.basedir}/oscal/json/schema - - - - - - org.codehaus.mojo templating-maven-plugin @@ -474,7 +423,7 @@ com.googlecode.maven-download-plugin download-maven-plugin - 1.6.8 + 1.7.1 true false @@ -553,13 +502,15 @@ ${dependency.metaschema-framework.version} - default-cli + oscal-codegen + generate-sources generate-sources ${project.basedir}/oscal/src/metaschema + ${project.build.directory}/generated-sources/metaschema ${project.basedir}/src/main/metaschema-bindings/oscal-metaschema-bindings.xml @@ -570,7 +521,25 @@ - generate-schemas + generate-xml-schemas + + generate-schemas + + + + ${project.basedir}/oscal/src/metaschema + + ${project.build.directory}/generated-resources/oscal/schema/xml + + oscal_*_metaschema.xml + + + xsd + + + + + generate-json-schemas generate-schemas @@ -578,10 +547,13 @@ ${project.basedir}/oscal/src/metaschema - ${project.build.directory}/generated-resources/metaschema-schema + ${project.build.directory}/generated-resources/oscal/schema/json oscal_*_metaschema.xml + + json + @@ -605,7 +577,7 @@ add-oscal-resources - process-resources + generate-resources add-resource