| <?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-google-parent</artifactId> |
| <version>4.9.0</version> |
| </parent> |
| |
| <artifactId>camel-google-mail</artifactId> |
| <packaging>jar</packaging> |
| <name>Camel :: Google :: Mail</name> |
| <description>Camel Component for GoogleMail</description> |
| |
| <properties> |
| <schemeName>google-mail</schemeName> |
| <componentName>GoogleMail</componentName> |
| <componentPackage>org.apache.camel.component.google.mail</componentPackage> |
| <outPackage>org.apache.camel.component.google.mail.internal</outPackage> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-support</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.http-client</groupId> |
| <artifactId>google-http-client</artifactId> |
| <version>${google-cloud-http-client-version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>com.google.code.findbugs</groupId> |
| <artifactId>jsr305</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.google.http-client</groupId> |
| <artifactId>google-http-client-jackson2</artifactId> |
| <version>${google-cloud-http-client-version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>com.google.code.findbugs</groupId> |
| <artifactId>jsr305</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.google.http-client</groupId> |
| <artifactId>google-http-client-gson</artifactId> |
| <version>${google-cloud-http-client-version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>com.google.code.findbugs</groupId> |
| <artifactId>jsr305</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.google.http-client</groupId> |
| <artifactId>google-http-client-apache-v2</artifactId> |
| <version>${google-cloud-http-client-version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>com.google.code.findbugs</groupId> |
| <artifactId>jsr305</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.api-client</groupId> |
| <artifactId>google-api-client</artifactId> |
| <version>${google-api-client-version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>com.google.code.findbugs</groupId> |
| <artifactId>jsr305</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.google.oauth-client</groupId> |
| <artifactId>google-oauth-client</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.google.oauth-client</groupId> |
| <artifactId>google-oauth-client</artifactId> |
| <version>${google-oauth-client-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.oauth-client</groupId> |
| <artifactId>google-oauth-client-jetty</artifactId> |
| <version>${google-oauth-client-version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.google.apis</groupId> |
| <artifactId>google-api-services-gmail</artifactId> |
| <version>${google-api-services-mail-version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>com.google.api-client</groupId> |
| <artifactId>google-api-client</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.eclipse.angus</groupId> |
| <artifactId>angus-mail</artifactId> |
| <version>${angus-mail-version}</version> |
| </dependency> |
| |
| <!-- testing --> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-test-junit5</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>commons-codec</groupId> |
| <artifactId>commons-codec</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| |
| <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>threads</apiName> |
| <proxyClass>com.google.api.services.gmail.Gmail$Users$Threads</proxyClass> |
| <fromJavasource /> |
| </api> |
| <api> |
| <apiName>messages</apiName> |
| <proxyClass>com.google.api.services.gmail.Gmail$Users$Messages</proxyClass> |
| <fromJavasource /> |
| </api> |
| <api> |
| <apiName>attachments</apiName> |
| <proxyClass>com.google.api.services.gmail.Gmail$Users$Messages$Attachments |
| </proxyClass> |
| <fromJavasource /> |
| </api> |
| <api> |
| <apiName>labels</apiName> |
| <proxyClass>com.google.api.services.gmail.Gmail$Users$Labels</proxyClass> |
| <fromJavasource /> |
| </api> |
| <api> |
| <apiName>history</apiName> |
| <proxyClass>com.google.api.services.gmail.Gmail$Users$History</proxyClass> |
| <fromJavasource /> |
| </api> |
| <api> |
| <apiName>drafts</apiName> |
| <proxyClass>com.google.api.services.gmail.Gmail$Users$Drafts</proxyClass> |
| <fromJavasource /> |
| </api> |
| <api> |
| <apiName>users</apiName> |
| <proxyClass>com.google.api.services.gmail.Gmail$Users</proxyClass> |
| <fromJavasource> |
| <includeMethods>getProfile|watch|stop</includeMethods> |
| </fromJavasource> |
| </api> |
| </apis> |
| <substitutions> |
| <substitution> |
| <method>^.+$</method> |
| <argName>content</argName> |
| <argType>com.google.api.services.gmail.model.Channel</argType> |
| <replacement>contentChannel</replacement> |
| </substitution> |
| <substitution> |
| <method>^.+$</method> |
| <argName>content</argName> |
| <argType>com.google.api.services.gmail.model.ModifyMessageRequest</argType> |
| <replacement>modifyMessageRequest</replacement> |
| </substitution> |
| <substitution> |
| <method>^.+$</method> |
| <argName>content</argName> |
| <argType>com.google.api.services.gmail.model.BatchModifyMessagesRequest</argType> |
| <replacement>batchModifyMessagesRequest</replacement> |
| </substitution> |
| <substitution> |
| <method>^.+$</method> |
| <argName>content</argName> |
| <argType>com.google.api.services.gmail.model.BatchDeleteMessagesRequest</argType> |
| <replacement>batchDeleteMessagesRequest</replacement> |
| </substitution> |
| </substitutions> |
| </configuration> |
| </execution> |
| </executions> |
| <dependencies> |
| <!-- Component API to read API signatures --> |
| <dependency> |
| <groupId>com.google.apis</groupId> |
| <artifactId>google-api-services-gmail</artifactId> |
| <version>${google-api-services-mail-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> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| |
| </build> |
| </project> |