| <?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-linkedin-parent</artifactId> |
| <version>2.17.0</version> |
| </parent> |
| |
| <artifactId>camel-linkedin-api</artifactId> |
| <name>Camel :: LinkedIn :: API</name> |
| <description>Camel LinkedIn API</description> |
| <packaging>bundle</packaging> |
| |
| <properties> |
| <camel.osgi.export.pkg>org.apache.camel.component.linkedin.api*</camel.osgi.export.pkg> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-core</artifactId> |
| <version>${cxf-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-frontend-jaxrs</artifactId> |
| <version>${cxf-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-rs-security-oauth2</artifactId> |
| <version>${cxf-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-rs-extension-providers</artifactId> |
| <version>${cxf-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>net.sourceforge.htmlunit</groupId> |
| <artifactId>htmlunit</artifactId> |
| <version>${htmlunit.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| </dependency> |
| |
| <!-- logging --> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- testing --> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-rs-client</artifactId> |
| <version>${cxf-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <!-- For debugging wadltojava |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-tools-wadlto-jaxrs</artifactId> |
| <version>${cxf-version}</version> |
| <scope>test<scope> |
| </dependency> |
| --> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| |
| <!-- uncomment to validate XSD since wadl2java doesn't report line numbers in errors --> |
| <!-- |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>jaxb2-maven-plugin</artifactId> |
| <version>1.6</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>xjc</goal> |
| </goals> |
| <configuration> |
| <target>2.1</target> |
| <schemaDirectory>src/main/resources</schemaDirectory> |
| <schemaFiles>linkedin-api-schema.xsd</schemaFiles> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| --> |
| |
| <!-- Generate API from WADL --> |
| <plugin> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-wadl2java-plugin</artifactId> |
| <version>${cxf-version}</version> |
| <executions> |
| <execution> |
| <id>generate-wadl-sources</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>wadl2java</goal> |
| </goals> |
| <configuration> |
| <sourceRoot>${project.build.directory}/generated-sources/cxf</sourceRoot> |
| <wadlOptions> |
| <wadlOption> |
| <wadl>${project.basedir}/src/main/resources/linkedin-api-wadl.xml</wadl> |
| <packagename>org.apache.camel.component.linkedin.api</packagename> |
| <bindingFiles> |
| <bindingFile>${project.basedir}/src/main/resources/linkedin-api-schema.xjb</bindingFile> |
| </bindingFiles> |
| <extraargs> |
| <extraarg>-verbose</extraarg> |
| <extraarg>-generateEnums</extraarg> |
| <extraarg>-xjc-quiet</extraarg> |
| </extraargs> |
| </wadlOption> |
| </wadlOptions> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- add generated source to build --> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>add-generated-sources</id> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>${project.build.directory}/generated-sources/cxf</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- to generate API Javadoc --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>add-javadoc</id> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| <configuration> |
| <attach>true</attach> |
| <source>${jdk.version}</source> |
| <quiet>true</quiet> |
| <detectOfflineLinks>false</detectOfflineLinks> |
| <javadocVersion>${jdk.version}</javadocVersion> |
| <encoding>UTF-8</encoding> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| </plugins> |
| </build> |
| |
| <!-- Disable Java 8 doclint checks to avoid Javadoc plugin failures --> |
| <profiles> |
| <profile> |
| <id>doclint-java8-disable</id> |
| <activation> |
| <jdk>[1.8,</jdk> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <configuration> |
| <additionalparam>-Xdoclint:none</additionalparam> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |