Repository: camel Updated Branches: refs/heads/master ceefe1714 -> 88b804321
CAMEL-10774: Lets include everthing on that big table page and add counter. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/88b80432 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/88b80432 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/88b80432 Branch: refs/heads/master Commit: 88b80432165f62acd9806407b9b0979f479f3397 Parents: ceefe17 Author: Claus Ibsen <davscl...@apache.org> Authored: Sat Feb 4 10:27:09 2017 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Sat Feb 4 10:27:09 2017 +0100 ---------------------------------------------------------------------- camel-core/readme-eip.adoc | 2 + camel-core/readme.adoc | 6 ++ components/readme.adoc | 83 ++++++++++++++++++++ .../maven/packaging/PrepareReadmeMojo.java | 22 +++--- .../maven/packaging/PrepareUserGuideMojo.java | 2 +- .../maven/packaging/ReadmeComponentMojo.java | 2 +- .../SpringBootAutoConfigurationMojo.java | 2 +- .../maven/packaging/model/ComponentModel.java | 8 +- .../src/main/resources/readme-components.mvel | 2 + .../src/main/resources/readme-dataformats.mvel | 2 + .../src/main/resources/readme-eips.mvel | 2 + .../src/main/resources/readme-languages.mvel | 2 + .../src/main/resources/readme-others.mvel | 2 + 13 files changed, 124 insertions(+), 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/88b80432/camel-core/readme-eip.adoc ---------------------------------------------------------------------- diff --git a/camel-core/readme-eip.adoc b/camel-core/readme-eip.adoc index a31e5b1..0d49abc 100644 --- a/camel-core/readme-eip.adoc +++ b/camel-core/readme-eip.adoc @@ -2,6 +2,8 @@ Enterprise Integration Patterns ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // eips: START +Number of EIPs: 61 + [width="100%",cols="4,6",options="header"] |======================================================================= | EIP | Description http://git-wip-us.apache.org/repos/asf/camel/blob/88b80432/camel-core/readme.adoc ---------------------------------------------------------------------- diff --git a/camel-core/readme.adoc b/camel-core/readme.adoc index a541092..aa50498 100644 --- a/camel-core/readme.adoc +++ b/camel-core/readme.adoc @@ -6,6 +6,8 @@ Components // components: START +Number of Components: 25 + [width="100%",cols="4,1,5",options="header"] |======================================================================= | Component | Available From | Description @@ -101,6 +103,8 @@ Data Formats // dataformats: START +Number of Data Formats: 4 + [width="100%",cols="4,1,5",options="header"] |======================================================================= | Data Format | Available From | Description @@ -129,6 +133,8 @@ Expression Languages // languages: START +Number of Data Formats: 10 + [width="100%",cols="4,1,5",options="header"] |======================================================================= | Language | Available From | Description http://git-wip-us.apache.org/repos/asf/camel/blob/88b80432/components/readme.adoc ---------------------------------------------------------------------- diff --git a/components/readme.adoc b/components/readme.adoc index 97d8140..a7923e7 100644 --- a/components/readme.adoc +++ b/components/readme.adoc @@ -2,6 +2,8 @@ Components ^^^^^^^^^^ // components: START +Number of Components: 217 + [width="100%",cols="4,1,5",options="header"] |======================================================================= | Component | Available From | Description @@ -72,12 +74,18 @@ Components | link:camel-aws/src/main/docs/aws-sdb-component.adoc[AWS SimpleDB] (camel-aws) + `aws-sdb:domainName` | 2.9.0 | The aws-sdb component is for storing and retrieving data from/to Amazon's SDB service. +| link:../camel-core/src/main/docs/bean-component.adoc[Bean] (camel-core) + +`bean:beanName` | 1.0.0 | The bean component is for invoking Java beans from Camel. + | link:camel-bean-validator/src/main/docs/bean-validator-component.adoc[Bean Validator] (camel-bean-validator) + `bean-validator:label` | 2.3.0 | The Validator component performs bean validation of the message body using the Java Bean Validation API. | link:camel-beanstalk/src/main/docs/beanstalk-component.adoc[Beanstalk] (camel-beanstalk) + `beanstalk:connectionSettings` | 2.15.0 | The beanstalk component is used for job retrieval and post-processing of Beanstalk jobs. +| link:../camel-core/src/main/docs/binding-component.adoc[Binding] (camel-core) + +`binding:bindingName:delegateUri` | 2.11.0 | The binding component is used for as a of wrapping an Endpoint in a contract with a data format. + | link:camel-bonita/src/main/docs/bonita-component.adoc[Bonita] (camel-bonita) + `bonita:operation` | 2.19.0 | Camel Bonita support @@ -87,6 +95,9 @@ Components | link:camel-braintree/src/main/docs/braintree-component.adoc[Braintree] (camel-braintree) + `braintree:apiName/methodName` | 2.17.0 | The braintree component is used for integrating with the Braintree Payment System. +| link:../camel-core/src/main/docs/browse-component.adoc[Browse] (camel-core) + +`browse:name` | 1.3.0 | The browse component is used for viewing the messages received on endpoints that supports BrowsableEndpoint. + | link:camel-context/src/main/docs/context-component.adoc[Camel Context] (camel-context) + `context:contextId:localEndpointUrl` | 2.7.0 | *deprecated* The context component allows to send/receive messages between Camel routes in a black box way. @@ -99,6 +110,9 @@ Components | link:camel-chunk/src/main/docs/chunk-component.adoc[Chunk] (camel-chunk) + `chunk:resourceUri` | 2.15.0 | Transforms the message using a Chunk template. +| link:../camel-core/src/main/docs/class-component.adoc[Class] (camel-core) + +`class:beanName` | 2.4.0 | The Class Component is for invoking Java Classes (Java beans) from Camel. + | link:camel-cm-sms/src/main/docs/cm-sms-component.adoc[CM SMS Gateway] (camel-cm-sms) + `cm-sms:host` | 2.18.0 | The influxdb component allows to integrate with CM SMS Gateway. @@ -114,6 +128,9 @@ Components | link:camel-consul/src/main/docs/consul-component.adoc[Consul] (camel-consul) + `consul:apiEndpoint` | 2.18.0 | The camel consul component allows you to work with Consul a distributed highly available datacenter-aware service discovery and configuration system. +| link:../camel-core/src/main/docs/controlbus-component.adoc[Control Bus] (camel-core) + +`controlbus:command:language` | 2.11.0 | The controlbus component provides easy management of Camel applications based on the Control Bus EIP pattern. + | link:camel-couchbase/src/main/docs/couchbase-component.adoc[Couchbase] (camel-couchbase) + `couchbase:url` | 2.19.0 | Represents a Couchbase endpoint that can query Views with a Poll strategy and/or produce various type of operations. @@ -129,6 +146,18 @@ Components | link:camel-cxf/src/main/docs/cxfrs-component.adoc[CXF-RS] (camel-cxf) + `cxfrs:beanId:address` | 2.0.0 | The cxfrs component is used for JAX-RS REST services using Apache CXF. +| link:../camel-core/src/main/docs/dataformat-component.adoc[Data Format] (camel-core) + +`dataformat:name:operation` | 2.12.0 | The dataformat component is used for working with Data Formats as if it was a regular Component supporting Endpoints and URIs. + +| link:../camel-core/src/main/docs/dataset-component.adoc[Dataset] (camel-core) + +`dataset:name` | 1.3.0 | The dataset component provides a mechanism to easily perform load & soak testing of your system. + +| link:../camel-core/src/main/docs/direct-component.adoc[Direct] (camel-core) + +`direct:name` | 1.0.0 | The direct component provides direct synchronous call to another endpoint from the same CamelContext. + +| link:../camel-core/src/main/docs/direct-vm-component.adoc[Direct VM] (camel-core) + +`direct-vm:name` | 2.10.0 | The direct-vm component provides direct synchronous call to another endpoint from any CamelContext in the same JVM. + | link:camel-disruptor/src/main/docs/disruptor-component.adoc[Disruptor] (camel-disruptor) + `disruptor:name` | 2.12.0 | The disruptor component provides asynchronous SEDA behavior using LMAX Disruptor. @@ -174,6 +203,9 @@ Components | link:camel-facebook/src/main/docs/facebook-component.adoc[Facebook] (camel-facebook) + `facebook:methodName` | 2.14.0 | The Facebook component provides access to all of the Facebook APIs accessible using Facebook4J. +| link:../camel-core/src/main/docs/file-component.adoc[File] (camel-core) + +`file:directoryName` | 1.0.0 | The file component is used for reading or writing files. + | link:camel-flatpack/src/main/docs/flatpack-component.adoc[Flatpack] (camel-flatpack) + `flatpack:type:resourceUri` | 1.4.0 | The flatpack component supports fixed width and delimited file parsing via the FlatPack library. @@ -321,12 +353,18 @@ Components | link:camel-kubernetes/src/main/docs/kubernetes-component.adoc[Kubernetes] (camel-kubernetes) + `kubernetes:masterUrl` | 2.17.0 | The kubernetes component allows to work with Kubernetes PaaS. +| link:../camel-core/src/main/docs/language-component.adoc[Language] (camel-core) + +`language:languageName:resourceUri` | 2.5.0 | The language component allows you to send a message to an endpoint which executes a script by any of the supported Languages in Camel. + | link:camel-ldap/src/main/docs/ldap-component.adoc[LDAP] (camel-ldap) + `ldap:dirContextName` | 1.5.0 | The ldap component allows you to perform searches in LDAP servers using filters as the message payload. | link:camel-linkedin/src/main/docs/linkedin-component.adoc[Linkedin] (camel-linkedin) + `linkedin:apiName/methodName` | 2.14.0 | The linkedin component is uses for retrieving LinkedIn user profiles connections companies groups posts etc. +| link:../camel-core/src/main/docs/log-component.adoc[Log] (camel-core) + +`log:loggerName` | 1.1.0 | The log component logs message exchanges to the underlying logging mechanism. + | link:camel-lucene/src/main/docs/lucene-component.adoc[Lucene] (camel-lucene) + `lucene:host:operation` | 2.2.0 | To insert or query from Apache Lucene databases. @@ -345,6 +383,9 @@ Components | link:camel-mllp/src/main/docs/mllp-component.adoc[MLLP] (camel-mllp) + `mllp:hostname:port` | 2.17.0 | The MLLP component is designed to handle the MLLP protocol and provide the functionality required by Healthcare providers to communicate with other systems using the MLLP protocol. +| link:../camel-core/src/main/docs/mock-component.adoc[Mock] (camel-core) + +`mock:name` | 1.0.0 | The mock component is used for testing routes and mediation rules using mocks. + | link:camel-mongodb/src/main/docs/mongodb-component.adoc[MongoDB] (camel-mongodb) + `mongodb:connectionBean` | 2.10.0 | Component for working with documents stored in MongoDB database. @@ -429,6 +470,9 @@ Components | link:camel-printer/src/main/docs/lpr-component.adoc[Printer] (camel-printer) + `lpr:hostname:port/printername` | 2.1.0 | The printer component is used for sending messages to printers as print jobs. +| link:../camel-core/src/main/docs/properties-component.adoc[Properties] (camel-core) + +`properties:key` | 2.3.0 | The properties component is used for using property placeholders in endpoint uris. + | link:camel-quartz/src/main/docs/quartz-component.adoc[Quartz] (camel-quartz) + `quartz:groupName/timerName` | 1.0.0 | *deprecated* Provides a scheduled delivery of messages using the Quartz 1.x scheduler. @@ -444,6 +488,15 @@ Components | link:camel-reactive-streams/src/main/docs/reactive-streams-component.adoc[Reactive Streams] (camel-reactive-streams) + `reactive-streams:stream` | 2.19.0 | The Camel reactive-streams endpoint. +| link:../camel-core/src/main/docs/ref-component.adoc[Ref] (camel-core) + +`ref:name` | 1.2.0 | The ref component is used for lookup of existing endpoints bound in the Registry. + +| link:../camel-core/src/main/docs/rest-component.adoc[REST] (camel-core) + +`rest:method:path:uriTemplate` | 2.14.0 | The rest component is used for either hosting REST services (consumer) or calling external REST services (producer). + +| link:../camel-core/src/main/docs/rest-api-component.adoc[REST API] (camel-core) + +`rest-api:path/contextIdPattern` | 2.16.0 | The rest-api component is used for providing Swagger API of the REST services which has been defined using the rest-dsl in Camel. + | link:camel-restlet/src/main/docs/restlet-component.adoc[Restlet] (camel-restlet) + `restlet:protocol:host:port/uriPattern` | 2.0.0 | Component for consuming and producing Restful resources using Restlet. @@ -462,12 +515,18 @@ Components | link:camel-sap-netweaver/src/main/docs/sap-netweaver-component.adoc[SAP NetWeaver] (camel-sap-netweaver) + `sap-netweaver:url` | 2.12.0 | The sap-netweaver component integrates with the SAP NetWeaver Gateway using HTTP transports. +| link:../camel-core/src/main/docs/scheduler-component.adoc[Scheduler] (camel-core) + +`scheduler:name` | 2.15.0 | The scheduler component is used for generating message exchanges when a scheduler fires. + | link:camel-schematron/src/main/docs/schematron-component.adoc[Schematron] (camel-schematron) + `schematron:path` | 2.15.0 | Validates the payload of a message using the Schematron Library. | link:camel-jsch/src/main/docs/scp-component.adoc[SCP] (camel-jsch) + `scp:host:port/directoryName` | 2.10.0 | To copy files using the secure copy protocol (SCP). +| link:../camel-core/src/main/docs/seda-component.adoc[SEDA] (camel-core) + +`seda:name` | 1.1.0 | The seda component provides asynchronous call to another endpoint from any CamelContext in the same JVM. + | link:camel-servicenow/src/main/docs/servicenow-component.adoc[ServiceNow] (camel-servicenow) + `servicenow:instanceName` | 2.18.0 | The servicenow component is used to integrate Camel with ServiceNow cloud services. @@ -543,24 +602,39 @@ Components | link:camel-stringtemplate/src/main/docs/string-template-component.adoc[String Template] (camel-stringtemplate) + `string-template:resourceUri` | 1.2.0 | Transforms the message using a String template. +| link:../camel-core/src/main/docs/stub-component.adoc[Stub] (camel-core) + +`stub:name` | 2.10.0 | The stub component provides a simple way to stub out any physical endpoints while in development or testing. + | link:camel-telegram/src/main/docs/telegram-component.adoc[Telegram] (camel-telegram) + `telegram:type/authorizationToken` | 2.18.0 | The telegram component provides access to the Telegram Bot API. +| link:../camel-core/src/main/docs/test-component.adoc[Test] (camel-core) + +`test:name` | 1.3.0 | The test component extends the mock component by on startup to pull messages from another endpoint to set the expected message bodies. + | link:camel-tika/src/main/docs/tika-component.adoc[Tika] (camel-tika) + `tika:operation` | 2.19.0 | This component integrates with Apache Tika to extract content and metadata from thousands of file types. +| link:../camel-core/src/main/docs/timer-component.adoc[Timer] (camel-core) + +`timer:timerName` | 1.0.0 | The timer component is used for generating message exchanges when a timer fires. + | link:camel-twitter/src/main/docs/twitter-component.adoc[Twitter] (camel-twitter) + `twitter:kind` | 2.10.0 | This component integrates with Twitter to send tweets or search for tweets and more. | link:camel-undertow/src/main/docs/undertow-component.adoc[Undertow] (camel-undertow) + `undertow:httpURI` | 2.16.0 | The undertow component provides HTTP-based endpoints for consuming and producing HTTP requests. +| link:../camel-core/src/main/docs/validator-component.adoc[Validator] (camel-core) + +`validator:resourceUri` | 1.1.0 | Validates the payload of a message using XML Schema and JAXP Validation. + | link:camel-velocity/src/main/docs/velocity-component.adoc[Velocity] (camel-velocity) + `velocity:resourceUri` | 1.2.0 | Transforms the message using a Velocity template. | link:camel-vertx/src/main/docs/vertx-component.adoc[Vert.x] (camel-vertx) + `vertx:address` | 2.12.0 | The vertx component is used for sending and receive messages from a vertx event bus. +| link:../camel-core/src/main/docs/vm-component.adoc[VM] (camel-core) + +`vm:name` | 1.1.0 | The vm component provides asynchronous call to another endpoint from the same CamelContext. + | link:camel-weather/src/main/docs/weather-component.adoc[Weather] (camel-weather) + `weather:name` | 2.12.0 | Polls the weather information from Open Weather Map. @@ -576,6 +650,9 @@ Components | link:camel-saxon/src/main/docs/xquery-component.adoc[XQuery] (camel-saxon) + `xquery:resourceUri` | 1.0.0 | Transforms the message using a XQuery template using Saxon. +| link:../camel-core/src/main/docs/xslt-component.adoc[XSLT] (camel-core) + +`xslt:resourceUri` | 1.3.0 | Transforms the message using a XSLT template. + | link:camel-yammer/src/main/docs/yammer-component.adoc[Yammer] (camel-yammer) + `yammer:function` | 2.12.0 | The yammer component allows you to interact with the Yammer enterprise social network. @@ -590,6 +667,8 @@ Other Components ^^^^^^^^^^^^^^^^ // others: START +Number of Other Components: 33 + [width="100%",cols="4,1,5",options="header"] |======================================================================= | Component | Available From | Description @@ -668,6 +747,8 @@ Data Formats ^^^^^^^^^^^^ // dataformats: START +Number of Data Formats: 41 + [width="100%",cols="4,1,5",options="header"] |======================================================================= | Data Format | Available From | Description @@ -761,6 +842,8 @@ Expression Languages ^^^^^^^^^^^^^^^^^^^^ // languages: START +Number of Data Formats: 14 + [width="100%",cols="4,1,5",options="header"] |======================================================================= | Language | Available From | Description http://git-wip-us.apache.org/repos/asf/camel/blob/88b80432/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareReadmeMojo.java ---------------------------------------------------------------------- diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareReadmeMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareReadmeMojo.java index e762c01..99812e5 100644 --- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareReadmeMojo.java +++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareReadmeMojo.java @@ -45,7 +45,7 @@ import static org.apache.camel.maven.packaging.PackageHelper.loadText; import static org.apache.camel.maven.packaging.PackageHelper.writeText; /** - * Prepares the readme.md files content up to date with the components, data formats, languages, and others. + * Prepares the readme.md files content up to date with all the artifacts that Apache Camel ships. * * @goal prepare-readme */ @@ -185,7 +185,7 @@ public class PrepareReadmeMojo extends AbstractMojo { } } - protected void executeComponentsReadme(boolean core) throws MojoExecutionException, MojoFailureException { + protected void executeComponentsReadme(boolean coreOnly) throws MojoExecutionException, MojoFailureException { Set<File> componentFiles = new TreeSet<>(); if (componentsDir != null && componentsDir.isDirectory()) { @@ -199,7 +199,7 @@ public class PrepareReadmeMojo extends AbstractMojo { List<ComponentModel> models = new ArrayList<>(); for (File file : componentFiles) { String json = loadText(new FileInputStream(file)); - ComponentModel model = generateComponentModel(json); + ComponentModel model = generateComponentModel(json, coreOnly); // filter out alternative schemas which reuses documentation boolean add = true; @@ -220,16 +220,20 @@ public class PrepareReadmeMojo extends AbstractMojo { // filter out unwanted components List<ComponentModel> components = new ArrayList<>(); for (ComponentModel model : models) { - if (core && "camel-core".equals(model.getArtifactId())) { - components.add(model); - } else if (!core && !"camel-core".equals(model.getArtifactId())) { + if (coreOnly) { + if ("camel-core".equals(model.getArtifactId())) { + // only include core components + components.add(model); + } + } else { + // we want to include everything in the big file (also from camel-core) components.add(model); } } // update the big readme file in the core/components dir File file; - if (core) { + if (coreOnly) { file = new File(readmeCoreDir, "readme.adoc"); } else { file = new File(readmeComponentsDir, "readme.adoc"); @@ -706,10 +710,10 @@ public class PrepareReadmeMojo extends AbstractMojo { return eip; } - private ComponentModel generateComponentModel(String json) { + private ComponentModel generateComponentModel(String json, boolean coreOnly) { List<Map<String, String>> rows = JSonSchemaHelper.parseJsonSchema("component", json, false); - ComponentModel component = new ComponentModel(); + ComponentModel component = new ComponentModel(coreOnly); component.setScheme(JSonSchemaHelper.getSafeValue("scheme", rows)); component.setSyntax(JSonSchemaHelper.getSafeValue("syntax", rows)); component.setAlternativeSyntax(JSonSchemaHelper.getSafeValue("alternativeSyntax", rows)); http://git-wip-us.apache.org/repos/asf/camel/blob/88b80432/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareUserGuideMojo.java ---------------------------------------------------------------------- diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareUserGuideMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareUserGuideMojo.java index 1dc1f68..c8092ff 100644 --- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareUserGuideMojo.java +++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareUserGuideMojo.java @@ -550,7 +550,7 @@ public class PrepareUserGuideMojo extends AbstractMojo { private ComponentModel generateComponentModel(String json) { List<Map<String, String>> rows = JSonSchemaHelper.parseJsonSchema("component", json, false); - ComponentModel component = new ComponentModel(); + ComponentModel component = new ComponentModel(true); component.setScheme(JSonSchemaHelper.getSafeValue("scheme", rows)); component.setSyntax(JSonSchemaHelper.getSafeValue("syntax", rows)); component.setAlternativeSyntax(JSonSchemaHelper.getSafeValue("alternativeSyntax", rows)); http://git-wip-us.apache.org/repos/asf/camel/blob/88b80432/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java ---------------------------------------------------------------------- diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java index 1c3ecca..5b60b9e 100644 --- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java +++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java @@ -606,7 +606,7 @@ public class ReadmeComponentMojo extends AbstractMojo { private ComponentModel generateComponentModel(String componentName, String json) { List<Map<String, String>> rows = JSonSchemaHelper.parseJsonSchema("component", json, false); - ComponentModel component = new ComponentModel(); + ComponentModel component = new ComponentModel(true); component.setScheme(JSonSchemaHelper.getSafeValue("scheme", rows)); component.setSyntax(JSonSchemaHelper.getSafeValue("syntax", rows)); component.setAlternativeSyntax(JSonSchemaHelper.getSafeValue("alternativeSyntax", rows)); http://git-wip-us.apache.org/repos/asf/camel/blob/88b80432/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java ---------------------------------------------------------------------- diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java index 66bfe35..b8e6ced 100644 --- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java +++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java @@ -1213,7 +1213,7 @@ public class SpringBootAutoConfigurationMojo extends AbstractMojo { private static ComponentModel generateComponentModel(String componentName, String json) { List<Map<String, String>> rows = JSonSchemaHelper.parseJsonSchema("component", json, false); - ComponentModel component = new ComponentModel(); + ComponentModel component = new ComponentModel(true); component.setScheme(getSafeValue("scheme", rows)); component.setSyntax(getSafeValue("syntax", rows)); component.setAlternativeSyntax(getSafeValue("alternativeSyntax", rows)); http://git-wip-us.apache.org/repos/asf/camel/blob/88b80432/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/ComponentModel.java ---------------------------------------------------------------------- diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/ComponentModel.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/ComponentModel.java index 5b8b447..8260794 100644 --- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/ComponentModel.java +++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/ComponentModel.java @@ -21,6 +21,8 @@ import java.util.List; public class ComponentModel { + private final boolean coreOnly; + private String kind; private String scheme; private String syntax; @@ -40,6 +42,10 @@ public class ComponentModel { private final List<ComponentOptionModel> componentOptions = new ArrayList<ComponentOptionModel>(); private final List<EndpointOptionModel> endpointOptions = new ArrayList<EndpointOptionModel>(); + public ComponentModel(boolean coreOnly) { + this.coreOnly = coreOnly; + } + public String getKind() { return kind; } @@ -202,7 +208,7 @@ public class ComponentModel { public String getDocLink() { if ("camel-core".equals(artifactId)) { - return "src/main/docs"; + return coreOnly ? "src/main/docs" : "../camel-core/src/main/docs"; } else { return artifactId + "/src/main/docs"; } http://git-wip-us.apache.org/repos/asf/camel/blob/88b80432/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-components.mvel ---------------------------------------------------------------------- diff --git a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-components.mvel b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-components.mvel index 8338e2b..dcc02dc 100644 --- a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-components.mvel +++ b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-components.mvel @@ -1,5 +1,7 @@ @if{!components.isEmpty()} +Number of Components: @{components.size} + [width="100%",cols="4,1,5",options="header"] |======================================================================= | Component | Available From | Description http://git-wip-us.apache.org/repos/asf/camel/blob/88b80432/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-dataformats.mvel ---------------------------------------------------------------------- diff --git a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-dataformats.mvel b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-dataformats.mvel index 4bb1424..692d825 100644 --- a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-dataformats.mvel +++ b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-dataformats.mvel @@ -1,5 +1,7 @@ @if{!dataformats.isEmpty()} +Number of Data Formats: @{dataformats.size} + [width="100%",cols="4,1,5",options="header"] |======================================================================= | Data Format | Available From | Description http://git-wip-us.apache.org/repos/asf/camel/blob/88b80432/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-eips.mvel ---------------------------------------------------------------------- diff --git a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-eips.mvel b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-eips.mvel index 93dde19..3855d9a 100644 --- a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-eips.mvel +++ b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-eips.mvel @@ -1,5 +1,7 @@ @if{!eips.isEmpty()} +Number of EIPs: @{eips.size} + [width="100%",cols="4,6",options="header"] |======================================================================= | EIP | Description http://git-wip-us.apache.org/repos/asf/camel/blob/88b80432/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-languages.mvel ---------------------------------------------------------------------- diff --git a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-languages.mvel b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-languages.mvel index d63704e..78b3018 100644 --- a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-languages.mvel +++ b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-languages.mvel @@ -1,5 +1,7 @@ @if{!languages.isEmpty()} +Number of Data Formats: @{languages.size} + [width="100%",cols="4,1,5",options="header"] |======================================================================= | Language | Available From | Description http://git-wip-us.apache.org/repos/asf/camel/blob/88b80432/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-others.mvel ---------------------------------------------------------------------- diff --git a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-others.mvel b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-others.mvel index 1841149..6b8f858 100644 --- a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-others.mvel +++ b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-others.mvel @@ -1,5 +1,7 @@ @if{!others.isEmpty()} +Number of Other Components: @{others.size} + [width="100%",cols="4,1,5",options="header"] |======================================================================= | Component | Available From | Description