From: Lee, Tian (tl5884) Date: Tue, 14 Aug 2018 10:43:17 +0000 (+0100) Subject: Fix Babel build issue X-Git-Tag: 1.3.0~16 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fbabel.git;a=commitdiff_plain;h=9b8444de650689fa1361e510a07c252fdc727162 Fix Babel build issue Caused by a change in the structure of the aai-schema jar that Babel depends on. Change-Id: I68575ba0c727826de9a930a5e85c4f077d1127d1 Issue-ID: AAI-1449 Signed-off-by: Lee, Tian (tl5884) --- diff --git a/pom.xml b/pom.xml index 844321b..a950159 100644 --- a/pom.xml +++ b/pom.xml @@ -48,6 +48,8 @@ UTF-8 1.8 ${basedir}/target + onap/aai_schema + ${project.build.directory}/aai-schema 1.2.2 @@ -63,6 +65,7 @@ 1.6 1.2.3 25.1-jre + 1.8 @@ -204,14 +207,37 @@ aai-schema ${aai-schema.version} jar - aai_schema/aai_schema_v**.xsd - target/tmp + ${aai.schema.source.folder}/aai_schema_v**.xsd + ${project.build.directory}/tmp + + org.apache.maven.plugins + maven-antrun-plugin + ${antrun.version} + + + Flatten XSDs + initialize + + run + + + + + + + + + + + + + org.jvnet.jaxb2.maven2 maven-jaxb2-plugin @@ -225,9 +251,9 @@ - target/tmp/aai_schema + ${aai.schema.target.folder} org.onap.aai.babel.xml.generator.xsd - target/generated-sources + ${project.build.directory}/generated-sources aai_schema_latest.xsd diff --git a/scripts/get-latest-xsd-version.sh b/scripts/get-latest-xsd-version.sh index 0529821..0bc6df4 100644 --- a/scripts/get-latest-xsd-version.sh +++ b/scripts/get-latest-xsd-version.sh @@ -1,7 +1,7 @@ basedir=$1 -cd ${basedir}/target/tmp/aai_schema -cp `ls -v | tail -1` ${basedir}/target/tmp/aai_schema/aai_schema_latest.xsd || exit 1 -echo "get-latest-xsd-version.sh has successfully copied aai_schema_latest.xsd to ${basedir}/target/tmp/aai_schema/latest_aai_schema" +cd ${basedir}/target/aai-schema +cp `ls -v | tail -1` ${basedir}/target/aai-schema/aai_schema_latest.xsd || exit 1 +echo "get-latest-xsd-version.sh has successfully copied aai_schema_latest.xsd to ${basedir}/target/aai-schema" exit 0