| <?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/xsd/maven-4.0.0.xsd"> |
| <parent> |
| <groupId>org.apache.camel.k</groupId> |
| <artifactId>camel-k-loader-yaml-parent</artifactId> |
| <version>1.5.1-SNAPSHOT</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>camel-k-loader-yaml</artifactId> |
| |
| <dependencies> |
| |
| <!-- ****************************** --> |
| <!-- --> |
| <!-- RUNTIME --> |
| <!-- --> |
| <!-- ****************************** --> |
| |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-core-catalog</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.camel.k</groupId> |
| <artifactId>camel-k-runtime-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel.k</groupId> |
| <artifactId>camel-k-loader-yaml-common</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel.k</groupId> |
| <artifactId>camel-k-loader-yaml-support</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.dataformat</groupId> |
| <artifactId>jackson-dataformat-yaml</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.camel.k</groupId> |
| <artifactId>camel-k-apt</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel.k</groupId> |
| <artifactId>camel-k-annotations</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- ****************************** --> |
| <!-- --> |
| <!-- TESTS --> |
| <!-- --> |
| <!-- ****************************** --> |
| |
| <dependency> |
| <groupId>org.apache.camel.k</groupId> |
| <artifactId>camel-k-test</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-mock</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-direct</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-log</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-bean</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-telegram</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.github.java-json-tools</groupId> |
| <artifactId>json-schema-validator</artifactId> |
| <version>${json-schema-validator-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.spockframework</groupId> |
| <artifactId>spock-core</artifactId> |
| <version>${spock-version}</version> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.codehaus.groovy</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>junit</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>add-source</goal> |
| <goal>add-resource</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>src/generated/java</source> |
| </sources> |
| <resources> |
| <resource> |
| <directory>src/generated/resources</directory> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| <execution> |
| <id>attach-artifacts</id> |
| <phase>package</phase> |
| <goals> |
| <goal>attach-artifact</goal> |
| </goals> |
| <configuration> |
| <artifacts> |
| <artifact> |
| <file>${project.basedir}/src/generated/resources/camel-yaml-dsl.json</file> |
| <type>json</type> |
| <classifier>json-schema</classifier> |
| </artifact> |
| </artifacts> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.camel.k</groupId> |
| <artifactId>camel-k-maven-plugin</artifactId> |
| <version>${project.version}</version> |
| <executions> |
| <execution> |
| <id>generate-yaml-schema</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>generate-yaml-schema</goal> |
| </goals> |
| <configuration> |
| <outputFile>${project.basedir}/src/generated/resources/camel-yaml-dsl.json</outputFile> |
| <bannedDefinitions> |
| <bannedDefinition>org.apache.camel.model.Resilience4jConfigurationDefinition</bannedDefinition> |
| <bannedDefinition>org.apache.camel.model.HystrixConfigurationDefinition</bannedDefinition> |
| <bannedDefinition>org.apache.camel.model.FaultToleranceConfigurationDefinition</bannedDefinition> |
| <bannedDefinition>org.apache.camel.model.OnFallbackDefinition</bannedDefinition> |
| <bannedDefinition>org.apache.camel.model.InOnlyDefinition</bannedDefinition> |
| <bannedDefinition>org.apache.camel.model.InOutDefinition</bannedDefinition> |
| <bannedDefinition>org.apache.camel.model.OtherwiseDefinition</bannedDefinition> |
| <bannedDefinition>org.apache.camel.model.WhenDefinition</bannedDefinition> |
| <bannedDefinition>org.apache.camel.model.config.StreamResequencerConfig</bannedDefinition> |
| <bannedDefinition>org.apache.camel.model.config.BatchResequencerConfig</bannedDefinition> |
| <bannedDefinition>org.apache.camel.model.loadbalancer/**</bannedDefinition> |
| <bannedDefinition>org.apache.camel.model.WireTapDefinition</bannedDefinition> |
| <bannedDefinition>org.apache.camel.model.ToDynamicDefinition</bannedDefinition> |
| </bannedDefinitions> |
| </configuration> |
| </execution> |
| <execution> |
| <id>generate-yaml-endpoint-schema</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>generate-yaml-endpoints-schema</goal> |
| </goals> |
| <configuration> |
| <outputFile>${project.basedir}/src/generated/resources/camel-yaml-endpoint.json</outputFile> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.gmavenplus</groupId> |
| <artifactId>gmavenplus-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>addTestSources</goal> |
| <goal>compileTests</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <invokeDynamic>true</invokeDynamic> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.jboss.jandex</groupId> |
| <artifactId>jandex-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>make-index</id> |
| <goals> |
| <goal>jandex</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |