You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Nestor Urquiza <ne...@gmail.com> on 2012/03/22 15:37:27 UTC

Re: diagram generator

Hi Romain,

After reading
http://camel.465427.n5.nabble.com/diagram-generator-td4375588.html I said to
myself let me give a try to the plugin.

I have documented a couple of problems I have found so far:
http://code.google.com/p/rmannibucau/wiki/MavenRepository
http://code.google.com/p/rmannibucau/wiki/CamelDiagramGenerator

Thanks in advance. Your help with this is really appreciated.

Best,
-Nestor

--
View this message in context: http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5586112.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagram generator

Posted by Nestor Urquiza <ne...@gmail.com>.
That explains it. Here is for the record if others are still using old
maven 2 and java 6:
$ mvn clean install -Dmaven.compiler.source=1.6 -Dmaven.compiler.target=1.6


On Fri, Mar 23, 2012 at 11:55 AM, Romain Manni-Bucau [via Camel] <
ml-node+s465427n5589949h42@n5.nabble.com> wrote:

> i use mvn3 with java 6
>
> - Romain
>
>
> 2012/3/23 Nestor Urquiza <[hidden email]<http://user/SendEmail.jtp?type=node&node=5589949&i=0>>
>
>
> > I see you do have it in the parent pom:
> > <plugins>
> >    <plugin>
> >      <groupId>org.apache.maven.​plugins</groupId>
> >      <artifactId>maven-compiler-​plugin</artifactId>
> >      <version>2.3.2</version>
> >      <configuration>
> >        <source>1.6</source>
> >        <target>1.6</target>
> >      </configuration>
> >    </plugin>
> >  </plugins>
> >
> > And yet the project won't compile for me. I guess the question is what
> have
> > you done in your environment for the project to compile, like which
> maven
> > version for example.
> >
> > I am using the latest code for sure:
> > $ hg pull -u
> > warning: code.google.com certificate with fingerprint
> > e2:9e:46:29:a0:fd:3c:57:a0:68:​30:c5:0a:45:97:63:bf:8d:75:fc not
> verified
> > (check hostfingerprints or web.cacerts config setting)
> > pulling from https://code.google.com/p/​rmannibucau/<https://code.google.com/p/rmannibucau/>
> > searching for changes
> > no changes found
> >
> >
> > On Fri, Mar 23, 2012 at 11:20 AM, Romain Manni-Bucau [via Camel] <
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=5589949&i=1>>
> wrote:
> >
> > > you simply have to provide the maven-compiler-plugin and specify the
> > > version of target and source.
> > >
> > >
> > > if you don't want to put it everywhere you can use a parent pom.
> > >
> > > - Romain
> > >
> > >
> > > 2012/3/23 Nestor Urquiza <[hidden email]<
> > http://user/SendEmail.jtp?​type=node&node=5589816&i=0<http://user/SendEmail.jtp?type=node&node=5589816&i=0>>>
>
> > >
> > >
> > > > Probably a dumb question: Can you please help me to compile without
> > > having
> > > > to update all the pom files? Basically by default my Maven 2.2.1
> tries
> > > to
> > > > compile with JDK source 1.3 but your code needs 1.5 or above:
> > > >
> > > >
> > > >
> > >
> >
> /Users/nestor/kk/rmannibucau/​​camel/diagram-generator-​​parent/diagram-generator-​​maven-plugin/src/main/java/fr/​​rmannibucau/graph/​transformer/​​VertexShapeTransformer.java:[​​25,5]
>
> > >
> > > > annotations are not supported in -source 1.3
> > > > (use -source 5 or higher to enable annotations)
> > > >    @Override public Shape transform(Node i) {
> > > >
> > > >
> > > > [INFO]
> > > >
> > >
> >
> ------------------------------​​-----------------------------​-​------------
>
> > > > [INFO] For more information, run Maven with the -e switch
> > > > [INFO]
> > > >
> > >
> >
> ------------------------------​​-----------------------------​-​------------
>
> > > > [INFO] Total time: 15 seconds
> > > > [INFO] Finished at: Fri Mar 23 11:13:10 EDT 2012
> > > > [INFO] Final Memory: 30M/81M
> > > > [INFO]
> > > >
> > >
> >
> ------------------------------​​-----------------------------​-​------------
>
> > > > nestor-krfs:rmannibucau nestor$ mvn -v
> > > > Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
> > > >
> > > > Thanks!
> > > > -Nestor
> > > >
> > > > On Thu, Mar 22, 2012 at 6:12 PM, Romain Manni-Bucau [via Camel] <
> > > > [hidden email] <
> http://user/SendEmail.jtp?​type=node&node=5589816&i=1<http://user/SendEmail.jtp?type=node&node=5589816&i=1>>>
>
> > > wrote:
> > > >
> > > > > just pushed some changes:
> > > > > 1) the plugin name changed a bit to follow maven convention
> > > > > 2) fixing some classloading issues when running the plugin from
> the
> > > build
> > > > > when the route builder is defined
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > > http://camel.465427.n5.nabble
> > .​com/diagram-generator-​​tp4375588p5589792.html<
> >
> http://camel.465427.n5.nabble.​com/diagram-generator-​tp4375588p5589792.html<http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5589792.html>
> > >
> > >
> > > > Sent from the Camel - Users mailing list archive at Nabble.com.
> > > >
> > >
> > >
> > > ------------------------------
> > >  If you reply to this email, your message will be added to the
> discussion
> > > below:
> > >
> > > http://camel.465427.n5.nabble
> > .​com/diagram-generator-​​tp4375588p5589816.html<
> >
> http://camel.465427.n5.nabble.​com/diagram-generator-​tp4375588p5589816.html<http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5589816.html>
> > >
> > >  To unsubscribe from diagram generator, click here<
> >
> >
> > > .
> > > NAML<
> >
> http://camel.465427.n5.nabble.​com/template/NamlServlet.jtp?​macro=macro_viewer&id=instant_​html%21nabble%3Aemail.naml&​base=nabble.naml.namespaces.​BasicNamespace-nabble.view.​web.template.NabbleNamespace-​nabble.view.web.template.​NodeNamespace&breadcrumbs=​notify_subscribers%21nabble%​3Aemail.naml-instant_emails%​21nabble%3Aemail.naml-send_​instant_email%21nabble%​3Aemail.naml<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> > >
> > >
> >
> >
> > --
> > View this message in context:
> >
> http://camel.465427.n5.nabble.​com/diagram-generator-​tp4375588p5589940.html<http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5589940.html>
>
> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.​com/diagram-generator-​tp4375588p5589949.html<http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5589949.html>
>  To unsubscribe from diagram generator, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4375588&code=bmVzdG9yLnVycXVpemFAZ21haWwuY29tfDQzNzU1ODh8LTIwNDkyODYxNjE=>
> .
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5589973.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagram generator

Posted by Romain Manni-Bucau <rm...@gmail.com>.
i use mvn3 with java 6

- Romain


2012/3/23 Nestor Urquiza <ne...@gmail.com>

> I see you do have it in the parent pom:
> <plugins>
>    <plugin>
>      <groupId>org.apache.maven.plugins</groupId>
>      <artifactId>maven-compiler-plugin</artifactId>
>      <version>2.3.2</version>
>      <configuration>
>        <source>1.6</source>
>        <target>1.6</target>
>      </configuration>
>    </plugin>
>  </plugins>
>
> And yet the project won't compile for me. I guess the question is what have
> you done in your environment for the project to compile, like which maven
> version for example.
>
> I am using the latest code for sure:
> $ hg pull -u
> warning: code.google.com certificate with fingerprint
> e2:9e:46:29:a0:fd:3c:57:a0:68:30:c5:0a:45:97:63:bf:8d:75:fc not verified
> (check hostfingerprints or web.cacerts config setting)
> pulling from https://code.google.com/p/rmannibucau/
> searching for changes
> no changes found
>
>
> On Fri, Mar 23, 2012 at 11:20 AM, Romain Manni-Bucau [via Camel] <
> ml-node+s465427n5589816h19@n5.nabble.com> wrote:
>
> > you simply have to provide the maven-compiler-plugin and specify the
> > version of target and source.
> >
> >
> > if you don't want to put it everywhere you can use a parent pom.
> >
> > - Romain
> >
> >
> > 2012/3/23 Nestor Urquiza <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5589816&i=0>>
> >
> >
> > > Probably a dumb question: Can you please help me to compile without
> > having
> > > to update all the pom files? Basically by default my Maven 2.2.1 tries
> > to
> > > compile with JDK source 1.3 but your code needs 1.5 or above:
> > >
> > >
> > >
> >
> /Users/nestor/kk/rmannibucau/​camel/diagram-generator-​parent/diagram-generator-​maven-plugin/src/main/java/fr/​rmannibucau/graph/transformer/​VertexShapeTransformer.java:[​25,5]
> >
> > > annotations are not supported in -source 1.3
> > > (use -source 5 or higher to enable annotations)
> > >    @Override public Shape transform(Node i) {
> > >
> > >
> > > [INFO]
> > >
> >
> ------------------------------​------------------------------​------------
> > > [INFO] For more information, run Maven with the -e switch
> > > [INFO]
> > >
> >
> ------------------------------​------------------------------​------------
> > > [INFO] Total time: 15 seconds
> > > [INFO] Finished at: Fri Mar 23 11:13:10 EDT 2012
> > > [INFO] Final Memory: 30M/81M
> > > [INFO]
> > >
> >
> ------------------------------​------------------------------​------------
> > > nestor-krfs:rmannibucau nestor$ mvn -v
> > > Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
> > >
> > > Thanks!
> > > -Nestor
> > >
> > > On Thu, Mar 22, 2012 at 6:12 PM, Romain Manni-Bucau [via Camel] <
> > > [hidden email] <http://user/SendEmail.jtp?type=node&node=5589816&i=1>>
> > wrote:
> > >
> > > > just pushed some changes:
> > > > 1) the plugin name changed a bit to follow maven convention
> > > > 2) fixing some classloading issues when running the plugin from the
> > build
> > > > when the route builder is defined
> > > >
> > > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> > http://camel.465427.n5.nabble
> .​com/diagram-generator-​tp4375588p5589792.html<
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5589792.html
> >
> >
> > > Sent from the Camel - Users mailing list archive at Nabble.com.
> > >
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> > http://camel.465427.n5.nabble
> .​com/diagram-generator-​tp4375588p5589816.html<
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5589816.html
> >
> >  To unsubscribe from diagram generator, click here<
> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4375588&code=bmVzdG9yLnVycXVpemFAZ21haWwuY29tfDQzNzU1ODh8LTIwNDkyODYxNjE=
> >
> > .
> > NAML<
> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5589940.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: diagram generator

Posted by Nestor Urquiza <ne...@gmail.com>.
I see you do have it in the parent pom:
<plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <version>2.3.2</version>
      <configuration>
        <source>1.6</source>
        <target>1.6</target>
      </configuration>
    </plugin>
  </plugins>

And yet the project won't compile for me. I guess the question is what have
you done in your environment for the project to compile, like which maven
version for example.

I am using the latest code for sure:
$ hg pull -u
warning: code.google.com certificate with fingerprint
e2:9e:46:29:a0:fd:3c:57:a0:68:30:c5:0a:45:97:63:bf:8d:75:fc not verified
(check hostfingerprints or web.cacerts config setting)
pulling from https://code.google.com/p/rmannibucau/
searching for changes
no changes found


On Fri, Mar 23, 2012 at 11:20 AM, Romain Manni-Bucau [via Camel] <
ml-node+s465427n5589816h19@n5.nabble.com> wrote:

> you simply have to provide the maven-compiler-plugin and specify the
> version of target and source.
>
>
> if you don't want to put it everywhere you can use a parent pom.
>
> - Romain
>
>
> 2012/3/23 Nestor Urquiza <[hidden email]<http://user/SendEmail.jtp?type=node&node=5589816&i=0>>
>
>
> > Probably a dumb question: Can you please help me to compile without
> having
> > to update all the pom files? Basically by default my Maven 2.2.1 tries
> to
> > compile with JDK source 1.3 but your code needs 1.5 or above:
> >
> >
> >
> /Users/nestor/kk/rmannibucau/​camel/diagram-generator-​parent/diagram-generator-​maven-plugin/src/main/java/fr/​rmannibucau/graph/transformer/​VertexShapeTransformer.java:[​25,5]
>
> > annotations are not supported in -source 1.3
> > (use -source 5 or higher to enable annotations)
> >    @Override public Shape transform(Node i) {
> >
> >
> > [INFO]
> >
> ------------------------------​------------------------------​------------
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> >
> ------------------------------​------------------------------​------------
> > [INFO] Total time: 15 seconds
> > [INFO] Finished at: Fri Mar 23 11:13:10 EDT 2012
> > [INFO] Final Memory: 30M/81M
> > [INFO]
> >
> ------------------------------​------------------------------​------------
> > nestor-krfs:rmannibucau nestor$ mvn -v
> > Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
> >
> > Thanks!
> > -Nestor
> >
> > On Thu, Mar 22, 2012 at 6:12 PM, Romain Manni-Bucau [via Camel] <
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=5589816&i=1>>
> wrote:
> >
> > > just pushed some changes:
> > > 1) the plugin name changed a bit to follow maven convention
> > > 2) fixing some classloading issues when running the plugin from the
> build
> > > when the route builder is defined
> > >
> > >
> >
> >
> > --
> > View this message in context:
> >
> http://camel.465427.n5.nabble.​com/diagram-generator-​tp4375588p5589792.html<http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5589792.html>
>
> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.​com/diagram-generator-​tp4375588p5589816.html<http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5589816.html>
>  To unsubscribe from diagram generator, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4375588&code=bmVzdG9yLnVycXVpemFAZ21haWwuY29tfDQzNzU1ODh8LTIwNDkyODYxNjE=>
> .
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5589940.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagram generator

Posted by Nestor Urquiza <ne...@gmail.com>.
I commented in the project page
http://code.google.com/p/rmannibucau/wiki/CamelDiagramGenerator

I have provided a sample project to test (added a couple of classes to the
source code for chapter2/cbr of Camel in Action Book). As I stated there the
URL for the sample project is
http://nestorurquiza.googlecode.com/svn/trunk/camelinaction-based-samples/chapter2/cbr/

--
View this message in context: http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5587197.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagram generator

Posted by Nestor Urquiza <ne...@gmail.com>.
Great news. Please keep us posted!
Have a great weekend,
-Nestor

On Fri, Mar 23, 2012 at 4:31 PM, Romain Manni-Bucau [via Camel]
<ml...@n5.nabble.com> wrote:
> I integrated it with maven site when i was using it. Well ill take some
> time next week to work around the plugin.
>


--
View this message in context: http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5590708.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagram generator

Posted by Romain Manni-Bucau <rm...@gmail.com>.
I integrated it with maven site when i was using it. Well ill take some
time next week to work around the plugin.

Le 23 mars 2012 20:50, "Nestor Urquiza" <ne...@gmail.com> a écrit :

> Got it however how can you specify the destination file name? Both
> plugin sections run but they both create the same file camel.png.
>
> On a side note I was asking the question about missing maven
> repository or wrong url in your post at
> http://code.google.com/p/rmannibucau/wiki/MavenRepository
>
> I believe that having a maven repo even if the plugin is in its
> earliest phase will allow more people to be able to download, test and
> provide feedback.
>
> Finally could you think of a way to integrate your plugin with
> maven-javadoc-plugin? We are publishing our UML diagrams
> (
> http://thinkinginsoftware.blogspot.com/2012/02/javadocs-including-uml-class-diagrams.html
> )
> from Jenkins for all our classes and of course for the case of
> RouteBuilder it makes sense to add the rules graphic as well.
>
> On Fri, Mar 23, 2012 at 3:33 PM, Romain Manni-Bucau [via Camel]
> <ml...@n5.nabble.com> wrote:
> >
> > With maven you can define multiple <execution> blocks for the same plugin
> > and you should be able to provide a configuration black for each.
> >
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5590575.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagram generator

Posted by Nestor Urquiza <ne...@gmail.com>.
Got it however how can you specify the destination file name? Both
plugin sections run but they both create the same file camel.png.

On a side note I was asking the question about missing maven
repository or wrong url in your post at
http://code.google.com/p/rmannibucau/wiki/MavenRepository

I believe that having a maven repo even if the plugin is in its
earliest phase will allow more people to be able to download, test and
provide feedback.

Finally could you think of a way to integrate your plugin with
maven-javadoc-plugin? We are publishing our UML diagrams
(http://thinkinginsoftware.blogspot.com/2012/02/javadocs-including-uml-class-diagrams.html)
from Jenkins for all our classes and of course for the case of
RouteBuilder it makes sense to add the rules graphic as well.

On Fri, Mar 23, 2012 at 3:33 PM, Romain Manni-Bucau [via Camel]
<ml...@n5.nabble.com> wrote:
>
> With maven you can define multiple <execution> blocks for the same plugin
> and you should be able to provide a configuration black for each.
>


--
View this message in context: http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5590575.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagram generator

Posted by Romain Manni-Bucau <rm...@gmail.com>.
With maven you can define multiple <execution> blocks for the same plugin
and you should be able to provide a configuration black for each.

Le 23 mars 2012 20:17, "Nestor Urquiza" <ne...@gmail.com> a écrit :

> Not sure what you meant to say by:
>
> " but you configure multiple mvn execution."
> >
> >
> >
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5590495.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagram generator

Posted by Nestor Urquiza <ne...@gmail.com>.
Not sure what you meant to say by:

" but you configure multiple mvn execution."
>
>
>


--
View this message in context: http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5590495.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagram generator

Posted by Romain Manni-Bucau <rm...@gmail.com>.
you simply have to provide the maven-compiler-plugin and specify the
version of target and source.


if you don't want to put it everywhere you can use a parent pom.

- Romain


2012/3/23 Nestor Urquiza <ne...@gmail.com>

> Probably a dumb question: Can you please help me to compile without having
> to update all the pom files? Basically by default my Maven 2.2.1 tries to
> compile with JDK source 1.3 but your code needs 1.5 or above:
>
>
> /Users/nestor/kk/rmannibucau/camel/diagram-generator-parent/diagram-generator-maven-plugin/src/main/java/fr/rmannibucau/graph/transformer/VertexShapeTransformer.java:[25,5]
> annotations are not supported in -source 1.3
> (use -source 5 or higher to enable annotations)
>    @Override public Shape transform(Node i) {
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 15 seconds
> [INFO] Finished at: Fri Mar 23 11:13:10 EDT 2012
> [INFO] Final Memory: 30M/81M
> [INFO]
> ------------------------------------------------------------------------
> nestor-krfs:rmannibucau nestor$ mvn -v
> Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
>
> Thanks!
> -Nestor
>
> On Thu, Mar 22, 2012 at 6:12 PM, Romain Manni-Bucau [via Camel] <
> ml-node+s465427n5587959h52@n5.nabble.com> wrote:
>
> > just pushed some changes:
> > 1) the plugin name changed a bit to follow maven convention
> > 2) fixing some classloading issues when running the plugin from the build
> > when the route builder is defined
> >
> >
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5589792.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: diagram generator

