| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor |
| license agreements. See the NOTICE file distributed with this work for additional |
| information regarding copyright ownership. The ASF licenses this file to |
| you under the Apache License, Version 2.0 (the "License"); you may not use |
| this file except in compliance with the License. You may obtain a copy of |
| the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required |
| by applicable law or agreed to in writing, software distributed under the |
| License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS |
| OF ANY KIND, either express or implied. See the License for the specific |
| language governing permissions and limitations under the License. --> |
| <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/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.causeway.core</groupId> |
| <artifactId>causeway-core</artifactId> |
| <version>2.0.0-RC1</version> |
| <relativePath>../../core/pom.xml</relativePath> |
| </parent> |
| <artifactId>causeway-schema</artifactId> |
| <packaging>jar</packaging> |
| <name>Apache Causeway Api - Schemas</name> |
| <description> |
| Apache Causeway schemas, for conversion into canonical DTOs (for use in integration scenarios). |
| </description> |
| <properties> |
| <jar-plugin.automaticModuleName>org.apache.causeway.schema</jar-plugin.automaticModuleName> |
| <git-plugin.propertiesDir>org/apache/causeway/schema</git-plugin.propertiesDir> |
| </properties> |
| <dependencies> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-context</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>jakarta.xml.bind</groupId> |
| <artifactId>jakarta.xml.bind-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>jakarta.inject</groupId> |
| <artifactId>jakarta.inject-api</artifactId> |
| </dependency> |
| </dependencies> |
| <profiles> |
| <profile> |
| <id>xsd-to-java</id> |
| <activation> |
| <property> |
| <name>!skip.xsd-to-java</name> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.jvnet.jaxb2.maven2</groupId> |
| <artifactId>maven-jaxb2-plugin</artifactId> |
| <version>0.15.2</version> |
| <executions> |
| <execution> |
| <id>generate-chg-xsd</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| <configuration> |
| <schemaDirectory>src/main/resources/schema</schemaDirectory> |
| <schemaIncludes> |
| <schemaInclude>**/*.xsd</schemaInclude> |
| </schemaIncludes> |
| <bindingDirectory>src/main/resources/schema</bindingDirectory> |
| <bindingIncludes> |
| <bindingInclude>**/bindings.xml</bindingInclude> |
| </bindingIncludes> |
| <args> |
| <arg>-extension</arg> |
| <arg>-Xnamespace-prefix</arg> |
| <arg>-Xannotate</arg> |
| </args> |
| <extension>true</extension> |
| <plugins> |
| <plugin> |
| <groupId>org.jvnet.jaxb2_commons</groupId> |
| <artifactId>jaxb2-basics-annotate</artifactId> |
| <version>1.1.0</version> |
| </plugin> |
| </plugins> |
| </configuration> |
| </execution> |
| </executions> |
| <dependencies> |
| <dependency> |
| <groupId>org.jvnet.jaxb2_commons</groupId> |
| <artifactId>jaxb2-namespace-prefix</artifactId> |
| <version>1.3</version> |
| </dependency> |
| <dependency> |
| <!-- fixes build on JDK 16+ see https://github.com/highsource/maven-jaxb2-plugin/issues/201 --> |
| <groupId>org.glassfish.jaxb</groupId> |
| <artifactId>jaxb-runtime</artifactId> |
| <version>2.3.3</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>3.3.0</version> |
| <executions> |
| <execution> |
| <id>add-source</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>target/generated-sources/xjc</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |