You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/10/09 06:51:21 UTC
[camel-quarkus] branch master updated: quarkus-camel-catalog (#242)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/master by this push:
new 065cf52 quarkus-camel-catalog (#242)
065cf52 is described below
commit 065cf52ce61ec61859d235353feffbfc02d225e6
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Oct 9 08:51:17 2019 +0200
quarkus-camel-catalog (#242)
Fixes #75: Adding camel-quarkus-catalog
---
catalog/camel-quarkus-catalog/pom.xml | 101 +++++
.../catalog/quarkus/QuarkusRuntimeProvider.java | 146 ++++++++
.../src/main/resources/META-INF/LICENSE.txt | 203 ++++++++++
.../src/main/resources/META-INF/NOTICE.txt | 11 +
.../quarkus/QuarkusRuntimeProviderTest.java | 153 ++++++++
{extensions/reactive-executor => catalog}/pom.xml | 15 +-
extensions/core-cloud/runtime/pom.xml | 7 +
extensions/core/runtime/pom.xml | 7 +
extensions/platform-http/runtime/pom.xml | 7 +
extensions/reactive-executor/pom.xml | 1 +
extensions/reactive-executor/runtime/pom.xml | 7 +
pom.xml | 2 +
tooling/maven/package-maven-plugin/pom.xml | 110 ++++++
.../apache/camel/quarkus/maven/PackageHelper.java | 99 +++++
.../quarkus/maven/PrepareCatalogQuarkusMojo.java | 416 +++++++++++++++++++++
.../src/main/resources/META-INF/LICENSE.txt | 203 ++++++++++
.../src/main/resources/META-INF/NOTICE.txt | 11 +
.../camel-quarkus-package-maven-plugin.properties | 16 +
.../src/main/resources/other-template.mvel | 14 +
.../reactive-executor => tooling/maven}/pom.xml | 18 +-
tooling/parent/pom.xml | 149 ++++++++
{extensions/reactive-executor => tooling}/pom.xml | 16 +-
22 files changed, 1687 insertions(+), 25 deletions(-)
diff --git a/catalog/camel-quarkus-catalog/pom.xml b/catalog/camel-quarkus-catalog/pom.xml
new file mode 100644
index 0000000..4d2c64d
--- /dev/null
+++ b/catalog/camel-quarkus-catalog/pom.xml
@@ -0,0 +1,101 @@
+<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
+ 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.quarkus</groupId>
+ <artifactId>catalog</artifactId>
+ <version>0.2.1-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>camel-catalog-quarkus</artifactId>
+ <packaging>jar</packaging>
+ <name>Camel Quarkus :: Camel Quarkus Catalog</name>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-catalog</artifactId>
+ <version>${camel.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.12</version>
+ <scope>test</scope>
+ </dependency>
+
+ <!-- logging -->
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-api</artifactId>
+ <version>2.12.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-core</artifactId>
+ <version>2.12.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-slf4j-impl</artifactId>
+ <version>2.12.1</version>
+ <scope>test</scope>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <plugins>
+
+ <!-- generate and include all components in the catalog -->
+ <plugin>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-package-maven-plugin</artifactId>
+ <version>${project.version}</version>
+ <dependencies>
+ <!-- include camel-catalog on classpath -->
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-catalog</artifactId>
+ <version>${camel.version}</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <goals>
+ <goal>prepare-catalog-quarkus</goal>
+ </goals>
+ <phase>process-resources</phase>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+
+ </build>
+
+</project>
diff --git a/catalog/camel-quarkus-catalog/src/main/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProvider.java b/catalog/camel-quarkus-catalog/src/main/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProvider.java
new file mode 100644
index 0000000..b1c37c6
--- /dev/null
+++ b/catalog/camel-quarkus-catalog/src/main/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProvider.java
@@ -0,0 +1,146 @@
+/*
+ * 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.
+ */
+package org.apache.camel.catalog.quarkus;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.camel.catalog.CamelCatalog;
+import org.apache.camel.catalog.CatalogHelper;
+import org.apache.camel.catalog.RuntimeProvider;
+
+/**
+ * A Quarkus based {@link RuntimeProvider} which only includes the supported Camel components, data formats, and languages
+ * which can be installed in Quarkus using the Camel extensions.
+ */
+public class QuarkusRuntimeProvider implements RuntimeProvider {
+
+ private static final String COMPONENT_DIR = "org/apache/camel/catalog/quarkus/components";
+ private static final String DATAFORMAT_DIR = "org/apache/camel/catalog/quarkus/dataformats";
+ private static final String LANGUAGE_DIR = "org/apache/camel/catalog/quarkus/languages";
+ private static final String OTHER_DIR = "org/apache/camel/catalog/quarkus/others";
+ private static final String COMPONENTS_CATALOG = "org/apache/camel/catalog/quarkus/components.properties";
+ private static final String DATA_FORMATS_CATALOG = "org/apache/camel/catalog/quarkus/dataformats.properties";
+ private static final String LANGUAGE_CATALOG = "org/apache/camel/catalog/quarkus/languages.properties";
+ private static final String OTHER_CATALOG = "org/apache/camel/catalog/quarkus/others.properties";
+
+ private CamelCatalog camelCatalog;
+
+ @Override
+ public CamelCatalog getCamelCatalog() {
+ return camelCatalog;
+ }
+
+ @Override
+ public void setCamelCatalog(CamelCatalog camelCatalog) {
+ this.camelCatalog = camelCatalog;
+ }
+
+ @Override
+ public String getProviderName() {
+ return "quarkus";
+ }
+
+ @Override
+ public String getProviderGroupId() {
+ return "org.apache.camel.quarkus";
+ }
+
+ @Override
+ public String getProviderArtifactId() {
+ return "camel-quarkus-catalog";
+ }
+
+ @Override
+ public String getComponentJSonSchemaDirectory() {
+ return COMPONENT_DIR;
+ }
+
+ @Override
+ public String getDataFormatJSonSchemaDirectory() {
+ return DATAFORMAT_DIR;
+ }
+
+ @Override
+ public String getLanguageJSonSchemaDirectory() {
+ return LANGUAGE_DIR;
+ }
+
+ @Override
+ public String getOtherJSonSchemaDirectory() {
+ return OTHER_DIR;
+ }
+
+ @Override
+ public List<String> findComponentNames() {
+ List<String> names = new ArrayList<>();
+ InputStream is = camelCatalog.getVersionManager().getResourceAsStream(COMPONENTS_CATALOG);
+ if (is != null) {
+ try {
+ CatalogHelper.loadLines(is, names);
+ } catch (IOException e) {
+ // ignore
+ }
+ }
+ return names;
+ }
+
+ @Override
+ public List<String> findDataFormatNames() {
+ List<String> names = new ArrayList<>();
+ InputStream is = camelCatalog.getVersionManager().getResourceAsStream(DATA_FORMATS_CATALOG);
+ if (is != null) {
+ try {
+ CatalogHelper.loadLines(is, names);
+ } catch (IOException e) {
+ // ignore
+ }
+ }
+ return names;
+ }
+
+ @Override
+ public List<String> findLanguageNames() {
+ List<String> names = new ArrayList<>();
+ InputStream is = camelCatalog.getVersionManager().getResourceAsStream(LANGUAGE_CATALOG);
+ if (is != null) {
+ try {
+ CatalogHelper.loadLines(is, names);
+ } catch (IOException e) {
+ // ignore
+ }
+ }
+ return names;
+ }
+
+ @Override
+ public List<String> findOtherNames() {
+ List<String> names = new ArrayList<>();
+ InputStream is = camelCatalog.getVersionManager().getResourceAsStream(OTHER_CATALOG);
+ if (is != null) {
+ try {
+ CatalogHelper.loadLines(is, names);
+ } catch (IOException e) {
+ // ignore
+ }
+ }
+ return names;
+ }
+
+}
diff --git a/catalog/camel-quarkus-catalog/src/main/resources/META-INF/LICENSE.txt b/catalog/camel-quarkus-catalog/src/main/resources/META-INF/LICENSE.txt
new file mode 100644
index 0000000..6b0b127
--- /dev/null
+++ b/catalog/camel-quarkus-catalog/src/main/resources/META-INF/LICENSE.txt
@@ -0,0 +1,203 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed 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.
+
diff --git a/catalog/camel-quarkus-catalog/src/main/resources/META-INF/NOTICE.txt b/catalog/camel-quarkus-catalog/src/main/resources/META-INF/NOTICE.txt
new file mode 100644
index 0000000..2e215bf
--- /dev/null
+++ b/catalog/camel-quarkus-catalog/src/main/resources/META-INF/NOTICE.txt
@@ -0,0 +1,11 @@
+ =========================================================================
+ == NOTICE file corresponding to the section 4 d of ==
+ == the Apache License, Version 2.0, ==
+ == in this case for the Apache Camel distribution. ==
+ =========================================================================
+
+ This product includes software developed by
+ The Apache Software Foundation (http://www.apache.org/).
+
+ Please read the different LICENSE files present in the licenses directory of
+ this distribution.
diff --git a/catalog/camel-quarkus-catalog/src/test/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProviderTest.java b/catalog/camel-quarkus-catalog/src/test/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProviderTest.java
new file mode 100644
index 0000000..5867c5b
--- /dev/null
+++ b/catalog/camel-quarkus-catalog/src/test/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProviderTest.java
@@ -0,0 +1,153 @@
+/*
+ * 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.
+ */
+package org.apache.camel.catalog.quarkus;
+
+import java.util.List;
+
+import org.apache.camel.catalog.CamelCatalog;
+import org.apache.camel.catalog.DefaultCamelCatalog;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+
+public class QuarkusRuntimeProviderTest {
+
+ static CamelCatalog catalog;
+
+ @BeforeClass
+ public static void createCamelCatalog() {
+ catalog = new DefaultCamelCatalog();
+ catalog.setRuntimeProvider(new QuarkusRuntimeProvider());
+ }
+
+ @Test
+ public void testGetVersion() throws Exception {
+ String version = catalog.getCatalogVersion();
+ assertNotNull(version);
+
+ String loaded = catalog.getLoadedVersion();
+ assertNotNull(loaded);
+ assertEquals(version, loaded);
+ }
+
+ @Test
+ public void testProviderName() throws Exception {
+ assertEquals("quarkus", catalog.getRuntimeProvider().getProviderName());
+ }
+
+ @Test
+ public void testFindComponentNames() throws Exception {
+ List<String> names = catalog.findComponentNames();
+
+ assertNotNull(names);
+ assertFalse(names.isEmpty());
+
+ assertTrue(names.contains("aws-eks"));
+ assertTrue(names.contains("bean"));
+ assertTrue(names.contains("direct"));
+ assertTrue(names.contains("imap"));
+ assertTrue(names.contains("imaps"));
+ assertTrue(names.contains("jdbc"));
+ assertTrue(names.contains("log"));
+ assertTrue(names.contains("servlet"));
+ assertTrue(names.contains("twitter-search"));
+ // camel-pax-logging does not work in quarkus
+ assertFalse(names.contains("paxlogging"));
+ }
+
+ @Test
+ public void testFindDataFormatNames() throws Exception {
+ List<String> names = catalog.findDataFormatNames();
+
+ assertNotNull(names);
+ assertFalse(names.isEmpty());
+
+ assertTrue(names.contains("csv"));
+ assertTrue(names.contains("mime-multipart"));
+ assertTrue(names.contains("zipfile"));
+ }
+
+ @Test
+ public void testFindLanguageNames() throws Exception {
+ List<String> names = catalog.findLanguageNames();
+
+ assertNotNull(names);
+ assertFalse(names.isEmpty());
+
+ // core languages
+ assertTrue(names.contains("constant"));
+ assertTrue(names.contains("simple"));
+
+ // quarkus-bean
+ assertTrue(names.contains("bean"));
+
+ // spring expression language are not in quarkus
+ assertFalse(names.contains("spel"));
+ }
+
+ @Test
+ public void testFindOtherNames() throws Exception {
+ List<String> names = catalog.findOtherNames();
+
+ assertNotNull(names);
+ assertFalse(names.isEmpty());
+
+ assertTrue(names.contains("core-cloud"));
+ assertTrue(names.contains("platform-http"));
+ assertTrue(names.contains("reactive-executor"));
+
+ assertFalse(names.contains("blueprint"));
+ assertFalse(names.contains("hystrix"));
+ }
+
+ @Test
+ public void testComponentArtifactId() throws Exception {
+ String json = catalog.componentJSonSchema("salesforce");
+
+ assertNotNull(json);
+ assertTrue(json.contains("camel-quarkus-salesforce"));
+ }
+
+ @Test
+ public void testDataFormatArtifactId() throws Exception {
+ String json = catalog.dataFormatJSonSchema("csv");
+
+ assertNotNull(json);
+ assertTrue(json.contains("camel-quarkus-csv"));
+ }
+
+ @Test
+ public void testLanguageArtifactId() throws Exception {
+ String json = catalog.languageJSonSchema("bean");
+
+ assertNotNull(json);
+ assertTrue(json.contains("camel-quarkus-bean"));
+ }
+
+ @Test
+ public void testOtherArtifactId() throws Exception {
+ String json = catalog.otherJSonSchema("reactive-executor");
+
+ assertNotNull(json);
+ assertTrue(json.contains("camel-quarkus-reactive-executor"));
+ }
+
+}
diff --git a/extensions/reactive-executor/pom.xml b/catalog/pom.xml
similarity index 79%
copy from extensions/reactive-executor/pom.xml
copy to catalog/pom.xml
index 8236bbe..e5a90f6 100644
--- a/extensions/reactive-executor/pom.xml
+++ b/catalog/pom.xml
@@ -19,21 +19,20 @@
-->
<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">
+ <modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.camel.quarkus</groupId>
- <artifactId>camel-quarkus-build-parent</artifactId>
+ <artifactId>camel-quarkus-parent</artifactId>
<version>0.2.1-SNAPSHOT</version>
- <relativePath>../../poms/build-parent/pom.xml</relativePath>
</parent>
- <modelVersion>4.0.0</modelVersion>
-
- <artifactId>camel-quarkus-reactive-executor-parent</artifactId>
- <name>Camel Quarkus :: Core :: Reactive Executor</name>
+ <artifactId>catalog</artifactId>
<packaging>pom</packaging>
+
+ <name>Camel Quarkus :: Catalog</name>
+
<modules>
- <module>deployment</module>
- <module>runtime</module>
+ <module>camel-quarkus-catalog</module>
</modules>
</project>
diff --git a/extensions/core-cloud/runtime/pom.xml b/extensions/core-cloud/runtime/pom.xml
index b054ea5..abfd5d5 100644
--- a/extensions/core-cloud/runtime/pom.xml
+++ b/extensions/core-cloud/runtime/pom.xml
@@ -28,6 +28,13 @@
<artifactId>camel-quarkus-core-cloud</artifactId>
<name>Camel Quarkus :: Core :: Cloud :: Runtime</name>
+ <description>The Camel Quarkus core cloud module</description>
+
+ <properties>
+ <title>Camel Quarkus Core Cloud</title>
+ <firstVersion>0.2.0</firstVersion>
+ <label>core,cloud</label>
+ </properties>
<dependencyManagement>
<dependencies>
diff --git a/extensions/core/runtime/pom.xml b/extensions/core/runtime/pom.xml
index 5683b69..1f68914 100644
--- a/extensions/core/runtime/pom.xml
+++ b/extensions/core/runtime/pom.xml
@@ -27,6 +27,13 @@
<artifactId>camel-quarkus-core</artifactId>
<name>Camel Quarkus :: Core :: Runtime</name>
+ <description>The Camel Quarkus core module</description>
+
+ <properties>
+ <title>Camel Quarkus Core</title>
+ <firstVersion>0.2.0</firstVersion>
+ <label>core</label>
+ </properties>
<dependencyManagement>
<dependencies>
diff --git a/extensions/platform-http/runtime/pom.xml b/extensions/platform-http/runtime/pom.xml
index 73427a6..f8d74b0 100644
--- a/extensions/platform-http/runtime/pom.xml
+++ b/extensions/platform-http/runtime/pom.xml
@@ -30,6 +30,13 @@
<artifactId>camel-quarkus-platform-http</artifactId>
<name>Camel Quarkus :: Platform HTTP :: Runtime</name>
+ <description>HTTP platform component is used for integrating Camel HTTP with Quarkus HTTP layer</description>
+
+ <properties>
+ <title>Camel Quarkus Platform HTTP</title>
+ <firstVersion>0.2.1</firstVersion>
+ <label>core,http</label>
+ </properties>
<dependencyManagement>
<dependencies>
diff --git a/extensions/reactive-executor/pom.xml b/extensions/reactive-executor/pom.xml
index 8236bbe..d668925 100644
--- a/extensions/reactive-executor/pom.xml
+++ b/extensions/reactive-executor/pom.xml
@@ -31,6 +31,7 @@
<artifactId>camel-quarkus-reactive-executor-parent</artifactId>
<name>Camel Quarkus :: Core :: Reactive Executor</name>
<packaging>pom</packaging>
+
<modules>
<module>deployment</module>
<module>runtime</module>
diff --git a/extensions/reactive-executor/runtime/pom.xml b/extensions/reactive-executor/runtime/pom.xml
index 9751130..0a1ea5d 100644
--- a/extensions/reactive-executor/runtime/pom.xml
+++ b/extensions/reactive-executor/runtime/pom.xml
@@ -28,6 +28,13 @@
<artifactId>camel-quarkus-reactive-executor</artifactId>
<name>Camel Quarkus :: Core :: Reactive Executor :: Runtime</name>
+ <description>To use Quarkus reactive executor with Camel</description>
+
+ <properties>
+ <title>Camel Quarkus Reactive Executor</title>
+ <firstVersion>0.2.1</firstVersion>
+ <label>core</label>
+ </properties>
<dependencyManagement>
<dependencies>
diff --git a/pom.xml b/pom.xml
index f93af19..81f7c2d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -74,7 +74,9 @@
<module>poms/bom</module>
<module>poms/bom-deployment</module>
<module>poms/build-parent</module>
+ <module>tooling</module>
<module>extensions</module>
+ <module>catalog</module>
<module>integration-tests</module>
<module>examples</module>
<module>docs</module>
diff --git a/tooling/maven/package-maven-plugin/pom.xml b/tooling/maven/package-maven-plugin/pom.xml
new file mode 100644
index 0000000..3e4af4d
--- /dev/null
+++ b/tooling/maven/package-maven-plugin/pom.xml
@@ -0,0 +1,110 @@
+<?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">
+
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-tooling-maven</artifactId>
+ <version>0.2.1-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>camel-quarkus-package-maven-plugin</artifactId>
+ <packaging>maven-plugin</packaging>
+
+ <name>Camel Quarkus :: Tooling :: Maven :: Camel Quarkus Package Maven Plugin</name>
+ <description>Maven plugin to help package Camel quarkus components and plugins</description>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>tooling-parent</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-core</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-classworlds</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-component-annotations</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-artifact</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.plugin-tools</groupId>
+ <artifactId>maven-plugin-annotations</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-container-default</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-utils</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.sonatype.plexus</groupId>
+ <artifactId>plexus-build-api</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.mvel</groupId>
+ <artifactId>mvel2</artifactId>
+ <version>2.4.4.Final</version>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-plugin-plugin</artifactId>
+ <configuration>
+ <mojoDependencies>
+ <dep>org.apache.maven:maven-plugin-api</dep>
+ </mojoDependencies>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/tooling/maven/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/PackageHelper.java b/tooling/maven/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/PackageHelper.java
new file mode 100644
index 0000000..65b4355
--- /dev/null
+++ b/tooling/maven/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/PackageHelper.java
@@ -0,0 +1,99 @@
+/*
+ * 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.
+ */
+package org.apache.camel.quarkus.maven;
+
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.LineNumberReader;
+
+public final class PackageHelper {
+
+ private PackageHelper() {
+ }
+
+ /**
+ * Loads the entire stream into memory as a String and returns it.
+ * <p/>
+ * <b>Notice:</b> This implementation appends a <tt>\n</tt> as line
+ * terminator at the of the text.
+ * <p/>
+ * Warning, don't use for crazy big streams :)
+ */
+ public static String loadText(InputStream in) throws IOException {
+ StringBuilder builder = new StringBuilder();
+ InputStreamReader isr = new InputStreamReader(in);
+ try {
+ BufferedReader reader = new LineNumberReader(isr);
+ while (true) {
+ String line = reader.readLine();
+ if (line != null) {
+ builder.append(line);
+ builder.append("\n");
+ } else {
+ break;
+ }
+ }
+ return builder.toString();
+ } finally {
+ isr.close();
+ in.close();
+ }
+ }
+
+ /**
+ * Converts the value to use title style instead of dash cased
+ */
+ public static String camelDashToTitle(String value) {
+ StringBuilder sb = new StringBuilder(value.length());
+ boolean dash = false;
+
+ for (char c : value.toCharArray()) {
+ if ('-' == c) {
+ dash = true;
+ continue;
+ }
+
+ if (dash) {
+ sb.append(' ');
+ sb.append(Character.toUpperCase(c));
+ } else {
+ // upper case first
+ if (sb.length() == 0) {
+ sb.append(Character.toUpperCase(c));
+ } else {
+ sb.append(c);
+ }
+ }
+ dash = false;
+ }
+ return sb.toString();
+ }
+
+ public static void writeText(File file, String text) throws IOException {
+ FileOutputStream fos = new FileOutputStream(file, false);
+ try {
+ fos.write(text.getBytes());
+ } finally {
+ fos.close();
+ }
+ }
+
+}
diff --git a/tooling/maven/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/PrepareCatalogQuarkusMojo.java b/tooling/maven/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/PrepareCatalogQuarkusMojo.java
new file mode 100644
index 0000000..906d72b
--- /dev/null
+++ b/tooling/maven/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/PrepareCatalogQuarkusMojo.java
@@ -0,0 +1,416 @@
+/*
+ * 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.
+ */
+package org.apache.camel.quarkus.maven;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.LinkedHashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.execution.MavenSession;
+import org.apache.maven.model.Dependency;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.Component;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.apache.maven.plugins.annotations.ResolutionScope;
+import org.apache.maven.project.MavenProject;
+import org.apache.maven.project.MavenProjectHelper;
+import org.apache.maven.project.ProjectBuilder;
+import org.apache.maven.project.ProjectBuildingException;
+import org.apache.maven.project.ProjectBuildingResult;
+import org.apache.maven.repository.RepositorySystem;
+import org.mvel2.templates.TemplateRuntime;
+
+import static org.apache.camel.quarkus.maven.PackageHelper.camelDashToTitle;
+import static org.apache.camel.quarkus.maven.PackageHelper.loadText;
+import static org.apache.camel.quarkus.maven.PackageHelper.writeText;
+
+/**
+ * Prepares the Quarkus provider camel catalog to include component it supports
+ */
+@Mojo(name = "prepare-catalog-quarkus", threadSafe = true, requiresDependencyCollection = ResolutionScope.COMPILE_PLUS_RUNTIME)
+public class PrepareCatalogQuarkusMojo extends AbstractMojo {
+
+ private static final String[] EXCLUDE_EXTENSIONS = {
+ "http-common", "jetty-common", "support", "xml-common", "xstream-common"
+ };
+
+ private static final Pattern SCHEME_PATTERN = Pattern.compile("\"scheme\": \"(.*)\"");
+ private static final Pattern NAME_PATTERN = Pattern.compile("\"name\": \"(.*)\"");
+ private static final Pattern GROUP_PATTERN = Pattern.compile("\"groupId\": \"(org.apache.camel)\"");
+ private static final Pattern ARTIFACT_PATTERN = Pattern.compile("\"artifactId\": \"camel-(.*)\"");
+ private static final Pattern VERSION_PATTERN = Pattern.compile("\"version\": \"(.*)\"");
+
+ /**
+ * The maven project.
+ */
+ @Parameter(property = "project", required = true, readonly = true)
+ protected MavenProject project;
+
+ @Component
+ private RepositorySystem repositorySystem;
+
+ @Component
+ private ProjectBuilder mavenProjectBuilder;
+
+ @Parameter(defaultValue = "${session}", readonly = true)
+ private MavenSession session;
+
+ @Component
+ private MavenProjectHelper projectHelper;
+
+ /**
+ * The output directory for components catalog
+ */
+ @Parameter(defaultValue = "${project.build.directory}/classes/org/apache/camel/catalog/quarkus/components")
+ protected File componentsOutDir;
+
+ /**
+ * The output directory for dataformats catalog
+ */
+ @Parameter(defaultValue = "${project.build.directory}/classes/org/apache/camel/catalog/quarkus/dataformats")
+ protected File dataFormatsOutDir;
+
+ /**
+ * The output directory for languages catalog
+ */
+ @Parameter(defaultValue = "${project.build.directory}/classes/org/apache/camel/catalog/quarkus/languages")
+ protected File languagesOutDir;
+
+ /**
+ * The output directory for others catalog
+ */
+ @Parameter(defaultValue = "${project.build.directory}/classes/org/apache/camel/catalog/quarkus/others")
+ protected File othersOutDir;
+
+ /**
+ * The directory where all quarkus extension starters are
+ */
+ @Parameter(defaultValue = "${project.build.directory}/../../../extensions")
+ protected File extensionsDir;
+
+ /**
+ * Execute goal.
+ *
+ * @throws MojoExecutionException execution of the main class or one of the
+ * threads it generated failed.
+ * @throws MojoFailureException something bad happened...
+ */
+ @Override
+ public void execute() throws MojoExecutionException, MojoFailureException {
+ Set<String> extensions = findExtensions();
+ Set<String> artifacts = extractArtifactIds(extensions);
+ executeComponents(artifacts);
+ executeLanguages(artifacts);
+ executeDataFormats(artifacts);
+ executeOthers(extensions);
+ }
+
+ private Set<String> extractArtifactIds(Set<String> extensions) throws MojoFailureException {
+ Set<String> answer = new LinkedHashSet<>();
+ for (String extension : extensions) {
+ try {
+ MavenProject extProject = getMavenProject("org.apache.camel.quarkus", "camel-quarkus-" + extension, project.getVersion());
+ // grab camel artifact
+ Optional<Dependency> artifact = extProject.getDependencies().stream()
+ .filter(p -> "org.apache.camel".equals(p.getGroupId()) && "compile".equals(p.getScope()))
+ .findFirst();
+ if (artifact.isPresent()) {
+ String artifactId = artifact.get().getArtifactId();
+ answer.add(artifactId);
+ }
+ } catch (ProjectBuildingException e) {
+ throw new MojoFailureException("Cannot read pom.xml for extension " + extension, e);
+ }
+ }
+ return answer;
+ }
+
+ protected void executeComponents(Set<String> artifactIds) throws MojoExecutionException, MojoFailureException {
+ doExecute(artifactIds, "components", componentsOutDir);
+ }
+
+ protected void executeLanguages(Set<String> artifactIds) throws MojoExecutionException, MojoFailureException {
+ // include core languages (simple, header etc) and refer to camel-quarkus-core
+ Set<String> set = new LinkedHashSet<>();
+ set.add("camel-base");
+ set.addAll(artifactIds);
+
+ doExecute(set, "languages", languagesOutDir);
+ }
+
+ protected void executeDataFormats(Set<String> artifactIds) throws MojoExecutionException, MojoFailureException {
+ doExecute(artifactIds, "dataformats", dataFormatsOutDir);
+ }
+
+ protected void doExecute(Set<String> artifactIds, String kind, File outsDir) throws MojoExecutionException, MojoFailureException {
+ // grab from camel-catalog
+ List<String> catalog;
+ try {
+ InputStream is = getClass().getClassLoader().getResourceAsStream("org/apache/camel/catalog/" + kind + ".properties");
+ String text = loadText(is);
+ catalog = Arrays.asList(text.split("\n"));
+ getLog().debug("Loaded " + catalog.size() + " " + kind + " from camel-catalog");
+ } catch (IOException e) {
+ throw new MojoFailureException("Error loading resource from camel-catalog due " + e.getMessage(), e);
+ }
+
+ // make sure to create out dir
+ outsDir.mkdirs();
+
+ for (String artifactId : artifactIds) {
+ // for quarkus we need to amend the json file to use the quarkus maven GAV
+ List<String> jsonFiles = new ArrayList<>();
+ try {
+ for (String name : catalog) {
+ InputStream is = getClass().getClassLoader().getResourceAsStream("org/apache/camel/catalog/" + kind + "/" + name + ".json");
+ String text = loadText(is);
+ boolean match = text.contains("\"artifactId\": \"" + artifactId + "\"");
+ if (match) {
+ jsonFiles.add(text);
+ }
+ }
+ } catch (IOException e) {
+ throw new MojoFailureException("Cannot read camel-catalog", e);
+ }
+
+ for (String text : jsonFiles) {
+ text = GROUP_PATTERN.matcher(text).replaceFirst("\"groupId\": \"org.apache.camel.quarkus\"");
+ if ("camel-base".equals(artifactId)) {
+ text = ARTIFACT_PATTERN.matcher(text).replaceFirst("\"artifactId\": \"camel-quarkus-core\"");
+ } else {
+ text = ARTIFACT_PATTERN.matcher(text).replaceFirst("\"artifactId\": \"camel-quarkus-$1\"");
+ }
+ text = VERSION_PATTERN.matcher(text).replaceFirst("\"version\": \"" + project.getVersion() + "\"");
+
+ Pattern pattern = null;
+ if ("components".equals(kind)) {
+ pattern = SCHEME_PATTERN;
+ } else if ("languages".equals(kind)) {
+ pattern = NAME_PATTERN;
+ } else if ("dataformats".equals(kind)) {
+ pattern = NAME_PATTERN;
+ }
+
+ Matcher matcher = pattern.matcher(text);
+ if (matcher.find()) {
+ String scheme = matcher.group(1);
+
+ try {
+ File to = new File(outsDir, scheme + ".json");
+ writeText(to, text);
+ } catch (IOException e) {
+ throw new MojoFailureException("Cannot write json file " + scheme, e);
+ }
+ }
+ }
+ }
+
+ File all = new File(outsDir, "../" + kind + ".properties");
+ try {
+ String[] names = outsDir.list();
+ List<String> lines = new ArrayList<>();
+ for (String name : names) {
+ if (name.endsWith(".json")) {
+ // strip out .json from the name
+ String shortName = name.substring(0, name.length() - 5);
+ lines.add(shortName);
+ }
+ }
+ // sort lines
+ Collections.sort(lines);
+ // write properties file
+ String text = String.join("\n", lines);
+ writeText(all, text);
+
+ getLog().info("Added " + lines.size() + " " + kind + " to quarkus-camel-catalog");
+
+ } catch (IOException e) {
+ throw new MojoFailureException("Error writing to file " + all);
+ }
+ }
+
+ protected void executeOthers(Set<String> extensions) throws MojoExecutionException, MojoFailureException {
+ // make sure to create out dir
+ othersOutDir.mkdirs();
+
+ for (String extension : extensions) {
+ // skip if the extension is already one of the following
+ try {
+ boolean component = isComponent(extension);
+ boolean language = isLanguage(extension);
+ boolean dataFormat = isDataFormat(extension);
+ if (component || language || dataFormat) {
+ continue;
+ }
+ } catch (IOException e) {
+ throw new MojoFailureException("Error reading generated files for extension " + extension, e);
+ }
+
+ try {
+ MavenProject extPom = getMavenProject("org.apache.camel.quarkus", "camel-quarkus-" + extension, project.getVersion());
+
+ Map<String, Object> model = new HashMap<>();
+ model.put("name", extension);
+ String title = extPom.getProperties().getProperty("title");
+ if (title == null) {
+ title = camelDashToTitle(extension);
+ }
+ model.put("title", title);
+ model.put("description", extPom.getDescription());
+ if (extPom.getName() != null && extPom.getName().contains("(deprecated)")) {
+ model.put("deprecated", "true");
+ } else {
+ model.put("deprecated", "false");
+ }
+ model.put("firstVersion", extPom.getProperties().getOrDefault("firstVersion", "1.0.0"));
+ model.put("label", extPom.getProperties().getOrDefault("label", "quarkus"));
+ model.put("groupId", "org.apache.camel.quarkus");
+ model.put("artifactId", "camel-quarkus-" + extension);
+ model.put("version", project.getVersion());
+
+ String text = templateOther(model);
+
+ // write new json file
+ File to = new File(othersOutDir, extension + ".json");
+ writeText(to, text);
+
+ } catch (IOException e) {
+ throw new MojoFailureException("Cannot write json file " + extension, e);
+ } catch (ProjectBuildingException e) {
+ throw new MojoFailureException("Error loading pom.xml from extension " + extension, e);
+ }
+ }
+
+ File all = new File(othersOutDir, "../others.properties");
+ try {
+ String[] names = othersOutDir.list();
+ List<String> others = new ArrayList<>();
+ // sort the names
+ for (String name : names) {
+ if (name.endsWith(".json")) {
+ // strip out .json from the name
+ String otherName = name.substring(0, name.length() - 5);
+ others.add(otherName);
+ }
+ }
+
+ Collections.sort(others);
+ // write properties file
+ String text = String.join("\n", others);
+ writeText(all, text);
+
+ getLog().info("Added " + others.size() + " others to quarkus-camel-catalog");
+
+ } catch (IOException e) {
+ throw new MojoFailureException("Error writing to file " + all);
+ }
+ }
+
+ private boolean isComponent(String extension) throws IOException {
+ for (File file : componentsOutDir.listFiles()) {
+ FileInputStream fis = new FileInputStream(file);
+ String text = loadText(fis);
+ fis.close();
+ if (text.contains("camel-quarkus-" + extension)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ private boolean isLanguage(String extension) throws IOException {
+ for (File file : languagesOutDir.listFiles()) {
+ FileInputStream fis = new FileInputStream(file);
+ String text = loadText(fis);
+ fis.close();
+ if (text.contains("camel-quarkus-" + extension)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ private boolean isDataFormat(String extension) throws IOException {
+ for (File file : dataFormatsOutDir.listFiles()) {
+ FileInputStream fis = new FileInputStream(file);
+ String text = loadText(fis);
+ fis.close();
+ if (text.contains("camel-quarkus-" + extension)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ private MavenProject getMavenProject(String groupId, String artifactId, String version) throws ProjectBuildingException {
+ Artifact pomArtifact = repositorySystem.createProjectArtifact(groupId, artifactId, version);
+ ProjectBuildingResult build = mavenProjectBuilder.build(pomArtifact, session.getProjectBuildingRequest());
+ return build.getProject();
+ }
+
+ private String templateOther(Map model) throws MojoExecutionException {
+ try {
+ String template = loadText(getClass().getClassLoader().getResourceAsStream("other-template.mvel"));
+ String out = (String) TemplateRuntime.eval(template, model);
+ return out;
+ } catch (Exception e) {
+ throw new MojoExecutionException("Error processing mvel template. Reason: " + e, e);
+ }
+ }
+
+ private Set<String> findExtensions() {
+ Set<String> answer = new LinkedHashSet<>();
+
+ File[] names = extensionsDir.listFiles();
+ if (names != null) {
+ for (File name : names) {
+ if (name.isDirectory()) {
+ boolean excluded = isExcludedExtension(name.getName());
+ boolean active = new File(name, "pom.xml").exists();
+ if (!excluded && active) {
+ answer.add(name.getName());
+ }
+ }
+ }
+ }
+
+ getLog().info("Found " + answer.size() + " Camel Quarkus Extensions from: " + extensionsDir);
+
+ return answer;
+ }
+
+ private static boolean isExcludedExtension(String name) {
+ return Arrays.asList(EXCLUDE_EXTENSIONS).contains(name);
+ }
+
+}
diff --git a/tooling/maven/package-maven-plugin/src/main/resources/META-INF/LICENSE.txt b/tooling/maven/package-maven-plugin/src/main/resources/META-INF/LICENSE.txt
new file mode 100644
index 0000000..6b0b127
--- /dev/null
+++ b/tooling/maven/package-maven-plugin/src/main/resources/META-INF/LICENSE.txt
@@ -0,0 +1,203 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed 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.
+
diff --git a/tooling/maven/package-maven-plugin/src/main/resources/META-INF/NOTICE.txt b/tooling/maven/package-maven-plugin/src/main/resources/META-INF/NOTICE.txt
new file mode 100644
index 0000000..2e215bf
--- /dev/null
+++ b/tooling/maven/package-maven-plugin/src/main/resources/META-INF/NOTICE.txt
@@ -0,0 +1,11 @@
+ =========================================================================
+ == NOTICE file corresponding to the section 4 d of ==
+ == the Apache License, Version 2.0, ==
+ == in this case for the Apache Camel distribution. ==
+ =========================================================================
+
+ This product includes software developed by
+ The Apache Software Foundation (http://www.apache.org/).
+
+ Please read the different LICENSE files present in the licenses directory of
+ this distribution.
diff --git a/tooling/maven/package-maven-plugin/src/main/resources/camel-quarkus-package-maven-plugin.properties b/tooling/maven/package-maven-plugin/src/main/resources/camel-quarkus-package-maven-plugin.properties
new file mode 100644
index 0000000..fa7a54b
--- /dev/null
+++ b/tooling/maven/package-maven-plugin/src/main/resources/camel-quarkus-package-maven-plugin.properties
@@ -0,0 +1,16 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
diff --git a/tooling/maven/package-maven-plugin/src/main/resources/other-template.mvel b/tooling/maven/package-maven-plugin/src/main/resources/other-template.mvel
new file mode 100644
index 0000000..1d57f31
--- /dev/null
+++ b/tooling/maven/package-maven-plugin/src/main/resources/other-template.mvel
@@ -0,0 +1,14 @@
+{
+ "other": {
+ "name": "@{name}",
+ "kind": "other",
+ "title": "@{title}",
+ "description": "@{description}",
+ "deprecated": @{deprecated},
+ "firstVersion": "@{firstVersion}",
+ "label": "@{label}",
+ "groupId": "@{groupId}",
+ "artifactId": "@{artifactId}",
+ "version": "@{version}"
+ }
+}
\ No newline at end of file
diff --git a/extensions/reactive-executor/pom.xml b/tooling/maven/pom.xml
similarity index 71%
copy from extensions/reactive-executor/pom.xml
copy to tooling/maven/pom.xml
index 8236bbe..95484e7 100644
--- a/extensions/reactive-executor/pom.xml
+++ b/tooling/maven/pom.xml
@@ -17,23 +17,23 @@
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">
+<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">
+ <modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.camel.quarkus</groupId>
- <artifactId>camel-quarkus-build-parent</artifactId>
+ <artifactId>camel-quarkus-tooling</artifactId>
<version>0.2.1-SNAPSHOT</version>
- <relativePath>../../poms/build-parent/pom.xml</relativePath>
</parent>
- <modelVersion>4.0.0</modelVersion>
-
- <artifactId>camel-quarkus-reactive-executor-parent</artifactId>
- <name>Camel Quarkus :: Core :: Reactive Executor</name>
+ <artifactId>camel-quarkus-tooling-maven</artifactId>
<packaging>pom</packaging>
+
+ <name>Camel Quarkus :: Tooling :: Maven</name>
+
<modules>
- <module>deployment</module>
- <module>runtime</module>
+ <module>package-maven-plugin</module>
</modules>
</project>
diff --git a/tooling/parent/pom.xml b/tooling/parent/pom.xml
new file mode 100644
index 0000000..ea88e1f
--- /dev/null
+++ b/tooling/parent/pom.xml
@@ -0,0 +1,149 @@
+<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-tooling</artifactId>
+ <version>0.2.1-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>tooling-parent</artifactId>
+ <packaging>pom</packaging>
+
+ <name>Camel Quarkus :: Tooling Parent</name>
+ <description>Camel Quarkus Tooling Parent POM</description>
+
+ <properties>
+ <maven-version>3.6.2</maven-version>
+ <maven-maven-plugin-descriptor-version>2.2.1</maven-maven-plugin-descriptor-version>
+ <maven-project-version>2.2.1</maven-project-version>
+ <maven-dependency-tree-version>3.0.1</maven-dependency-tree-version>
+ <maven-plugin-annotations-version>3.6.0</maven-plugin-annotations-version>
+ <maven-reporting-api-version>3.0</maven-reporting-api-version>
+ <maven-reporting-impl-version>3.0.0</maven-reporting-impl-version>
+ <maven-resolver-version>1.4.1</maven-resolver-version>
+ <plexus-build-api-version>0.0.7</plexus-build-api-version>
+ <plexus-container-default-version>2.0.0</plexus-container-default-version>
+ <plexus-utils-version>3.2.1</plexus-utils-version>
+ </properties>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-core</artifactId>
+ <version>${maven-version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-jdk14</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>jcl-over-slf4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-nop</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-artifact</artifactId>
+ <version>${maven-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>${maven-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-compat</artifactId>
+ <version>${maven-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.plugin-tools</groupId>
+ <artifactId>maven-plugin-annotations</artifactId>
+ <version>${maven-plugin-annotations-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-descriptor</artifactId>
+ <version>${maven-maven-plugin-descriptor-version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-project</artifactId>
+ <version>${maven-project-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.shared</groupId>
+ <artifactId>maven-dependency-tree</artifactId>
+ <version>${maven-dependency-tree-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.reporting</groupId>
+ <artifactId>maven-reporting-api</artifactId>
+ <version>${maven-reporting-api-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.reporting</groupId>
+ <artifactId>maven-reporting-impl</artifactId>
+ <version>${maven-reporting-impl-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.resolver</groupId>
+ <artifactId>maven-resolver-api</artifactId>
+ <version>${maven-resolver-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.resolver</groupId>
+ <artifactId>maven-resolver-util</artifactId>
+ <version>${maven-resolver-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-container-default</artifactId>
+ <version>${plexus-container-default-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-utils</artifactId>
+ <version>${plexus-utils-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.sonatype.plexus</groupId>
+ <artifactId>plexus-build-api</artifactId>
+ <version>${plexus-build-api-version}</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+</project>
diff --git a/extensions/reactive-executor/pom.xml b/tooling/pom.xml
similarity index 79%
copy from extensions/reactive-executor/pom.xml
copy to tooling/pom.xml
index 8236bbe..adaa167 100644
--- a/extensions/reactive-executor/pom.xml
+++ b/tooling/pom.xml
@@ -19,21 +19,21 @@
-->
<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">
+ <modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.camel.quarkus</groupId>
- <artifactId>camel-quarkus-build-parent</artifactId>
+ <artifactId>camel-quarkus-parent</artifactId>
<version>0.2.1-SNAPSHOT</version>
- <relativePath>../../poms/build-parent/pom.xml</relativePath>
</parent>
- <modelVersion>4.0.0</modelVersion>
-
- <artifactId>camel-quarkus-reactive-executor-parent</artifactId>
- <name>Camel Quarkus :: Core :: Reactive Executor</name>
+ <artifactId>camel-quarkus-tooling</artifactId>
<packaging>pom</packaging>
+
+ <name>Camel Quarkus :: Tooling</name>
+
<modules>
- <module>deployment</module>
- <module>runtime</module>
+ <module>parent</module>
+ <module>maven</module>
</modules>
</project>