Posted by Nestor Urquiza <ne...@gmail.com>.
Probably a dumb question: Can you please help me to compile without having
to update all the pom files? Basically by default my Maven 2.2.1 tries to
compile with JDK source 1.3 but your code needs 1.5 or above:

/Users/nestor/kk/rmannibucau/camel/diagram-generator-parent/diagram-generator-maven-plugin/src/main/java/fr/rmannibucau/graph/transformer/VertexShapeTransformer.java:[25,5]
annotations are not supported in -source 1.3
(use -source 5 or higher to enable annotations)
    @Override public Shape transform(Node i) {


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 15 seconds
[INFO] Finished at: Fri Mar 23 11:13:10 EDT 2012
[INFO] Final Memory: 30M/81M
[INFO]
------------------------------------------------------------------------
nestor-krfs:rmannibucau nestor$ mvn -v
Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)

Thanks!
-Nestor

On Thu, Mar 22, 2012 at 6:12 PM, Romain Manni-Bucau [via Camel] <
ml-node+s465427n5587959h52@n5.nabble.com> wrote:

> just pushed some changes:
> 1) the plugin name changed a bit to follow maven convention
> 2) fixing some classloading issues when running the plugin from the build
> when the route builder is defined
>
>


--
View this message in context: http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5589792.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagram generator

Posted by Romain Manni-Bucau <rm...@gmail.com>.
It is easy to manage a loop in the code, that's not the case today but you
configure multiple mvn execution.

- Romain

Le 23 mars 2012 20:07, "Nestor Urquiza" <ne...@gmail.com> a écrit :

> It worked! Thanks for your help on this.
>
> The plugin as it is generates a camel.png. What about if there are more
> than
> just one RouteBuilder defined?Using multiple <input> nodes result is just
> getting the latest defined. I would like to see an option to include all
> RouteBuilder starting in a given package, would that be possible?
>
> Thanks again for your help,
> -Nestor
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5590461.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: diagram generator

Posted by Nestor Urquiza <ne...@gmail.com>.
It worked! Thanks for your help on this.

The plugin as it is generates a camel.png. What about if there are more than
just one RouteBuilder defined?Using multiple <input> nodes result is just
getting the latest defined. I would like to see an option to include all
RouteBuilder starting in a given package, would that be possible?

Thanks again for your help,
-Nestor

--
View this message in context: http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5590461.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagram generator

Posted by Romain Manni-Bucau <rm...@gmail.com>.
just pushed some changes:
1) the plugin name changed a bit to follow maven convention
2) fixing some classloading issues when running the plugin from the build
when the route builder is defined

here my conf:

<?xml version="1.0"?>
<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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.camelinaction</groupId>
  <version>1.0.0</version>
  <artifactId>chapter2-cbr</artifactId>
  <name>Camel in Action :: Chapter 2 :: Content-Based Router</name>
  <dependencies>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-core</artifactId>
      <version>2.9.1</version>
    </dependency>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-jms</artifactId>
      <version>2.9.1</version>
    </dependency>
    <dependency>
      <groupId>org.apache.activemq</groupId>
      <artifactId>activemq-core</artifactId>
      <version>5.5.1</version>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.16</version>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
      <version>1.6.4</version>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>fr.rmannibucau</groupId>
        <artifactId>diagram-generator-maven-plugin</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <executions>
          <execution>
            <id>pack</id>
            <phase>package</phase>
            <goals>
              <goal>diagram</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <input>camelinaction.OrderRouteBuilder</input>
          <view>false</view>
          <width>480</width>
          <height>640</height>
          <output>target/diagram</output>
          <type>camel</type>
          <fileType>java</fileType>
          <format>png</format>
          <adjust>true</adjust>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>fr.rmannibucau</groupId>
            <artifactId>camel-loader</artifactId>
            <version>0.0.1-SNAPSHOT</version>
          </dependency>
          <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-core</artifactId>
            <version>2.9.1</version>
          </dependency>
          <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-jms</artifactId>
            <version>2.9.1</version>
          </dependency>
          <dependency>
            <groupId>org.apache.activemq</groupId>
            <artifactId>activemq-core</artifactId>
            <version>5.5.1</version>
          </dependency>
          <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.16</version>
          </dependency>
          <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.6.4</version>
          </dependency>
        </dependencies>
      </plugin>
      <!-- Allows the example to be run via 'mvn compile exec:java' -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <configuration>
          <includePluginDependencies>false</includePluginDependencies>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>


and here what i get: http://img11.hostingpics.net/pics/623821camel.png

- Romain


2012/3/22 Nestor Urquiza <ne...@gmail.com>

