This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 5e849eb  [CAMEL-14851] The camel-endpointdsl jar is missing the jandex 
index
5e849eb is described below

commit 5e849eb2d1fde7e8380dd48bb0a7be8730a45fbc
Author: Guillaume Nodet <[email protected]>
AuthorDate: Fri Apr 17 09:34:52 2020 +0200

    [CAMEL-14851] The camel-endpointdsl jar is missing the jandex index
---
 components/pom.xml                                 |  7 ++++
 core/pom.xml                                       |  7 ++++
 .../maven/packaging/GeneratePostCompileMojo.java   | 37 ++++++++++++++++++++++
 3 files changed, 51 insertions(+)

diff --git a/components/pom.xml b/components/pom.xml
index 3d32d68..a241037 100644
--- a/components/pom.xml
+++ b/components/pom.xml
@@ -402,6 +402,13 @@
                         </goals>
                         <phase>process-classes</phase>
                     </execution>
+                    <execution>
+                        <id>generate-postcompile</id>
+                        <goals>
+                            <goal>generate-postcompile</goal>
+                        </goals>
+                        <phase>prepare-package</phase>
+                    </execution>
                 </executions>
             </plugin>
             <plugin>
diff --git a/core/pom.xml b/core/pom.xml
index 13d78b4..a262e8b 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -74,6 +74,13 @@
                         </goals>
                         <phase>process-classes</phase>
                     </execution>
+                    <execution>
+                        <id>generate-postcompile</id>
+                        <goals>
+                            <goal>generate-postcompile</goal>
+                        </goals>
+                        <phase>prepare-package</phase>
+                    </execution>
                 </executions>
             </plugin>
             <plugin>
diff --git 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/GeneratePostCompileMojo.java
 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/GeneratePostCompileMojo.java
new file mode 100644
index 0000000..1bfdb77
--- /dev/null
+++ 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/GeneratePostCompileMojo.java
@@ -0,0 +1,37 @@
+/*
+ * 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.maven.packaging;
+
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.ResolutionScope;
+
+/**
+ * Used by Apache Camel project itself - do NOT use as end user.
+ */
+@Mojo(name = "generate-postcompile", threadSafe = true, 
requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME,
+        defaultPhase = LifecyclePhase.PROCESS_CLASSES)
+public class GeneratePostCompileMojo extends AbstractGenerateMojo {
+
+    protected void doExecute() throws MojoFailureException, 
MojoExecutionException {
+        // jandex
+        invoke(PackageJandexMojo.class);
+    }
+
+}

Reply via email to