diff options
author | 2018-08-14 11:43:17 +0100 | |
---|---|---|
committer | 2018-08-14 11:43:17 +0100 | |
commit | 9b8444de650689fa1361e510a07c252fdc727162 (patch) | |
tree | 95e36aef500f0f7842dbf7b48d4bd053d7bac0a9 /pom.xml | |
parent | 599c988e98782a515ab798b34e5b5825e45e178e (diff) |
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) <TianL@amdocs.com>
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 34 |
1 files changed, 30 insertions, 4 deletions
@@ -48,6 +48,8 @@ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version> <docker.location>${basedir}/target</docker.location> + <aai.schema.source.folder>onap/aai_schema</aai.schema.source.folder> + <aai.schema.target.folder>${project.build.directory}/aai-schema</aai.schema.target.folder> <!-- Dependency Versions --> <common.logging.version>1.2.2</common.logging.version> @@ -63,6 +65,7 @@ <xmlunit.version>1.6</xmlunit.version> <logback.version>1.2.3</logback.version> <guava.version>25.1-jre</guava.version> + <antrun.version>1.8</antrun.version> </properties> <dependencyManagement> @@ -204,8 +207,8 @@ <artifactId>aai-schema</artifactId> <version>${aai-schema.version}</version> <type>jar</type> - <includes>aai_schema/aai_schema_v**.xsd</includes> - <outputDirectory>target/tmp</outputDirectory> + <includes>${aai.schema.source.folder}/aai_schema_v**.xsd</includes> + <outputDirectory>${project.build.directory}/tmp</outputDirectory> </artifactItem> </artifactItems> </configuration> @@ -213,6 +216,29 @@ </executions> </plugin> <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>${antrun.version}</version> + <executions> + <execution> + <id>Flatten XSDs</id> + <phase>initialize</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <target> + <copy todir="${aai.schema.target.folder}" flatten="true"> + <fileset dir="${project.build.directory}/tmp"> + <include name="**/*.xsd" /> + </fileset> + </copy> + </target> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <version>${mvn.jaxb2.version}</version> @@ -225,9 +251,9 @@ </execution> </executions> <configuration> - <schemaDirectory>target/tmp/aai_schema</schemaDirectory> + <schemaDirectory>${aai.schema.target.folder}</schemaDirectory> <generatePackage>org.onap.aai.babel.xml.generator.xsd</generatePackage> - <generateDirectory>target/generated-sources</generateDirectory> + <generateDirectory>${project.build.directory}/generated-sources</generateDirectory> <schemaIncludes> <include>aai_schema_latest.xsd</include> </schemaIncludes> |