| <?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.camel</groupId> |
| <artifactId>camel-dhis2-parent</artifactId> |
| <version>4.9.0</version> |
| </parent> |
| |
| <artifactId>camel-dhis2</artifactId> |
| <packaging>jar</packaging> |
| <name>Camel :: DHIS2</name> |
| <description>Camel DHIS2 Component</description> |
| |
| <properties> |
| <schemeName>dhis2</schemeName> |
| <componentName>Dhis2</componentName> |
| <componentPackage>org.apache.camel.component.dhis2</componentPackage> |
| <outPackage>org.apache.camel.component.dhis2.internal</outPackage> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-support</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-jackson</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-dhis2-api</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <!-- testing --> |
| <dependency> |
| <groupId>org.testcontainers</groupId> |
| <artifactId>postgresql</artifactId> |
| <version>${testcontainers-version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <defaultGoal>install</defaultGoal> |
| |
| <plugins> |
| <!-- generate Component source and test source --> |
| <plugin> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-api-component-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>generate-test-component-classes</id> |
| <goals> |
| <goal>fromApis</goal> |
| </goals> |
| <configuration> |
| <apis> |
| <api> |
| <apiName>post</apiName> |
| <proxyClass>org.apache.camel.component.dhis2.api.Dhis2Post</proxyClass> |
| <fromJavasource /> |
| <nullableOptions> |
| <nullableOption>resource</nullableOption> |
| <nullableOption>queryParams</nullableOption> |
| </nullableOptions> |
| </api> |
| <api> |
| <apiName>resourceTables</apiName> |
| <proxyClass>org.apache.camel.component.dhis2.api.Dhis2ResourceTables</proxyClass> |
| <fromJavasource /> |
| <nullableOptions> |
| <nullableOption>skipEvents</nullableOption> |
| <nullableOption>skipAggregate</nullableOption> |
| <nullableOption>lastYears</nullableOption> |
| <nullableOption>interval</nullableOption> |
| <nullableOption>async</nullableOption> |
| </nullableOptions> |
| </api> |
| <api> |
| <apiName>get</apiName> |
| <proxyClass>org.apache.camel.component.dhis2.api.Dhis2Get</proxyClass> |
| <fromJavasource /> |
| <nullableOptions> |
| <nullableOption>paging</nullableOption> |
| <nullableOption>fields</nullableOption> |
| <nullableOption>filter</nullableOption> |
| <nullableOption>rootJunction</nullableOption> |
| <nullableOption>queryParams</nullableOption> |
| </nullableOptions> |
| </api> |
| <api> |
| <apiName>delete</apiName> |
| <proxyClass>org.apache.camel.component.dhis2.api.Dhis2Delete</proxyClass> |
| <fromJavasource /> |
| <nullableOptions> |
| <nullableOption>resource</nullableOption> |
| <nullableOption>queryParams</nullableOption> |
| </nullableOptions> |
| </api> |
| <api> |
| <apiName>put</apiName> |
| <proxyClass>org.apache.camel.component.dhis2.api.Dhis2Put</proxyClass> |
| <fromJavasource /> |
| <nullableOptions> |
| <nullableOption>resource</nullableOption> |
| <nullableOption>queryParams</nullableOption> |
| </nullableOptions> |
| </api> |
| </apis> |
| </configuration> |
| </execution> |
| </executions> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-dhis2-api</artifactId> |
| <version>${project.version}</version> |
| <classifier>sources</classifier> |
| </dependency> |
| </dependencies> |
| </plugin> |
| </plugins> |
| |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-api-component-maven-plugin</artifactId> |
| <version>${project.version}</version> |
| <configuration> |
| <scheme>${schemeName}</scheme> |
| <componentName>${componentName}</componentName> |
| <componentPackage>${componentPackage}</componentPackage> |
| <outPackage>${outPackage}</outPackage> |
| <nullableOptions>true</nullableOptions> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| |
| <reporting> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-api-component-maven-plugin</artifactId> |
| <version>${project.version}</version> |
| <configuration> |
| <scheme>${schemeName}</scheme> |
| <componentName>${componentName}</componentName> |
| <componentPackage>${componentPackage}</componentPackage> |
| <outPackage>${outPackage}</outPackage> |
| </configuration> |
| </plugin> |
| </plugins> |
| </reporting> |
| |
| </project> |