diff --git a/extensions/create-extension-templates/Processor.java b/extensions/create-extension-templates/Processor.java new file mode 100644 index 000000000000..c718431346f7 --- /dev/null +++ b/extensions/create-extension-templates/Processor.java @@ -0,0 +1,15 @@ +package [=javaPackageBase].deployment; + +import io.quarkus.deployment.annotations.BuildStep; +import io.quarkus.deployment.builditem.FeatureBuildItem; + +class [=artifactIdBaseCamelCase]Processor { + + private static final String FEATURE = "camel-[=artifactIdBase]"; + + @BuildStep + FeatureBuildItem feature() { + return new FeatureBuildItem(FEATURE); + } + +} diff --git a/extensions/create-extension-templates/deployment-pom.xml b/extensions/create-extension-templates/deployment-pom.xml new file mode 100644 index 000000000000..188c1816491a --- /dev/null +++ b/extensions/create-extension-templates/deployment-pom.xml @@ -0,0 +1,45 @@ + + + 4.0.0 + + [=groupId] + [=artifactId]-parent + [=version] + ../pom.xml + + + [=artifactId]-deployment + [=namePrefix][=nameBase][=nameSegmentDelimiter]Deployment + + + + org.apache.camel.quarkus + camel-quarkus-core-deployment + + + org.apache.camel.quarkus + camel-quarkus-[=artifactIdBase] + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + + io.quarkus + quarkus-extension-processor + [=quarkusVersion] + + + + + + + + diff --git a/extensions/create-extension-templates/parent-pom.xml b/extensions/create-extension-templates/parent-pom.xml new file mode 100644 index 000000000000..03ce859fecaa --- /dev/null +++ b/extensions/create-extension-templates/parent-pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + org.apache.camel.quarkus + camel-quarkus-build-parent + [=version] + ../../build-parent/pom.xml + + + [=artifactId]-parent + [=namePrefix][=nameBase][=nameSegmentDelimiter]Parent + pom + + + deployment + runtime + + diff --git a/extensions/create-extension-templates/runtime-pom.xml b/extensions/create-extension-templates/runtime-pom.xml new file mode 100644 index 000000000000..542960614fd6 --- /dev/null +++ b/extensions/create-extension-templates/runtime-pom.xml @@ -0,0 +1,44 @@ + + + 4.0.0 + + [=groupId] + [=artifactId]-parent + [=version] + ../pom.xml + + + [=artifactId] + [=namePrefix][=nameBase][=nameSegmentDelimiter]Runtime + + + + org.apache.camel.quarkus + camel-quarkus-core + + + + + + + io.quarkus + quarkus-bootstrap-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + + + + io.quarkus + quarkus-extension-processor + [=quarkusVersion] + + + + + + + diff --git a/extensions/pom.xml b/extensions/pom.xml index 792b66c07b37..2ae7115afc24 100644 --- a/extensions/pom.xml +++ b/extensions/pom.xml @@ -44,4 +44,25 @@ servlet + + + + io.quarkus + quarkus-maven-plugin + 999-SNAPSHOT + false + + + camel-quarkus- + Camel Quarkus :: + :: + component + file:create-extension-templates + + + + +