> Not sure what you mean by "generate" goal. I can see the classes are
> generated (compiled) before the plugin emits the error. So the classes are
> indeed in the target/classes
>
> $ mvn clean compile package exec:java
> -Dexec.mainClass=camelinaction.OrderRouter2
> ...
> [INFO] Building jar:
>
> /Users/nestor/Downloads/camelinaction-source/chapter2/cbr/target/chapter2-cbr-1.0.0.jar
> [INFO] [diagram-generator:diagram {execution: pack}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] can't load route class
> camelinaction.OrderRouteBuilder.class
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> fr.rmannibucau.loader.spi.DiagramGeneratorRuntimeException: can't load
> route class
> at
>
> fr.rmannibucau.camel.loader.CamelLoader.camelContextToDiagram(CamelLoader.java:61)
> at fr.rmannibucau.camel.loader.CamelLoader.load(CamelLoader.java:31)
> at
> fr.rmannibucau.DiagramGeneratorMojo.execute(DiagramGeneratorMojo.java:96)
> at
>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: java.lang.ClassNotFoundException:
> camelinaction.OrderRouteBuilder.class
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at
>
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
> at
>
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
> at
>
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
> at
>
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> at
>
> fr.rmannibucau.camel.loader.CamelLoader.camelContextToDiagram(CamelLoader.java:59)
>
>
> $ ls -al  target/classes/camelinaction/OrderRouteBuilder.class
> -rw-r--r--  1 nestor  staff  1518 Mar 22 17:30
> target/classes/camelinaction/OrderRouteBuilder.class
>
> On Thu, Mar 22, 2012 at 5:16 PM, Romain Manni-Bucau [via Camel] <
> ml-node+s465427n5587812h95@n5.nabble.com> wrote:
>
> > Try running compile goal before generate goal.
> >
> >
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5587868.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: diagram generator

Posted by Nestor Urquiza <ne...@gmail.com>.
Not sure what you mean by "generate" goal. I can see the classes are
generated (compiled) before the plugin emits the error. So the classes are
indeed in the target/classes

$ mvn clean compile package exec:java
-Dexec.mainClass=camelinaction.OrderRouter2
...
[INFO] Building jar:
/Users/nestor/Downloads/camelinaction-source/chapter2/cbr/target/chapter2-cbr-1.0.0.jar
[INFO] [diagram-generator:diagram {execution: pack}]
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] can't load route class
camelinaction.OrderRouteBuilder.class
[INFO]
------------------------------------------------------------------------
[INFO] Trace
fr.rmannibucau.loader.spi.DiagramGeneratorRuntimeException: can't load
route class
at
fr.rmannibucau.camel.loader.CamelLoader.camelContextToDiagram(CamelLoader.java:61)
at fr.rmannibucau.camel.loader.CamelLoader.load(CamelLoader.java:31)
at fr.rmannibucau.DiagramGeneratorMojo.execute(DiagramGeneratorMojo.java:96)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.lang.ClassNotFoundException:
camelinaction.OrderRouteBuilder.class
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
at
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at
fr.rmannibucau.camel.loader.CamelLoader.camelContextToDiagram(CamelLoader.java:59)


$ ls -al  target/classes/camelinaction/OrderRouteBuilder.class
-rw-r--r--  1 nestor  staff  1518 Mar 22 17:30
target/classes/camelinaction/OrderRouteBuilder.class

On Thu, Mar 22, 2012 at 5:16 PM, Romain Manni-Bucau [via Camel] <
ml-node+s465427n5587812h95@n5.nabble.com> wrote:

> Try running compile goal before generate goal.
>
>


--
View this message in context: http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5587868.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagram generator

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Try running compile goal before generate goal.

- Romain

Le 22 mars 2012 19:58, "Nestor Urquiza" <ne...@gmail.com> a écrit :

> Can you please tell me what the content of input should be for a class in
> package camelinaction named OrderRouteBuilder?
>
> I have tested with .class, with .java, without extension, using package
> notation, using relative and absolute path notation and I always
> get java.lang.ClassNotFoundException
>
> I must be missing something really trivial here.
>
> Thanks for your help,
> -Nestor
>
> On Thu, Mar 22, 2012 at 2:51 PM, Romain Manni-Bucau [via Camel] <
> ml-node+s465427n5587511h64@n5.nabble.com> wrote:
>
> > The used class is the .class not the source.
> >
> > - Romain
> >
> > Le 22 mars 2012 19:36, "Nestor Urquiza" <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5587511&i=0>>
> > a écrit :
> >
> > > I tried that but it fails even though the class is indeed in the
> > specified
> > > package:
> > > Caused by: java.lang.ClassNotFoundException:
> > > camelinaction/OrderRouteBuilder
> > > ...
> > > $ ls src/main/java/camelinaction/OrderRouteBuilder.java
> > > src/main/java/camelinaction/OrderRouteBuilder.java
> > >
> > >
> > > On Thu, Mar 22, 2012 at 12:58 PM, Romain Manni-Bucau [via Camel] <
> > > [hidden email] <http://user/SendEmail.jtp?type=node&node=5587511&i=1>>
> > wrote:
> > >
> > > > did you add in the conf:
> > > >
> > > > <fileType>java</fileType>?
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5587482.html
> >
> > > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5587511.html
> >  To unsubscribe from diagram generator, click here<
> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4375588&code=bmVzdG9yLnVycXVpemFAZ21haWwuY29tfDQzNzU1ODh8LTIwNDkyODYxNjE=
> >
> > .
> > NAML<
> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5587524.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagram generator

