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 2024/01/28 12:29:23 UTC
(camel) 01/01: maven-plugin-plugin - Add goalPrefix
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch goalprefix
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 9e379f414e43d329157adb53eb358eba7dda04d6
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sun Jan 28 13:29:03 2024 +0100
maven-plugin-plugin - Add goalPrefix
---
catalog/camel-csimple-maven-plugin/pom.xml | 1 +
.../src/main/docs/camel-csimple-maven-plugin.adoc | 9 ++++++++-
.../java/org/apache/camel/maven/GenerateMojo.java | 4 ++--
catalog/camel-report-maven-plugin/pom.xml | 1 +
.../camel-debezium-maven-plugin/pom.xml | 1 +
.../camel-yaml-dsl-maven-plugin/pom.xml | 1 +
tooling/maven/bom-generator-maven-plugin/pom.xml | 1 +
.../maven/camel-api-component-maven-plugin/pom.xml | 1 +
tooling/maven/camel-component-maven-plugin/pom.xml | 1 +
.../pom.xml | 1 +
tooling/maven/camel-maven-plugin/pom.xml | 1 +
tooling/maven/camel-package-maven-plugin/pom.xml | 1 +
tooling/maven/camel-restdsl-openapi-plugin/pom.xml | 19 +++++++++++++++++--
tooling/maven/sync-properties-maven-plugin/pom.xml | 2 ++
14 files changed, 39 insertions(+), 5 deletions(-)
diff --git a/catalog/camel-csimple-maven-plugin/pom.xml b/catalog/camel-csimple-maven-plugin/pom.xml
index e83db05b268..82f35ad2c1a 100644
--- a/catalog/camel-csimple-maven-plugin/pom.xml
+++ b/catalog/camel-csimple-maven-plugin/pom.xml
@@ -139,6 +139,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<configuration>
+ <goalPrefix>camel-csimple</goalPrefix>
<mojoDependencies>
<dep>org.codehaus.mojo:exec-maven-plugin</dep>
<dep>org.apache.maven:maven-plugin-api</dep>
diff --git a/catalog/camel-csimple-maven-plugin/src/main/docs/camel-csimple-maven-plugin.adoc b/catalog/camel-csimple-maven-plugin/src/main/docs/camel-csimple-maven-plugin.adoc
index c609c93f915..413c233b6be 100644
--- a/catalog/camel-csimple-maven-plugin/src/main/docs/camel-csimple-maven-plugin.adoc
+++ b/catalog/camel-csimple-maven-plugin/src/main/docs/camel-csimple-maven-plugin.adoc
@@ -2,7 +2,7 @@
The Camel Compile Simple Maven Plugin supports the following goals
- - camel-report:generate - To generate source code for csimple language
+ - camel-csimple:generate - To generate source code for csimple language
== camel:generate
@@ -39,5 +39,12 @@ The maven plugin *generate* goal supports the following options which can be con
|===
| Parameter | Default Value | Description
+| outputDir | src/generated/java | The output directory for generated source files
+| outputResourceDir | src/generated/resources | The output directory for generated resources files
+| includeJava | true | Whether to include Java files
+| includeXml | true | Whether to include XML files
+| includeTest | false | Whether to include test source code
+| includes | | To filter the names of java and xml files to only include files matching any of the given list of patterns (wildcard and regular expression). Multiple values can be separated by comma.
+| excludes | | To filter the names of java and xml files to exclude files matching any of the given list of patterns (wildcard and regular expression). Multiple values can be separated by comma.
|===
diff --git a/catalog/camel-csimple-maven-plugin/src/main/java/org/apache/camel/maven/GenerateMojo.java b/catalog/camel-csimple-maven-plugin/src/main/java/org/apache/camel/maven/GenerateMojo.java
index caca5a64d3c..039557115b1 100644
--- a/catalog/camel-csimple-maven-plugin/src/main/java/org/apache/camel/maven/GenerateMojo.java
+++ b/catalog/camel-csimple-maven-plugin/src/main/java/org/apache/camel/maven/GenerateMojo.java
@@ -93,13 +93,13 @@ public class GenerateMojo extends AbstractExecMojo {
protected File resourceDir;
/**
- * Whether to include Java files to be validated for invalid Camel endpoints
+ * Whether to include Java files
*/
@Parameter(property = "camel.includeJava", defaultValue = "true")
private boolean includeJava;
/**
- * Whether to include XML files to be validated for invalid Camel endpoints
+ * Whether to include XML files
*/
@Parameter(property = "camel.includeXml", defaultValue = "true")
private boolean includeXml;
diff --git a/catalog/camel-report-maven-plugin/pom.xml b/catalog/camel-report-maven-plugin/pom.xml
index 69b7b27f0a0..149c6722db3 100644
--- a/catalog/camel-report-maven-plugin/pom.xml
+++ b/catalog/camel-report-maven-plugin/pom.xml
@@ -244,6 +244,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<configuration>
+ <goalPrefix>camel-report</goalPrefix>
<mojoDependencies>
<dep>org.codehaus.mojo:exec-maven-plugin</dep>
<dep>org.apache.maven:maven-plugin-api</dep>
diff --git a/components/camel-debezium/camel-debezium-common/camel-debezium-maven-plugin/pom.xml b/components/camel-debezium/camel-debezium-common/camel-debezium-maven-plugin/pom.xml
index f6525d78abb..bb7c7db4571 100644
--- a/components/camel-debezium/camel-debezium-common/camel-debezium-maven-plugin/pom.xml
+++ b/components/camel-debezium/camel-debezium-common/camel-debezium-maven-plugin/pom.xml
@@ -120,6 +120,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<configuration>
+ <goalPrefix>camel-debezium</goalPrefix>
<!-- see http://jira.codehaus.org/browse/MNG-5346 -->
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
<mojoDependencies />
diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl-maven-plugin/pom.xml b/dsl/camel-yaml-dsl/camel-yaml-dsl-maven-plugin/pom.xml
index 9983d52be6e..a2f99d2ae5b 100644
--- a/dsl/camel-yaml-dsl/camel-yaml-dsl-maven-plugin/pom.xml
+++ b/dsl/camel-yaml-dsl/camel-yaml-dsl-maven-plugin/pom.xml
@@ -152,6 +152,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<configuration>
+ <goalPrefix>camel-yaml-dsl</goalPrefix>
<mojoDependencies>
<dep>org.apache.maven:maven-plugin-api</dep>
</mojoDependencies>
diff --git a/tooling/maven/bom-generator-maven-plugin/pom.xml b/tooling/maven/bom-generator-maven-plugin/pom.xml
index 3362a9c968f..2c88500d287 100644
--- a/tooling/maven/bom-generator-maven-plugin/pom.xml
+++ b/tooling/maven/bom-generator-maven-plugin/pom.xml
@@ -117,6 +117,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<configuration>
+ <goalPrefix>bom-generator</goalPrefix>
<mojoDependencies>
<dep>org.apache.maven:maven-plugin-api</dep>
</mojoDependencies>
diff --git a/tooling/maven/camel-api-component-maven-plugin/pom.xml b/tooling/maven/camel-api-component-maven-plugin/pom.xml
index 3f86b7af62c..c0a1ce5fe3e 100644
--- a/tooling/maven/camel-api-component-maven-plugin/pom.xml
+++ b/tooling/maven/camel-api-component-maven-plugin/pom.xml
@@ -156,6 +156,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<configuration>
+ <goalPrefix>camel-api-component</goalPrefix>
<!-- see http://jira.codehaus.org/browse/MNG-5346 -->
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
<mojoDependencies />
diff --git a/tooling/maven/camel-component-maven-plugin/pom.xml b/tooling/maven/camel-component-maven-plugin/pom.xml
index e9cdaa93764..4acc7196d3a 100644
--- a/tooling/maven/camel-component-maven-plugin/pom.xml
+++ b/tooling/maven/camel-component-maven-plugin/pom.xml
@@ -90,6 +90,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<configuration>
+ <goalPrefix>camel-component</goalPrefix>
<!-- see http://jira.codehaus.org/browse/MNG-5346 -->
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
<mojoDependencies />
diff --git a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/pom.xml b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/pom.xml
index 069fbf12de2..d0b384ce067 100644
--- a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/pom.xml
+++ b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/pom.xml
@@ -145,6 +145,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<configuration>
+ <goalPrefix>camel-eip-documentation-enricher</goalPrefix>
<!-- see http://jira.codehaus.org/browse/MNG-5346 -->
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
<mojoDependencies />
diff --git a/tooling/maven/camel-maven-plugin/pom.xml b/tooling/maven/camel-maven-plugin/pom.xml
index 1517e9282ea..a2fcab11b00 100644
--- a/tooling/maven/camel-maven-plugin/pom.xml
+++ b/tooling/maven/camel-maven-plugin/pom.xml
@@ -119,6 +119,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<configuration>
+ <goalPrefix>camel</goalPrefix>
<mojoDependencies>
<dep>org.codehaus.mojo:exec-maven-plugin</dep>
<dep>org.apache.maven:maven-plugin-api</dep>
diff --git a/tooling/maven/camel-package-maven-plugin/pom.xml b/tooling/maven/camel-package-maven-plugin/pom.xml
index 68c1f165efe..8e33591bd2b 100644
--- a/tooling/maven/camel-package-maven-plugin/pom.xml
+++ b/tooling/maven/camel-package-maven-plugin/pom.xml
@@ -197,6 +197,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<configuration>
+ <goalPrefix>camel-package</goalPrefix>
<mojoDependencies>
<dep>org.apache.maven:maven-plugin-api</dep>
</mojoDependencies>
diff --git a/tooling/maven/camel-restdsl-openapi-plugin/pom.xml b/tooling/maven/camel-restdsl-openapi-plugin/pom.xml
index 1041df27f0e..c906386e87a 100644
--- a/tooling/maven/camel-restdsl-openapi-plugin/pom.xml
+++ b/tooling/maven/camel-restdsl-openapi-plugin/pom.xml
@@ -17,7 +17,8 @@
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>
@@ -164,6 +165,20 @@
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <!-- Generate plugin help -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-plugin-plugin</artifactId>
+ <configuration>
+ <goalPrefix>camel-restdsl-openapi</goalPrefix>
+ <mojoDependencies/>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
<profiles>
<profile>
<id>full</id>
@@ -198,7 +213,7 @@
<phase>integration-test</phase>
<goals>
<goal>install</goal>
- <!--<goal>integration-test</goal>-->
+ <!--<goal>integration-test</goal>-->
<goal>verify</goal>
</goals>
</execution>
diff --git a/tooling/maven/sync-properties-maven-plugin/pom.xml b/tooling/maven/sync-properties-maven-plugin/pom.xml
index 0bce680fd8c..1b4c239c9b4 100644
--- a/tooling/maven/sync-properties-maven-plugin/pom.xml
+++ b/tooling/maven/sync-properties-maven-plugin/pom.xml
@@ -114,8 +114,10 @@
<build>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<configuration>
+ <goalPrefix>sync-properties</goalPrefix>
<mojoDependencies>
<dep>org.apache.maven:maven-plugin-api</dep>
</mojoDependencies>