You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Claus Ibsen <cl...@gmail.com> on 2016/12/09 08:50:59 UTC

[HEADS UP] - Camel Maven Plugin can now parse your source code and report invalid endpoints

Hi

Just a heads up about a new functionality coming in Camel 2.19.

I wrote a blog entry about it
http://www.davsclaus.com/2016/12/camel-maven-plugin-can-now-parse-your.html

You can find the documentation for the plugin at
https://github.com/apache/camel/blob/master/tooling/maven/camel-maven-plugin/src/main/docs/camel-maven-plugin.adoc

And we have enabled this on the Camel source code itself, where you
can run it at these maven modules

cd camel-core
mvn camel:validate -Pvalidate

cd components
mvn camel:validate -Pvalidate

cd tests/camel-itests
mvn camel:validate -Pvalidate

cd examples
mvn camel:validate -Pvalidate


The tooling uses the camel-route-parser
https://github.com/apache/camel/tree/master/tooling/camel-route-parser

Which can scan both java and xml routes.
Because people can write their java routes in endless ways, then the
parser may need a little nudge / improvement here and there if people
"draw outside the lines". However anyone who feels adventures is
welcome to help improve the parser, or report issues the find.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Re: [HEADS UP] - Camel Maven Plugin can now parse your source code and report invalid endpoints

Posted by Andrea Cosentino <an...@yahoo.com.INVALID>.
Great work! 

Thanks!
 --
Andrea Cosentino 
----------------------------------
Apache Camel PMC Member
Apache Karaf Committer
Apache Servicemix Committer
Email: ancosen1985@yahoo.com
Twitter: @oscerd2
Github: oscerd



On Friday, December 9, 2016 9:51 AM, Claus Ibsen <cl...@gmail.com> wrote:
Hi

Just a heads up about a new functionality coming in Camel 2.19.

I wrote a blog entry about it
http://www.davsclaus.com/2016/12/camel-maven-plugin-can-now-parse-your.html

You can find the documentation for the plugin at
https://github.com/apache/camel/blob/master/tooling/maven/camel-maven-plugin/src/main/docs/camel-maven-plugin.adoc

And we have enabled this on the Camel source code itself, where you
can run it at these maven modules

cd camel-core
mvn camel:validate -Pvalidate

cd components
mvn camel:validate -Pvalidate

cd tests/camel-itests
mvn camel:validate -Pvalidate

cd examples
mvn camel:validate -Pvalidate


The tooling uses the camel-route-parser
https://github.com/apache/camel/tree/master/tooling/camel-route-parser

Which can scan both java and xml routes.
Because people can write their java routes in endless ways, then the
parser may need a little nudge / improvement here and there if people
"draw outside the lines". However anyone who feels adventures is
welcome to help improve the parser, or report issues the find.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2