Posted by Nestor Urquiza <ne...@gmail.com>.
Can you please tell me what the content of input should be for a class in
package camelinaction named OrderRouteBuilder?

I have tested with .class, with .java, without extension, using package
notation, using relative and absolute path notation and I always
get java.lang.ClassNotFoundException

I must be missing something really trivial here.

Thanks for your help,
-Nestor

On Thu, Mar 22, 2012 at 2:51 PM, Romain Manni-Bucau [via Camel] <
ml-node+s465427n5587511h64@n5.nabble.com> wrote:

> The used class is the .class not the source.
>
> - Romain
>
> Le 22 mars 2012 19:36, "Nestor Urquiza" <[hidden email]<http://user/SendEmail.jtp?type=node&node=5587511&i=0>>
> a écrit :
>
> > I tried that but it fails even though the class is indeed in the
> specified
> > package:
> > Caused by: java.lang.ClassNotFoundException:
> > camelinaction/OrderRouteBuilder
> > ...
> > $ ls src/main/java/camelinaction/OrderRouteBuilder.java
> > src/main/java/camelinaction/OrderRouteBuilder.java
> >
> >
> > On Thu, Mar 22, 2012 at 12:58 PM, Romain Manni-Bucau [via Camel] <
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=5587511&i=1>>
> wrote:
> >
> > > did you add in the conf:
> > >
> > > <fileType>java</fileType>?
> > >
> > >
> > >
> >
> >
> > --
> > View this message in context:
> >
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5587482.html
>
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5587511.html
>  To unsubscribe from diagram generator, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4375588&code=bmVzdG9yLnVycXVpemFAZ21haWwuY29tfDQzNzU1ODh8LTIwNDkyODYxNjE=>
> .
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5587524.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagram generator

Posted by Romain Manni-Bucau <rm...@gmail.com>.
The used class is the .class not the source.

- Romain

Le 22 mars 2012 19:36, "Nestor Urquiza" <ne...@gmail.com> a écrit :

> I tried that but it fails even though the class is indeed in the specified
> package:
> Caused by: java.lang.ClassNotFoundException:
> camelinaction/OrderRouteBuilder
> ...
> $ ls src/main/java/camelinaction/OrderRouteBuilder.java
> src/main/java/camelinaction/OrderRouteBuilder.java
>
>
> On Thu, Mar 22, 2012 at 12:58 PM, Romain Manni-Bucau [via Camel] <
> ml-node+s465427n5587203h16@n5.nabble.com> wrote:
>
> > did you add in the conf:
> >
> > <fileType>java</fileType>?
> >
> >
> >
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5587482.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagram generator

Posted by Nestor Urquiza <ne...@gmail.com>.
I tried that but it fails even though the class is indeed in the specified
package:
Caused by: java.lang.ClassNotFoundException: camelinaction/OrderRouteBuilder
...
$ ls src/main/java/camelinaction/OrderRouteBuilder.java
src/main/java/camelinaction/OrderRouteBuilder.java


On Thu, Mar 22, 2012 at 12:58 PM, Romain Manni-Bucau [via Camel] <
ml-node+s465427n5587203h16@n5.nabble.com> wrote:

> did you add in the conf:
>
> <fileType>java</fileType>?
>
>
>


--
View this message in context: http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5587482.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagram generator

Posted by Romain Manni-Bucau <rm...@gmail.com>.
did you add in the conf:

<fileType>java</fileType>?


- Romain


2012/3/22 Nestor Urquiza <ne...@gmail.com>

> I see. I now run the example using:
> mvn clean package exec:java -Dexec.mainClass=camelinaction.OrderRouter2
>
>
> And at least I got:
> [INFO] Trace
> fr.rmannibucau.loader.spi.DiagramGeneratorRuntimeException: can't find
> route inside camelinaction.OrderRouteBuilder directory.
> at
>
> fr.rmannibucau.camel.loader.CamelLoader.camelContextToDiagram(CamelLoader.java:73)
> at fr.rmannibucau.camel.loader.CamelLoader.load(CamelLoader.java:31)
> at
> fr.rmannibucau.DiagramGeneratorMojo.execute(DiagramGeneratorMojo.java:96)
> at
>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: java.lang.Exception: can't find route inside
> camelinaction.OrderRouteBuilder directory.
> ... 22 more
>
> I then tested with other options:
> <input>src/main/java/camelinaction</input>
> <input>src/main/java/camelinaction/OrderRouteBuilder.java</input>
>
> Without luck again. For the first case get for example:
> [INFO] Trace
> fr.rmannibucau.loader.spi.DiagramGeneratorRuntimeException: can't find
> route inside src/main/java/camelinaction directory.
>
>
>
>
>
> On Thu, Mar 22, 2012 at 10:42 AM, Romain Manni-Bucau [via Camel] <
> ml-node+s465427n5586206h9@n5.nabble.com> wrote:
>
> > Hi Nestor,
> >
> > i think th eissues you ran into was mainly due to the fact i was using m2
> > last year and with m3 defaults changed.
> >
> > regarding the generation from java it should work since the plugin simply
> > need to be able to load classes (did you run it after compile phase?)
> >
> > - Romain
> >
> >
> > 2012/3/22 Nestor Urquiza <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5586206&i=0>>
> >
> >
> > > Hi Romain,
> > >
> > > After reading
> > > http://camel.465427.n5.nabble.com/diagram-generator-td4375588.html I
> > said
> > > to
> > > myself let me give a try to the plugin.
> > >
> > > I have documented a couple of problems I have found so far:
> > > http://code.google.com/p/rmannibucau/wiki/MavenRepository
> > > http://code.google.com/p/rmannibucau/wiki/CamelDiagramGenerator
> > >
> > > Thanks in advance. Your help with this is really appreciated.
> > >
> > > Best,
> > > -Nestor
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5586112.html
> > > Sent from the Camel - Users mailing list archive at Nabble.com.
> > >
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5586206.html
> >  To unsubscribe from diagram generator, click here<
> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4375588&code=bmVzdG9yLnVycXVpemFAZ21haWwuY29tfDQzNzU1ODh8LTIwNDkyODYxNjE=
> >
> > .
> > NAML<
> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5586353.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: diagram generator

Posted by Nestor Urquiza <ne...@gmail.com>.
I see. I now run the example using:
mvn clean package exec:java -Dexec.mainClass=camelinaction.OrderRouter2


And at least I got:
[INFO] Trace
fr.rmannibucau.loader.spi.DiagramGeneratorRuntimeException: can't find
route inside camelinaction.OrderRouteBuilder directory.
at
fr.rmannibucau.camel.loader.CamelLoader.camelContextToDiagram(CamelLoader.java:73)
at fr.rmannibucau.camel.loader.CamelLoader.load(CamelLoader.java:31)
at fr.rmannibucau.DiagramGeneratorMojo.execute(DiagramGeneratorMojo.java:96)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.lang.Exception: can't find route inside
camelinaction.OrderRouteBuilder directory.
... 22 more

I then tested with other options:
<input>src/main/java/camelinaction</input>
<input>src/main/java/camelinaction/OrderRouteBuilder.java</input>

Without luck again. For the first case get for example:
[INFO] Trace
fr.rmannibucau.loader.spi.DiagramGeneratorRuntimeException: can't find
route inside src/main/java/camelinaction directory.





On Thu, Mar 22, 2012 at 10:42 AM, Romain Manni-Bucau [via Camel] <
ml-node+s465427n5586206h9@n5.nabble.com> wrote:

> Hi Nestor,
>
> i think th eissues you ran into was mainly due to the fact i was using m2
> last year and with m3 defaults changed.
>
> regarding the generation from java it should work since the plugin simply
> need to be able to load classes (did you run it after compile phase?)
>
> - Romain
>
>
> 2012/3/22 Nestor Urquiza <[hidden email]<http://user/SendEmail.jtp?type=node&node=5586206&i=0>>
>
>
> > Hi Romain,
> >
> > After reading
> > http://camel.465427.n5.nabble.com/diagram-generator-td4375588.html I
> said
> > to
> > myself let me give a try to the plugin.
> >
> > I have documented a couple of problems I have found so far:
> > http://code.google.com/p/rmannibucau/wiki/MavenRepository
> > http://code.google.com/p/rmannibucau/wiki/CamelDiagramGenerator
> >
> > Thanks in advance. Your help with this is really appreciated.
> >
> > Best,
> > -Nestor
> >
> > --
> > View this message in context:
> >
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5586112.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5586206.html
>  To unsubscribe from diagram generator, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4375588&code=bmVzdG9yLnVycXVpemFAZ21haWwuY29tfDQzNzU1ODh8LTIwNDkyODYxNjE=>
> .
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5586353.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagram generator

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi Nestor,

i think th eissues you ran into was mainly due to the fact i was using m2
last year and with m3 defaults changed.

regarding the generation from java it should work since the plugin simply
need to be able to load classes (did you run it after compile phase?)

- Romain


2012/3/22 Nestor Urquiza <ne...@gmail.com>

> Hi Romain,
>
> After reading
> http://camel.465427.n5.nabble.com/diagram-generator-td4375588.html I said
> to
> myself let me give a try to the plugin.
>
> I have documented a couple of problems I have found so far:
> http://code.google.com/p/rmannibucau/wiki/MavenRepository
> http://code.google.com/p/rmannibucau/wiki/CamelDiagramGenerator
>
> Thanks in advance. Your help with this is really appreciated.
>
> Best,
> -Nestor
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5586112.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>