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 2013/11/28 13:46:28 UTC
git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Updated Branches:
refs/heads/camel-2.12.x 628b34c0d -> ae5a770e0
CAMEL-7023: Added hawtio goal to camel maven plugin.
Conflicts:
parent/pom.xml
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ae5a770e
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ae5a770e
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ae5a770e
Branch: refs/heads/camel-2.12.x
Commit: ae5a770e01a1a2512412be97e62b18cb7578d640
Parents: 628b34c
Author: Claus Ibsen <da...@apache.org>
Authored: Thu Nov 28 13:47:25 2013 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Thu Nov 28 13:48:16 2013 +0100
----------------------------------------------------------------------
parent/pom.xml | 1 +
tooling/maven/camel-maven-plugin/pom.xml | 7 +++
.../java/org/apache/camel/maven/HawtioMojo.java | 58 ++++++++++++++++++++
.../java/org/apache/camel/maven/RunMojo.java | 21 +++++--
4 files changed, 83 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index 95f2a9e..d3229bc 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -173,6 +173,7 @@
<hawtbuf-version>1.9</hawtbuf-version>
<hawtdb-version>1.6</hawtdb-version>
<hawtdispatch-version>1.18</hawtdispatch-version>
+ <hawtio-version>1.2.0</hawtio-version>
<hazelcast-version>2.6</hazelcast-version>
<hbase-version>0.94.10</hbase-version>
<hbase-bundle-version>0.94.6_1</hbase-bundle-version>
http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/pom.xml
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-maven-plugin/pom.xml b/tooling/maven/camel-maven-plugin/pom.xml
index 160b8ab..940ab77 100644
--- a/tooling/maven/camel-maven-plugin/pom.xml
+++ b/tooling/maven/camel-maven-plugin/pom.xml
@@ -53,6 +53,13 @@
<artifactId>camel-cdi</artifactId>
</dependency>
+ <!--for the hawtio goal -->
+ <dependency>
+ <groupId>io.hawt</groupId>
+ <artifactId>hawtio-app</artifactId>
+ <version>${hawtio-version}</version>
+ </dependency>
+
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
new file mode 100644
index 0000000..1c8f697
--- /dev/null
+++ b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
@@ -0,0 +1,58 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.maven;
+
+import java.lang.reflect.Method;
+
+/**
+ * Runs a CamelContext using any Spring or Blueprint XML configuration files found in
+ * <code>META-INF/spring/*.xml</code>, and <code>OSGI-INF/blueprint/*.xml</code>,
+ * and <code>camel-*.xml</code> and starting up the context together with
+ * <a href="http://hawt.io/">hawtio</a> as web console.
+ *
+ * @goal hawtio
+ * @requiresDependencyResolution compile+runtime
+ * @execute phase="test-compile"
+ */
+public class HawtioMojo extends RunMojo {
+
+ /**
+ * The port number to use for the hawtio web console.
+ *
+ * @parameter property="camel.port"
+ * default-value="8080"
+ */
+ private int port = 8080;
+
+ public HawtioMojo() {
+ extendedPluginDependencyArtifactId = "hawtio-app";
+ }
+
+ @Override
+ void beforeBootstrapCamel() throws Exception {
+ getLog().info("Starting hawtio ...");
+ Method hawtioMain = Thread.currentThread().getContextClassLoader().loadClass("io.hawt.app.App")
+ .getMethod("main", new Class[] {String[].class});
+ if (!hawtioMain.isAccessible()) {
+ getLog().debug("Setting accessibility to true in order to invoke main().");
+ hawtioMain.setAccessible(true);
+ }
+ String[] args = new String[]{"--port", "" + port, "--join", "false"};
+ hawtioMain.invoke(hawtioMain, new Object[]{args});
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
index 6f3921d..510333b6 100644
--- a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
+++ b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
@@ -369,6 +369,7 @@ public class RunMojo extends AbstractExecMojo {
private Properties originalSystemProperties;
private String extraPluginDependencyArtifactId;
+ protected String extendedPluginDependencyArtifactId;
/**
* Execute goal.
@@ -455,7 +456,7 @@ public class RunMojo extends AbstractExecMojo {
getLog().info("Using org.apache.camel.spring.Main to initiate a CamelContext");
mainClass = "org.apache.camel.spring.Main";
}
-
+
arguments = new String[args.size()];
args.toArray(arguments);
@@ -474,9 +475,12 @@ public class RunMojo extends AbstractExecMojo {
}
IsolatedThreadGroup threadGroup = new IsolatedThreadGroup(mainClass /* name */);
- Thread bootstrapThread = new Thread(threadGroup, new Runnable() {
+ final Thread bootstrapThread = new Thread(threadGroup, new Runnable() {
public void run() {
try {
+ beforeBootstrapCamel();
+
+ getLog().info("Starting Camel ...");
Method main = Thread.currentThread().getContextClassLoader().loadClass(mainClass)
.getMethod("main", new Class[] {String[].class});
if (!main.isAccessible()) {
@@ -494,6 +498,7 @@ public class RunMojo extends AbstractExecMojo {
}
}
}, mainClass + ".main()");
+
bootstrapThread.setContextClassLoader(getClassLoader());
setSystemProperties();
@@ -532,6 +537,13 @@ public class RunMojo extends AbstractExecMojo {
registerSourceRoots();
}
+ /**
+ * Allows plugin extensions to do custom logic before bootstrapping Camel.
+ */
+ void beforeBootstrapCamel() throws Exception {
+ // noop
+ }
+
class IsolatedThreadGroup extends ThreadGroup {
Throwable uncaughtException; // synchronize access to this
@@ -743,7 +755,7 @@ public class RunMojo extends AbstractExecMojo {
* @throws MojoExecutionException
*/
private void addExtraPluginDependenciesToClasspath(Set<URL> path) throws MojoExecutionException {
- if (extraPluginDependencyArtifactId == null) {
+ if (extraPluginDependencyArtifactId == null && extendedPluginDependencyArtifactId == null) {
return;
}
@@ -751,7 +763,8 @@ public class RunMojo extends AbstractExecMojo {
Set<Artifact> artifacts = new HashSet<Artifact>(this.pluginDependencies);
for (Artifact artifact : artifacts) {
// must
- if (artifact.getArtifactId().equals(extraPluginDependencyArtifactId)) {
+ if (artifact.getArtifactId().equals(extraPluginDependencyArtifactId)
+ || artifact.getArtifactId().equals(extendedPluginDependencyArtifactId)) {
getLog().debug("Adding extra plugin dependency artifact: " + artifact.getArtifactId()
+ " to classpath");
path.add(artifact.getFile().toURI().toURL());
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Hadrian Zbarcea <hz...@gmail.com>.
While we discuss, with two vetoes pending, first step is to revert the
patch.
Cheers,
Hadrian
On 11/30/2013 02:35 AM, Robert Davies wrote:
> It seems a couple of people are getting a head of themselves.
> Firstly, the -1 vote of Dan and Hadrian are invalid without a technical justification, and it seems they are trying to justify a -1 on some policy by the Camel PMC that I for one are not aware of.
> We have discussed removing the camel console [1], but that discussion is insufficient to cover the case of adding a maven target to different console - its not being distributed as part of Apache Camel, its just making it easier to run if you want to. I understand the concerns about hawtio, but lets discuss that first - and on a different thread and get some formality into this please.
>
> Rob
> [1] http://camel.465427.n5.nabble.com/DISCUSS-CAMEL-3-0-Does-camel-need-a-web-console-tt5726280.html#a5727053
>
> On 29 Nov 2013, at 18:07, Daniel Kulp <dk...@apache.org> wrote:
>
>>
>> On Nov 28, 2013, at 8:42 AM, James Strachan <ja...@gmail.com> wrote:
>>
>>> Should we back out the use of graphviz too? Do you think generating images
>>> for camel routes should be -1'd too?
>>
>> No. Graphviz is a graphics library. ALL the code for taking the camel routes and feeding the information into graphiz lives in camel and is under the Camel PMC control and direction. How the graph is presented to the user is under the Camel PMC direction. Thus, it’s “OK”.
>>
>> In this case, all of the code for presenting the Camel UI is NOT in control of the Camel PMC. It’s not part of Camel. It’s completely under the control of an external party. That is NOT OK.
>>
>> If HawtIO was just a console framework (or whatever you want to call it) and all of the “Camel” value-add was a plugin or was built upon that and that code was in Camel, I’d have “less” of a concern (certain branding and links and doc things would need to be resolved as well). Basically, if it was like Spring where Spring has a core and all the camel value add stuff to spring (namespace handlers, spring integration stuff, etc…) is part of Camel, then it would be OK.
>>
>> So, in summary, if a user wants a nice graphics view of a Camel route, as far as the Camel project goes, there are three options:
>>
>> 1) Claim it’s not an issue and do nothing….. It’s not one of our “itches” for us to scratch.
>>
>> 2) Claim it is an issue, but outside the scope of our project and point people the third party applications page we have on the website for options that are available.
>>
>> 3) Expand the scope of Camel to include this, but in this case, it HAS to be controlled, managed, documented, branded, etc…. completely by the Camel PMC. How it’s presented to the user, etc… must be completely “Apache Camel”, not hawtio or what ever.
>>
>>
>> Take your pick.
>>
>> Dan
>>
>>
>>
>>> On 28 November 2013 13:41, James Strachan <ja...@gmail.com> wrote:
>>>
>>>> On 28 November 2013 13:32, Daniel Kulp <dk...@apache.org> wrote:
>>>>
>>>>>
>>>>> I’m -1 to this commit. I don’t think we should be adding a bunch of
>>>>> targets for all the various container/platform integrations.
>>>>
>>>>
>>>> If that were true I'd maybe -1 it too; but this commit looks to be about
>>>> making it easy for Camel users to visualise & debug Camel routes in a web
>>>> browser - from inside their existing maven camel project. i.e. its a camel
>>>> thing; just needs a web server to host some static HTML/CSS/JS (which is
>>>> purely an implementation detail).
>>>>
>>>> Though its nothing really to do with mimicking runtime platforms like
>>>> tomcat:run / karaf:run / jetty:run.
>>>>
>>>> --
>>>> James
>>>> -------
>>>> Red Hat
>>>>
>>>> Email: jstracha@redhat.com
>>>> Web: http://fusesource.com
>>>> Twitter: jstrachan, fusenews
>>>> Blog: http://macstrac.blogspot.com/
>>>>
>>>> Open Source Integration
>>>>
>>>
>>>
>>>
>>> --
>>> James
>>> -------
>>> Red Hat
>>>
>>> Email: jstracha@redhat.com
>>> Web: http://fusesource.com
>>> Twitter: jstrachan, fusenews
>>> Blog: http://macstrac.blogspot.com/
>>>
>>> Open Source Integration
>>
>> --
>> Daniel Kulp
>> dkulp@apache.org - http://dankulp.com/blog
>> Talend Community Coder - http://coders.talend.com
>
> Rob Davies
> -----------------
> Red Hat, Inc
> Twitter: rajdavies
> Blog: http://rajdavies.blogspot.com
> ActiveMQ in Action: http://www.manning.com/snyder/
>
>
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven
plugin.
Posted by Rob Davies <ra...@gmail.com>.
Thanks Jon!
On 1 Dec 2013, at 13:23, Jon Anstey [via Camel] <ml...@n5.nabble.com> wrote:
> Even if there is this cycle, I'm pretty sure hawtio isn't tied to a
> specific version of camel so it shouldnt be an issue.
> On 2013-12-01 9:40 AM, "Jon Anstey" <[hidden email]> wrote:
>
> > I think this is the first possible technical issue in this thread...
> > Although I haven't looked at the dependency graph myself to see if its
> > actually an issue :-)
> >
> > We certainly do not have the requirement to brand and control every 3rd
> > party tool we interact with. Like, we deploy poms that specify a profile
> > setup.eclipse. Should we rename it to setup.ide?? I don't mean to be
> > disrespectful, I'm just suggesting something far fetched to try and prove a
> > point.
> >
> > Cheers,
> > Jom
> > On 2013-12-01 6:09 AM, "Christian Schneider" <[hidden email]>
> > wrote:
> >
> >> I see another technical issue with the relation between camel and hawtio.
> >> The Hawtio camel integration depends on camel. If we now add a dependency
> >> from camel to hawtio this creates a circular depenency that tightly couples
> >> the projects in a way that should be avoided.
> >>
> >> So why not just provide a small camel hawtio plugin inside hawtio that
> >> does this integration. So the dependency is simply from hawtio to camel.
> >> For the users this does not make a difference in usability but technically
> >> it is cleaner.
> >>
> >> Christian
> >>
> >> Am 01.12.2013 09:46, schrieb Rob Davies:
> >>
> >>> [hidden email] wrote
> >>>
> >>>> Having no way for this PMC to control the display of the Camel route
> >>>> *IS*
> >>>> a technical justification. If we as a PMC wanted to remove columns,
> >>>> add
> >>>> new columns for new features, change the order of stuff, etc…. *WE*
> >>>> have
> >>>> no way to do so.
> >>>>
> >>>> Having no way to change the branding of what is displayed *IS* a
> >>>> technical
> >>>> justification. We cannot have links popping up and icons and such that
> >>>> promote something else.
> >>>>
> >>>> Having no way to remove all the “cruft” that is unrelated to Camel *IS*
> >>>> a
> >>>> technical justification. Claus’s screen shot on the wiki has an
> >>>> AcitveMQ
> >>>> tab, Wiki tab, etc… which would need to be removed if the goal is to
> >>>> have
> >>>> a Camel route display.
> >>>>
> >>>> That’s all technical justification. This needs to be removed until
> >>>> they
> >>>> can all be addressed.
> >>>>
> >>>> Oh… and the maven goal cannot be camel:hawtio. It would need to be
> >>>> camel:run-webconsole or similar to remove the branding part from that as
> >>>> well.
> >>>>
> >>> So any 3rd party tool that aids developers, can't be run as a maven
> >>> target
> >>> unless its completely branded and controlled by the Camel PMC is the
> >>> stance
> >>> you are taking.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> --
> >>> View this message in context: http://camel.465427.n5.nabble.
> >>> com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-
> >>> tp5744029p5744126.html
> >>> Sent from the Camel Development mailing list archive at Nabble.com.
> >>>
> >>
> >>
> >> --
> >> Christian Schneider
> >> http://www.liquid-reality.de
> >>
> >> Open Source Architect
> >> Talend Application Integration Division http://www.talend.com
> >>
> >>
>
>
> If you reply to this email, your message will be added to the discussion below:
> http://camel.465427.n5.nabble.com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-tp5744029p5744129.html
> To unsubscribe from Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin., click here.
> NAML
Rob Davies
-----------------
Red Hat, Inc
Twitter: rajdavies
Blog: http://rajdavies.blogspot.com
ActiveMQ in Action: http://www.manning.com/snyder/
--
View this message in context: http://camel.465427.n5.nabble.com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-tp5744029p5744134.html
Sent from the Camel Development mailing list archive at Nabble.com.
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Jon Anstey <ja...@gmail.com>.
Even if there is this cycle, I'm pretty sure hawtio isn't tied to a
specific version of camel so it shouldnt be an issue.
On 2013-12-01 9:40 AM, "Jon Anstey" <ja...@gmail.com> wrote:
> I think this is the first possible technical issue in this thread...
> Although I haven't looked at the dependency graph myself to see if its
> actually an issue :-)
>
> We certainly do not have the requirement to brand and control every 3rd
> party tool we interact with. Like, we deploy poms that specify a profile
> setup.eclipse. Should we rename it to setup.ide?? I don't mean to be
> disrespectful, I'm just suggesting something far fetched to try and prove a
> point.
>
> Cheers,
> Jom
> On 2013-12-01 6:09 AM, "Christian Schneider" <ch...@die-schneider.net>
> wrote:
>
>> I see another technical issue with the relation between camel and hawtio.
>> The Hawtio camel integration depends on camel. If we now add a dependency
>> from camel to hawtio this creates a circular depenency that tightly couples
>> the projects in a way that should be avoided.
>>
>> So why not just provide a small camel hawtio plugin inside hawtio that
>> does this integration. So the dependency is simply from hawtio to camel.
>> For the users this does not make a difference in usability but technically
>> it is cleaner.
>>
>> Christian
>>
>> Am 01.12.2013 09:46, schrieb Rob Davies:
>>
>>> dkulp@apache.org wrote
>>>
>>>> Having no way for this PMC to control the display of the Camel route
>>>> *IS*
>>>> a technical justification. If we as a PMC wanted to remove columns,
>>>> add
>>>> new columns for new features, change the order of stuff, etc…. *WE*
>>>> have
>>>> no way to do so.
>>>>
>>>> Having no way to change the branding of what is displayed *IS* a
>>>> technical
>>>> justification. We cannot have links popping up and icons and such that
>>>> promote something else.
>>>>
>>>> Having no way to remove all the “cruft” that is unrelated to Camel *IS*
>>>> a
>>>> technical justification. Claus’s screen shot on the wiki has an
>>>> AcitveMQ
>>>> tab, Wiki tab, etc… which would need to be removed if the goal is to
>>>> have
>>>> a Camel route display.
>>>>
>>>> That’s all technical justification. This needs to be removed until
>>>> they
>>>> can all be addressed.
>>>>
>>>> Oh… and the maven goal cannot be camel:hawtio. It would need to be
>>>> camel:run-webconsole or similar to remove the branding part from that as
>>>> well.
>>>>
>>> So any 3rd party tool that aids developers, can't be run as a maven
>>> target
>>> unless its completely branded and controlled by the Camel PMC is the
>>> stance
>>> you are taking.
>>>
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context: http://camel.465427.n5.nabble.
>>> com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-
>>> tp5744029p5744126.html
>>> Sent from the Camel Development mailing list archive at Nabble.com.
>>>
>>
>>
>> --
>> Christian Schneider
>> http://www.liquid-reality.de
>>
>> Open Source Architect
>> Talend Application Integration Division http://www.talend.com
>>
>>
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Jon Anstey <ja...@gmail.com>.
I think this is the first possible technical issue in this thread...
Although I haven't looked at the dependency graph myself to see if its
actually an issue :-)
We certainly do not have the requirement to brand and control every 3rd
party tool we interact with. Like, we deploy poms that specify a profile
setup.eclipse. Should we rename it to setup.ide?? I don't mean to be
disrespectful, I'm just suggesting something far fetched to try and prove a
point.
Cheers,
Jom
On 2013-12-01 6:09 AM, "Christian Schneider" <ch...@die-schneider.net>
wrote:
> I see another technical issue with the relation between camel and hawtio.
> The Hawtio camel integration depends on camel. If we now add a dependency
> from camel to hawtio this creates a circular depenency that tightly couples
> the projects in a way that should be avoided.
>
> So why not just provide a small camel hawtio plugin inside hawtio that
> does this integration. So the dependency is simply from hawtio to camel.
> For the users this does not make a difference in usability but technically
> it is cleaner.
>
> Christian
>
> Am 01.12.2013 09:46, schrieb Rob Davies:
>
>> dkulp@apache.org wrote
>>
>>> Having no way for this PMC to control the display of the Camel route *IS*
>>> a technical justification. If we as a PMC wanted to remove columns, add
>>> new columns for new features, change the order of stuff, etc…. *WE*
>>> have
>>> no way to do so.
>>>
>>> Having no way to change the branding of what is displayed *IS* a
>>> technical
>>> justification. We cannot have links popping up and icons and such that
>>> promote something else.
>>>
>>> Having no way to remove all the “cruft” that is unrelated to Camel *IS*
>>> a
>>> technical justification. Claus’s screen shot on the wiki has an
>>> AcitveMQ
>>> tab, Wiki tab, etc… which would need to be removed if the goal is to
>>> have
>>> a Camel route display.
>>>
>>> That’s all technical justification. This needs to be removed until
>>> they
>>> can all be addressed.
>>>
>>> Oh… and the maven goal cannot be camel:hawtio. It would need to be
>>> camel:run-webconsole or similar to remove the branding part from that as
>>> well.
>>>
>> So any 3rd party tool that aids developers, can't be run as a maven target
>> unless its completely branded and controlled by the Camel PMC is the
>> stance
>> you are taking.
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.
>> com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-
>> tp5744029p5744126.html
>> Sent from the Camel Development mailing list archive at Nabble.com.
>>
>
>
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Open Source Architect
> Talend Application Integration Division http://www.talend.com
>
>
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Christian Schneider <ch...@die-schneider.net>.
I see another technical issue with the relation between camel and
hawtio. The Hawtio camel integration depends on camel. If we now add a
dependency from camel to hawtio this creates a circular depenency that
tightly couples the projects in a way that should be avoided.
So why not just provide a small camel hawtio plugin inside hawtio that
does this integration. So the dependency is simply from hawtio to camel.
For the users this does not make a difference in usability but
technically it is cleaner.
Christian
Am 01.12.2013 09:46, schrieb Rob Davies:
> dkulp@apache.org wrote
>> Having no way for this PMC to control the display of the Camel route *IS*
>> a technical justification. If we as a PMC wanted to remove columns, add
>> new columns for new features, change the order of stuff, etc…. *WE* have
>> no way to do so.
>>
>> Having no way to change the branding of what is displayed *IS* a technical
>> justification. We cannot have links popping up and icons and such that
>> promote something else.
>>
>> Having no way to remove all the “cruft” that is unrelated to Camel *IS* a
>> technical justification. Claus’s screen shot on the wiki has an AcitveMQ
>> tab, Wiki tab, etc… which would need to be removed if the goal is to have
>> a Camel route display.
>>
>> That’s all technical justification. This needs to be removed until they
>> can all be addressed.
>>
>> Oh… and the maven goal cannot be camel:hawtio. It would need to be
>> camel:run-webconsole or similar to remove the branding part from that as
>> well.
> So any 3rd party tool that aids developers, can't be run as a maven target
> unless its completely branded and controlled by the Camel PMC is the stance
> you are taking.
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-tp5744029p5744126.html
> Sent from the Camel Development mailing list archive at Nabble.com.
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
Talend Application Integration Division http://www.talend.com
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven
plugin.
Posted by Rob Davies <ra...@gmail.com>.
On 1 Dec 2013, at 13:25, dkulp@apache.org [via Camel] <ml...@n5.nabble.com> wrote:
>
> >
> > So any 3rd party tool that aids developers, can't be run as a maven target
> > unless its completely branded and controlled by the Camel PMC is the stance
> > you are taking.
>
> If the maven plugin is part of Camel and it’s stated purpose it to present *Camel* to the user, then yes. That BETTER be under the PMC’s complete control and influence.
It is neither reasonable or practical to have control over all 3rd party projects/tools. When application of the Apache branding policy is so over zealous that it negates the common good then there is either something seriously wrong with the branding policy or your interpretation of it.
-----------------
Red Hat, Inc
Twitter: rajdavies
Blog: http://rajdavies.blogspot.com
ActiveMQ in Action: http://www.manning.com/snyder/
--
View this message in context: http://camel.465427.n5.nabble.com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-tp5744029p5744135.html
Sent from the Camel Development mailing list archive at Nabble.com.
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Babak Vahdat <ba...@swissonline.ch>.
Johan, my intention is not to attack anybody (although you¹re free to
interpret it that way) but only to tell how I see the REAL intention
behind this thread. And thanks for sharing your opinion!
Babak
Am 01.12.13 19:10 schrieb "Johan Edstrom" unter <se...@gmail.com>:
>Babak, the good thing about personal opinion and ad-hominem
>attacks it that one doesn't have to share them.
>
>On Dec 1, 2013, at 11:03 AM, Benjamin Graf <be...@gmx.net> wrote:
>
>> Hi
>>
>> BTW why is hawtio a problem for Camel for political reason? It is yet
>>the
>> official front end for ActiveMQ. Is this seen different in different
>>Apache
>> projects???
>>
>> Best regards
>> Benjamin
>>
>> On 01.12.2013 17:58, Babak Vahdat wrote:
>>> Hi
>>>
>>> Let me sincerly tell you my personal opinion. To me the vetos both Dan
>>>&
>>> Hadrian have started in this thread has nothing really technical in it
>>>and
>>> is just POLITICAL justifications as Talend representatives.
>>>
>>> Why not let the community benefit from a ASL2 licensed software?
>>>
>>> @Dan in open source community there is nothing ANYBODY should get the
>>> control over because the open source community doesn't need a BOSS as
>>>you
>>> like to be:
>>>
>>>
>>>http://camel.465427.n5.nabble.com/Getting-closer-with-Java7-tp5692627p57
>>>13781.html
>>>
>>> If there's any improvement you see just make a pull request like ALL
>>>OTHER
>>> people in the community, SPECIALLY for:
>>>
>>> "links popping up and icons and such that promote something else"
>>>
>>> You did mention about in this thread. BTW where did you exactly spot
>>>those
>>> icons & pop-ups?
>>>
>>> Babak
>>>
>>>
>>> dkulp@apache.org wrote
>>>> On Dec 1, 2013, at 3:46 AM, Rob Davies <
>>>> rajdavies@
>>>> > wrote:
>>>>
>>>> dkulp@
>>>> wrote
>>>>>> Having no way for this PMC to control the display of the Camel route
>>>>>> *IS*
>>>>>> a technical justification. If we as a PMC wanted to remove
>>>>>>columns,
>>>>>> add
>>>>>> new columns for new features, change the order of stuff, etc.
>>>>>>*WE*
>>>>>> have
>>>>>> no way to do so.
>>>>>>
>>>>>> Having no way to change the branding of what is displayed *IS* a
>>>>>> technical
>>>>>> justification. We cannot have links popping up and icons and such
>>>>>>that
>>>>>> promote something else.
>>>>>>
>>>>>> Having no way to remove all the ³cruft² that is unrelated to Camel
>>>>>>*IS*
>>>>>> a
>>>>>> technical justification. Claus¹s screen shot on the wiki has an
>>>>>> AcitveMQ
>>>>>> tab, Wiki tab, etc which would need to be removed if the goal is
>>>>>>to
>>>>>> have
>>>>>> a Camel route display.
>>>>>>
>>>>>> That¹s all technical justification. This needs to be removed
>>>>>>until
>>>>>> they
>>>>>> can all be addressed.
>>>>>>
>>>>>> Oh and the maven goal cannot be camel:hawtio. It would need to be
>>>>>> camel:run-webconsole or similar to remove the branding part from
>>>>>>that as
>>>>>> well.
>>>>> So any 3rd party tool that aids developers, can't be run as a maven
>>>>> target
>>>>> unless its completely branded and controlled by the Camel PMC is the
>>>>> stance
>>>>> you are taking.
>>>> If the maven plugin is part of Camel and it¹s stated purpose it to
>>>>present
>>>> *Camel* to the user, then yes. That BETTER be under the PMC¹s
>>>>complete
>>>> control and influence.
>>>>
>>>>
>>>>
>>>> --
>>>> Daniel Kulp
>>>> dkulp@
>>>> - http://dankulp.com/blog
>>>> Talend Community Coder - http://coders.talend.com
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>>http://camel.465427.n5.nabble.com/Re-git-commit-CAMEL-7023-Added-hawtio-
>>>goal-to-camel-maven-plugin-tp5744029p5744136.html
>>> Sent from the Camel Development mailing list archive at Nabble.com.
>>
>>
>
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Johan Edstrom <se...@gmail.com>.
Babak, the good thing about personal opinion and ad-hominem
attacks it that one doesn't have to share them.
On Dec 1, 2013, at 11:03 AM, Benjamin Graf <be...@gmx.net> wrote:
> Hi
>
> BTW why is hawtio a problem for Camel for political reason? It is yet the
> official front end for ActiveMQ. Is this seen different in different Apache
> projects???
>
> Best regards
> Benjamin
>
> On 01.12.2013 17:58, Babak Vahdat wrote:
>> Hi
>>
>> Let me sincerly tell you my personal opinion. To me the vetos both Dan &
>> Hadrian have started in this thread has nothing really technical in it and
>> is just POLITICAL justifications as Talend representatives.
>>
>> Why not let the community benefit from a ASL2 licensed software?
>>
>> @Dan in open source community there is nothing ANYBODY should get the
>> control over because the open source community doesn't need a BOSS as you
>> like to be:
>>
>> http://camel.465427.n5.nabble.com/Getting-closer-with-Java7-tp5692627p5713781.html
>>
>> If there's any improvement you see just make a pull request like ALL OTHER
>> people in the community, SPECIALLY for:
>>
>> "links popping up and icons and such that promote something else"
>>
>> You did mention about in this thread. BTW where did you exactly spot those
>> icons & pop-ups?
>>
>> Babak
>>
>>
>> dkulp@apache.org wrote
>>> On Dec 1, 2013, at 3:46 AM, Rob Davies <
>>> rajdavies@
>>> > wrote:
>>>
>>> dkulp@
>>> wrote
>>>>> Having no way for this PMC to control the display of the Camel route
>>>>> *IS*
>>>>> a technical justification. If we as a PMC wanted to remove columns,
>>>>> add
>>>>> new columns for new features, change the order of stuff, etc…. *WE*
>>>>> have
>>>>> no way to do so.
>>>>>
>>>>> Having no way to change the branding of what is displayed *IS* a
>>>>> technical
>>>>> justification. We cannot have links popping up and icons and such that
>>>>> promote something else.
>>>>>
>>>>> Having no way to remove all the “cruft” that is unrelated to Camel *IS*
>>>>> a
>>>>> technical justification. Claus’s screen shot on the wiki has an
>>>>> AcitveMQ
>>>>> tab, Wiki tab, etc… which would need to be removed if the goal is to
>>>>> have
>>>>> a Camel route display.
>>>>>
>>>>> That’s all technical justification. This needs to be removed until
>>>>> they
>>>>> can all be addressed.
>>>>>
>>>>> Oh… and the maven goal cannot be camel:hawtio. It would need to be
>>>>> camel:run-webconsole or similar to remove the branding part from that as
>>>>> well.
>>>> So any 3rd party tool that aids developers, can't be run as a maven
>>>> target
>>>> unless its completely branded and controlled by the Camel PMC is the
>>>> stance
>>>> you are taking.
>>> If the maven plugin is part of Camel and it’s stated purpose it to present
>>> *Camel* to the user, then yes. That BETTER be under the PMC’s complete
>>> control and influence.
>>>
>>>
>>>
>>> --
>>> Daniel Kulp
>>> dkulp@
>>> - http://dankulp.com/blog
>>> Talend Community Coder - http://coders.talend.com
>>
>>
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-tp5744029p5744136.html
>> Sent from the Camel Development mailing list archive at Nabble.com.
>
>
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven
plugin.
Posted by "Preben.Asmussen" <pr...@dr.dk>.
As a Camel user I welcome debate, since it's a sign of good health that there
is different opinions, and interests, but let the debate continue in a good
technical spirit :-)
Best,
Preben
--
View this message in context: http://camel.465427.n5.nabble.com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-tp5744029p5744197.html
Sent from the Camel Development mailing list archive at Nabble.com.
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi all,
I find this conversation very amusing and worrying in the same time. (could
someone please hand me some coke and popcorn)
It’s rather queer how Hawt.io is being pushed in three different Apache
Projects right now. This leaves me with a rather shallow taste (in German
“Geschmäckle”)
and those interesting words of a Red Hat partner didn't help any.
Though I’m just a little minion and not a Rockstar so please mind my humble
opinion.
best regards, Achim
P.S. sarcasm and irony tags may be placed at will
2013/12/1 Babak Vahdat <ba...@swissonline.ch>
> Interestingly I could not find any discussion (or veto) going on by the AMQ
> dev forum about replacing the old webconsole with hawtio, strange...
>
> The only thing I found was the JIRA ticket about this:
>
> https://issues.apache.org/jira/browse/AMQ-4594
>
> Babak
>
>
> Johan Edstrom-2 wrote
> > Benjamin, it has been discussed in AMQ as well.
> >
> >
> http://irclogs.dankulp.com/logs/irclogger_log/activemq/?date=2013-11-13,Wed
> >
> http://irclogs.dankulp.com/logs/irclogger_log/activemq/?date=2013-10-25,Fri
> >
> >
> > On Dec 1, 2013, at 11:03 AM, Benjamin Graf <
>
> > benjamin.graf@
>
> > > wrote:
> >
> >> Hi
> >>
> >> BTW why is hawtio a problem for Camel for political reason? It is yet
> the
> >> official front end for ActiveMQ. Is this seen different in different
> >> Apache
> >> projects???
> >>
> >> Best regards
> >> Benjamin
> >>
> >> On 01.12.2013 17:58, Babak Vahdat wrote:
> >>> Hi
> >>>
> >>> Let me sincerly tell you my personal opinion. To me the vetos both Dan
> &
> >>> Hadrian have started in this thread has nothing really technical in it
> >>> and
> >>> is just POLITICAL justifications as Talend representatives.
> >>>
> >>> Why not let the community benefit from a ASL2 licensed software?
> >>>
> >>> @Dan in open source community there is nothing ANYBODY should get the
> >>> control over because the open source community doesn't need a BOSS as
> >>> you
> >>> like to be:
> >>>
> >>>
> http://camel.465427.n5.nabble.com/Getting-closer-with-Java7-tp5692627p5713781.html
> >>>
> >>> If there's any improvement you see just make a pull request like ALL
> >>> OTHER
> >>> people in the community, SPECIALLY for:
> >>>
> >>> "links popping up and icons and such that promote something else"
> >>>
> >>> You did mention about in this thread. BTW where did you exactly spot
> >>> those
> >>> icons & pop-ups?
> >>>
> >>> Babak
> >>>
> >>>
> >>>
>
> > dkulp@
>
> > wrote
> >>>> On Dec 1, 2013, at 3:46 AM, Rob Davies <
> >>>> rajdavies@
> >>>> > wrote:
> >>>>
> >>>> dkulp@
> >>>> wrote
> >>>>>> Having no way for this PMC to control the display of the Camel route
> >>>>>> *IS*
> >>>>>> a technical justification. If we as a PMC wanted to remove
> columns,
> >>>>>> add
> >>>>>> new columns for new features, change the order of stuff, etc….
> *WE*
> >>>>>> have
> >>>>>> no way to do so.
> >>>>>>
> >>>>>> Having no way to change the branding of what is displayed *IS* a
> >>>>>> technical
> >>>>>> justification. We cannot have links popping up and icons and such
> >>>>>> that
> >>>>>> promote something else.
> >>>>>>
> >>>>>> Having no way to remove all the “cruft” that is unrelated to Camel
> >>>>>> *IS*
> >>>>>> a
> >>>>>> technical justification. Claus’s screen shot on the wiki has an
> >>>>>> AcitveMQ
> >>>>>> tab, Wiki tab, etc… which would need to be removed if the goal is
> to
> >>>>>> have
> >>>>>> a Camel route display.
> >>>>>>
> >>>>>> That’s all technical justification. This needs to be removed
> until
> >>>>>> they
> >>>>>> can all be addressed.
> >>>>>>
> >>>>>> Oh… and the maven goal cannot be camel:hawtio. It would need to be
> >>>>>> camel:run-webconsole or similar to remove the branding part from
> that
> >>>>>> as
> >>>>>> well.
> >>>>> So any 3rd party tool that aids developers, can't be run as a maven
> >>>>> target
> >>>>> unless its completely branded and controlled by the Camel PMC is the
> >>>>> stance
> >>>>> you are taking.
> >>>> If the maven plugin is part of Camel and it’s stated purpose it to
> >>>> present
> >>>> *Camel* to the user, then yes. That BETTER be under the PMC’s
> >>>> complete
> >>>> control and influence.
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Daniel Kulp
> >>>> dkulp@
> >>>> - http://dankulp.com/blog
> >>>> Talend Community Coder - http://coders.talend.com
> >>>
> >>>
> >>>
> >>>
> >>> --
> >>> View this message in context:
> >>>
> http://camel.465427.n5.nabble.com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-tp5744029p5744136.html
> >>> Sent from the Camel Development mailing list archive at Nabble.com.
> >>
> >>
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-tp5744029p5744142.html
> Sent from the Camel Development mailing list archive at Nabble.com.
>
--
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven
plugin.
Posted by Jeff Genender <jg...@apache.org>.
I will submit my -1 as well. This is not a political discussion, it is
technical and Dan's points are indeed technical.
I would suggest that any political lines that have appeared to have been
drawn here are taken to private@ and need to be worked out there. This is
no place to be opining on the political aspects. This is a technical list
and discussion should center around that.
--
View this message in context: http://camel.465427.n5.nabble.com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-tp5744029p5744191.html
Sent from the Camel Development mailing list archive at Nabble.com.
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven
plugin.
Posted by Babak Vahdat <ba...@swissonline.ch>.
Interestingly I could not find any discussion (or veto) going on by the AMQ
dev forum about replacing the old webconsole with hawtio, strange...
The only thing I found was the JIRA ticket about this:
https://issues.apache.org/jira/browse/AMQ-4594
Babak
Johan Edstrom-2 wrote
> Benjamin, it has been discussed in AMQ as well.
>
> http://irclogs.dankulp.com/logs/irclogger_log/activemq/?date=2013-11-13,Wed
> http://irclogs.dankulp.com/logs/irclogger_log/activemq/?date=2013-10-25,Fri
>
>
> On Dec 1, 2013, at 11:03 AM, Benjamin Graf <
> benjamin.graf@
> > wrote:
>
>> Hi
>>
>> BTW why is hawtio a problem for Camel for political reason? It is yet the
>> official front end for ActiveMQ. Is this seen different in different
>> Apache
>> projects???
>>
>> Best regards
>> Benjamin
>>
>> On 01.12.2013 17:58, Babak Vahdat wrote:
>>> Hi
>>>
>>> Let me sincerly tell you my personal opinion. To me the vetos both Dan &
>>> Hadrian have started in this thread has nothing really technical in it
>>> and
>>> is just POLITICAL justifications as Talend representatives.
>>>
>>> Why not let the community benefit from a ASL2 licensed software?
>>>
>>> @Dan in open source community there is nothing ANYBODY should get the
>>> control over because the open source community doesn't need a BOSS as
>>> you
>>> like to be:
>>>
>>> http://camel.465427.n5.nabble.com/Getting-closer-with-Java7-tp5692627p5713781.html
>>>
>>> If there's any improvement you see just make a pull request like ALL
>>> OTHER
>>> people in the community, SPECIALLY for:
>>>
>>> "links popping up and icons and such that promote something else"
>>>
>>> You did mention about in this thread. BTW where did you exactly spot
>>> those
>>> icons & pop-ups?
>>>
>>> Babak
>>>
>>>
>>>
> dkulp@
> wrote
>>>> On Dec 1, 2013, at 3:46 AM, Rob Davies <
>>>> rajdavies@
>>>> > wrote:
>>>>
>>>> dkulp@
>>>> wrote
>>>>>> Having no way for this PMC to control the display of the Camel route
>>>>>> *IS*
>>>>>> a technical justification. If we as a PMC wanted to remove columns,
>>>>>> add
>>>>>> new columns for new features, change the order of stuff, etc…. *WE*
>>>>>> have
>>>>>> no way to do so.
>>>>>>
>>>>>> Having no way to change the branding of what is displayed *IS* a
>>>>>> technical
>>>>>> justification. We cannot have links popping up and icons and such
>>>>>> that
>>>>>> promote something else.
>>>>>>
>>>>>> Having no way to remove all the “cruft” that is unrelated to Camel
>>>>>> *IS*
>>>>>> a
>>>>>> technical justification. Claus’s screen shot on the wiki has an
>>>>>> AcitveMQ
>>>>>> tab, Wiki tab, etc… which would need to be removed if the goal is to
>>>>>> have
>>>>>> a Camel route display.
>>>>>>
>>>>>> That’s all technical justification. This needs to be removed until
>>>>>> they
>>>>>> can all be addressed.
>>>>>>
>>>>>> Oh… and the maven goal cannot be camel:hawtio. It would need to be
>>>>>> camel:run-webconsole or similar to remove the branding part from that
>>>>>> as
>>>>>> well.
>>>>> So any 3rd party tool that aids developers, can't be run as a maven
>>>>> target
>>>>> unless its completely branded and controlled by the Camel PMC is the
>>>>> stance
>>>>> you are taking.
>>>> If the maven plugin is part of Camel and it’s stated purpose it to
>>>> present
>>>> *Camel* to the user, then yes. That BETTER be under the PMC’s
>>>> complete
>>>> control and influence.
>>>>
>>>>
>>>>
>>>> --
>>>> Daniel Kulp
>>>> dkulp@
>>>> - http://dankulp.com/blog
>>>> Talend Community Coder - http://coders.talend.com
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://camel.465427.n5.nabble.com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-tp5744029p5744136.html
>>> Sent from the Camel Development mailing list archive at Nabble.com.
>>
>>
--
View this message in context: http://camel.465427.n5.nabble.com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-tp5744029p5744142.html
Sent from the Camel Development mailing list archive at Nabble.com.
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Johan Edstrom <se...@gmail.com>.
Benjamin, it has been discussed in AMQ as well.
http://irclogs.dankulp.com/logs/irclogger_log/activemq/?date=2013-11-13,Wed
http://irclogs.dankulp.com/logs/irclogger_log/activemq/?date=2013-10-25,Fri
On Dec 1, 2013, at 11:03 AM, Benjamin Graf <be...@gmx.net> wrote:
> Hi
>
> BTW why is hawtio a problem for Camel for political reason? It is yet the
> official front end for ActiveMQ. Is this seen different in different Apache
> projects???
>
> Best regards
> Benjamin
>
> On 01.12.2013 17:58, Babak Vahdat wrote:
>> Hi
>>
>> Let me sincerly tell you my personal opinion. To me the vetos both Dan &
>> Hadrian have started in this thread has nothing really technical in it and
>> is just POLITICAL justifications as Talend representatives.
>>
>> Why not let the community benefit from a ASL2 licensed software?
>>
>> @Dan in open source community there is nothing ANYBODY should get the
>> control over because the open source community doesn't need a BOSS as you
>> like to be:
>>
>> http://camel.465427.n5.nabble.com/Getting-closer-with-Java7-tp5692627p5713781.html
>>
>> If there's any improvement you see just make a pull request like ALL OTHER
>> people in the community, SPECIALLY for:
>>
>> "links popping up and icons and such that promote something else"
>>
>> You did mention about in this thread. BTW where did you exactly spot those
>> icons & pop-ups?
>>
>> Babak
>>
>>
>> dkulp@apache.org wrote
>>> On Dec 1, 2013, at 3:46 AM, Rob Davies <
>>> rajdavies@
>>> > wrote:
>>>
>>> dkulp@
>>> wrote
>>>>> Having no way for this PMC to control the display of the Camel route
>>>>> *IS*
>>>>> a technical justification. If we as a PMC wanted to remove columns,
>>>>> add
>>>>> new columns for new features, change the order of stuff, etc…. *WE*
>>>>> have
>>>>> no way to do so.
>>>>>
>>>>> Having no way to change the branding of what is displayed *IS* a
>>>>> technical
>>>>> justification. We cannot have links popping up and icons and such that
>>>>> promote something else.
>>>>>
>>>>> Having no way to remove all the “cruft” that is unrelated to Camel *IS*
>>>>> a
>>>>> technical justification. Claus’s screen shot on the wiki has an
>>>>> AcitveMQ
>>>>> tab, Wiki tab, etc… which would need to be removed if the goal is to
>>>>> have
>>>>> a Camel route display.
>>>>>
>>>>> That’s all technical justification. This needs to be removed until
>>>>> they
>>>>> can all be addressed.
>>>>>
>>>>> Oh… and the maven goal cannot be camel:hawtio. It would need to be
>>>>> camel:run-webconsole or similar to remove the branding part from that as
>>>>> well.
>>>> So any 3rd party tool that aids developers, can't be run as a maven
>>>> target
>>>> unless its completely branded and controlled by the Camel PMC is the
>>>> stance
>>>> you are taking.
>>> If the maven plugin is part of Camel and it’s stated purpose it to present
>>> *Camel* to the user, then yes. That BETTER be under the PMC’s complete
>>> control and influence.
>>>
>>>
>>>
>>> --
>>> Daniel Kulp
>>> dkulp@
>>> - http://dankulp.com/blog
>>> Talend Community Coder - http://coders.talend.com
>>
>>
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-tp5744029p5744136.html
>> Sent from the Camel Development mailing list archive at Nabble.com.
>
>
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Benjamin Graf <be...@gmx.net>.
Hi
BTW why is hawtio a problem for Camel for political reason? It is yet the
official front end for ActiveMQ. Is this seen different in different Apache
projects???
Best regards
Benjamin
On 01.12.2013 17:58, Babak Vahdat wrote:
> Hi
>
> Let me sincerly tell you my personal opinion. To me the vetos both Dan &
> Hadrian have started in this thread has nothing really technical in it and
> is just POLITICAL justifications as Talend representatives.
>
> Why not let the community benefit from a ASL2 licensed software?
>
> @Dan in open source community there is nothing ANYBODY should get the
> control over because the open source community doesn't need a BOSS as you
> like to be:
>
> http://camel.465427.n5.nabble.com/Getting-closer-with-Java7-tp5692627p5713781.html
>
> If there's any improvement you see just make a pull request like ALL OTHER
> people in the community, SPECIALLY for:
>
> "links popping up and icons and such that promote something else"
>
> You did mention about in this thread. BTW where did you exactly spot those
> icons & pop-ups?
>
> Babak
>
>
> dkulp@apache.org wrote
>> On Dec 1, 2013, at 3:46 AM, Rob Davies <
>> rajdavies@
>> > wrote:
>>
>> dkulp@
>> wrote
>>>> Having no way for this PMC to control the display of the Camel route
>>>> *IS*
>>>> a technical justification. If we as a PMC wanted to remove columns,
>>>> add
>>>> new columns for new features, change the order of stuff, etc…. *WE*
>>>> have
>>>> no way to do so.
>>>>
>>>> Having no way to change the branding of what is displayed *IS* a
>>>> technical
>>>> justification. We cannot have links popping up and icons and such that
>>>> promote something else.
>>>>
>>>> Having no way to remove all the “cruft” that is unrelated to Camel *IS*
>>>> a
>>>> technical justification. Claus’s screen shot on the wiki has an
>>>> AcitveMQ
>>>> tab, Wiki tab, etc… which would need to be removed if the goal is to
>>>> have
>>>> a Camel route display.
>>>>
>>>> That’s all technical justification. This needs to be removed until
>>>> they
>>>> can all be addressed.
>>>>
>>>> Oh… and the maven goal cannot be camel:hawtio. It would need to be
>>>> camel:run-webconsole or similar to remove the branding part from that as
>>>> well.
>>> So any 3rd party tool that aids developers, can't be run as a maven
>>> target
>>> unless its completely branded and controlled by the Camel PMC is the
>>> stance
>>> you are taking.
>> If the maven plugin is part of Camel and it’s stated purpose it to present
>> *Camel* to the user, then yes. That BETTER be under the PMC’s complete
>> control and influence.
>>
>>
>>
>> --
>> Daniel Kulp
>> dkulp@
>> - http://dankulp.com/blog
>> Talend Community Coder - http://coders.talend.com
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-tp5744029p5744136.html
> Sent from the Camel Development mailing list archive at Nabble.com.
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven
plugin.
Posted by Babak Vahdat <ba...@swissonline.ch>.
Hi
Let me sincerly tell you my personal opinion. To me the vetos both Dan &
Hadrian have started in this thread has nothing really technical in it and
is just POLITICAL justifications as Talend representatives.
Why not let the community benefit from a ASL2 licensed software?
@Dan in open source community there is nothing ANYBODY should get the
control over because the open source community doesn't need a BOSS as you
like to be:
http://camel.465427.n5.nabble.com/Getting-closer-with-Java7-tp5692627p5713781.html
If there's any improvement you see just make a pull request like ALL OTHER
people in the community, SPECIALLY for:
"links popping up and icons and such that promote something else"
You did mention about in this thread. BTW where did you exactly spot those
icons & pop-ups?
Babak
dkulp@apache.org wrote
> On Dec 1, 2013, at 3:46 AM, Rob Davies <
> rajdavies@
> > wrote:
>
>>
> dkulp@
> wrote
>>> Having no way for this PMC to control the display of the Camel route
>>> *IS*
>>> a technical justification. If we as a PMC wanted to remove columns,
>>> add
>>> new columns for new features, change the order of stuff, etc…. *WE*
>>> have
>>> no way to do so.
>>>
>>> Having no way to change the branding of what is displayed *IS* a
>>> technical
>>> justification. We cannot have links popping up and icons and such that
>>> promote something else.
>>>
>>> Having no way to remove all the “cruft” that is unrelated to Camel *IS*
>>> a
>>> technical justification. Claus’s screen shot on the wiki has an
>>> AcitveMQ
>>> tab, Wiki tab, etc… which would need to be removed if the goal is to
>>> have
>>> a Camel route display.
>>>
>>> That’s all technical justification. This needs to be removed until
>>> they
>>> can all be addressed.
>>>
>>> Oh… and the maven goal cannot be camel:hawtio. It would need to be
>>> camel:run-webconsole or similar to remove the branding part from that as
>>> well.
>>
>> So any 3rd party tool that aids developers, can't be run as a maven
>> target
>> unless its completely branded and controlled by the Camel PMC is the
>> stance
>> you are taking.
>
> If the maven plugin is part of Camel and it’s stated purpose it to present
> *Camel* to the user, then yes. That BETTER be under the PMC’s complete
> control and influence.
>
>
>
> --
> Daniel Kulp
> dkulp@
> - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
--
View this message in context: http://camel.465427.n5.nabble.com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-tp5744029p5744136.html
Sent from the Camel Development mailing list archive at Nabble.com.
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Daniel Kulp <dk...@apache.org>.
On Dec 1, 2013, at 3:46 AM, Rob Davies <ra...@gmail.com> wrote:
> dkulp@apache.org wrote
>> Having no way for this PMC to control the display of the Camel route *IS*
>> a technical justification. If we as a PMC wanted to remove columns, add
>> new columns for new features, change the order of stuff, etc…. *WE* have
>> no way to do so.
>>
>> Having no way to change the branding of what is displayed *IS* a technical
>> justification. We cannot have links popping up and icons and such that
>> promote something else.
>>
>> Having no way to remove all the “cruft” that is unrelated to Camel *IS* a
>> technical justification. Claus’s screen shot on the wiki has an AcitveMQ
>> tab, Wiki tab, etc… which would need to be removed if the goal is to have
>> a Camel route display.
>>
>> That’s all technical justification. This needs to be removed until they
>> can all be addressed.
>>
>> Oh… and the maven goal cannot be camel:hawtio. It would need to be
>> camel:run-webconsole or similar to remove the branding part from that as
>> well.
>
> So any 3rd party tool that aids developers, can't be run as a maven target
> unless its completely branded and controlled by the Camel PMC is the stance
> you are taking.
If the maven plugin is part of Camel and it’s stated purpose it to present *Camel* to the user, then yes. That BETTER be under the PMC’s complete control and influence.
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Hadrian Zbarcea <hz...@gmail.com>.
There are two outstanding vetoes. Please revert the patch until the
conclusion of this discussion.
Hadrian
On 12/01/2013 03:46 AM, Rob Davies wrote:
> dkulp@apache.org wrote
>> Having no way for this PMC to control the display of the Camel route *IS*
>> a technical justification. If we as a PMC wanted to remove columns, add
>> new columns for new features, change the order of stuff, etc…. *WE* have
>> no way to do so.
>>
>> Having no way to change the branding of what is displayed *IS* a technical
>> justification. We cannot have links popping up and icons and such that
>> promote something else.
>>
>> Having no way to remove all the “cruft” that is unrelated to Camel *IS* a
>> technical justification. Claus’s screen shot on the wiki has an AcitveMQ
>> tab, Wiki tab, etc… which would need to be removed if the goal is to have
>> a Camel route display.
>>
>> That’s all technical justification. This needs to be removed until they
>> can all be addressed.
>>
>> Oh… and the maven goal cannot be camel:hawtio. It would need to be
>> camel:run-webconsole or similar to remove the branding part from that as
>> well.
>
> So any 3rd party tool that aids developers, can't be run as a maven target
> unless its completely branded and controlled by the Camel PMC is the stance
> you are taking.
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-tp5744029p5744126.html
> Sent from the Camel Development mailing list archive at Nabble.com.
>
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven
plugin.
Posted by Rob Davies <ra...@gmail.com>.
dkulp@apache.org wrote
> Having no way for this PMC to control the display of the Camel route *IS*
> a technical justification. If we as a PMC wanted to remove columns, add
> new columns for new features, change the order of stuff, etc…. *WE* have
> no way to do so.
>
> Having no way to change the branding of what is displayed *IS* a technical
> justification. We cannot have links popping up and icons and such that
> promote something else.
>
> Having no way to remove all the “cruft” that is unrelated to Camel *IS* a
> technical justification. Claus’s screen shot on the wiki has an AcitveMQ
> tab, Wiki tab, etc… which would need to be removed if the goal is to have
> a Camel route display.
>
> That’s all technical justification. This needs to be removed until they
> can all be addressed.
>
> Oh… and the maven goal cannot be camel:hawtio. It would need to be
> camel:run-webconsole or similar to remove the branding part from that as
> well.
So any 3rd party tool that aids developers, can't be run as a maven target
unless its completely branded and controlled by the Camel PMC is the stance
you are taking.
--
View this message in context: http://camel.465427.n5.nabble.com/Re-git-commit-CAMEL-7023-Added-hawtio-goal-to-camel-maven-plugin-tp5744029p5744126.html
Sent from the Camel Development mailing list archive at Nabble.com.
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Daniel Kulp <dk...@apache.org>.
On Nov 30, 2013, at 2:35 AM, Robert Davies <ra...@gmail.com> wrote:
> It seems a couple of people are getting a head of themselves.
> Firstly, the -1 vote of Dan and Hadrian are invalid without a technical justification, and it seems they are trying to justify a -1 on some policy by the Camel PMC that I for one are not aware of.
Having no way for this PMC to control the display of the Camel route *IS* a technical justification. If we as a PMC wanted to remove columns, add new columns for new features, change the order of stuff, etc…. *WE* have no way to do so.
Having no way to change the branding of what is displayed *IS* a technical justification. We cannot have links popping up and icons and such that promote something else.
Having no way to remove all the “cruft” that is unrelated to Camel *IS* a technical justification. Claus’s screen shot on the wiki has an AcitveMQ tab, Wiki tab, etc… which would need to be removed if the goal is to have a Camel route display.
That’s all technical justification. This needs to be removed until they can all be addressed.
Oh… and the maven goal cannot be camel:hawtio. It would need to be camel:run-webconsole or similar to remove the branding part from that as well.
Dan
> We have discussed removing the camel console [1], but that discussion is insufficient to cover the case of adding a maven target to different console - its not being distributed as part of Apache Camel, its just making it easier to run if you want to. I understand the concerns about hawtio, but lets discuss that first - and on a different thread and get some formality into this please.
>
> Rob
> [1] http://camel.465427.n5.nabble.com/DISCUSS-CAMEL-3-0-Does-camel-need-a-web-console-tt5726280.html#a5727053
>
> On 29 Nov 2013, at 18:07, Daniel Kulp <dk...@apache.org> wrote:
>
>>
>> On Nov 28, 2013, at 8:42 AM, James Strachan <ja...@gmail.com> wrote:
>>
>>> Should we back out the use of graphviz too? Do you think generating images
>>> for camel routes should be -1'd too?
>>
>> No. Graphviz is a graphics library. ALL the code for taking the camel routes and feeding the information into graphiz lives in camel and is under the Camel PMC control and direction. How the graph is presented to the user is under the Camel PMC direction. Thus, it’s “OK”.
>>
>> In this case, all of the code for presenting the Camel UI is NOT in control of the Camel PMC. It’s not part of Camel. It’s completely under the control of an external party. That is NOT OK.
>>
>> If HawtIO was just a console framework (or whatever you want to call it) and all of the “Camel” value-add was a plugin or was built upon that and that code was in Camel, I’d have “less” of a concern (certain branding and links and doc things would need to be resolved as well). Basically, if it was like Spring where Spring has a core and all the camel value add stuff to spring (namespace handlers, spring integration stuff, etc…) is part of Camel, then it would be OK.
>>
>> So, in summary, if a user wants a nice graphics view of a Camel route, as far as the Camel project goes, there are three options:
>>
>> 1) Claim it’s not an issue and do nothing….. It’s not one of our “itches” for us to scratch.
>>
>> 2) Claim it is an issue, but outside the scope of our project and point people the third party applications page we have on the website for options that are available.
>>
>> 3) Expand the scope of Camel to include this, but in this case, it HAS to be controlled, managed, documented, branded, etc…. completely by the Camel PMC. How it’s presented to the user, etc… must be completely “Apache Camel”, not hawtio or what ever.
>>
>>
>> Take your pick.
>>
>> Dan
>>
>>
>>
>>> On 28 November 2013 13:41, James Strachan <ja...@gmail.com> wrote:
>>>
>>>> On 28 November 2013 13:32, Daniel Kulp <dk...@apache.org> wrote:
>>>>
>>>>>
>>>>> I’m -1 to this commit. I don’t think we should be adding a bunch of
>>>>> targets for all the various container/platform integrations.
>>>>
>>>>
>>>> If that were true I'd maybe -1 it too; but this commit looks to be about
>>>> making it easy for Camel users to visualise & debug Camel routes in a web
>>>> browser - from inside their existing maven camel project. i.e. its a camel
>>>> thing; just needs a web server to host some static HTML/CSS/JS (which is
>>>> purely an implementation detail).
>>>>
>>>> Though its nothing really to do with mimicking runtime platforms like
>>>> tomcat:run / karaf:run / jetty:run.
>>>>
>>>> --
>>>> James
>>>> -------
>>>> Red Hat
>>>>
>>>> Email: jstracha@redhat.com
>>>> Web: http://fusesource.com
>>>> Twitter: jstrachan, fusenews
>>>> Blog: http://macstrac.blogspot.com/
>>>>
>>>> Open Source Integration
>>>>
>>>
>>>
>>>
>>> --
>>> James
>>> -------
>>> Red Hat
>>>
>>> Email: jstracha@redhat.com
>>> Web: http://fusesource.com
>>> Twitter: jstrachan, fusenews
>>> Blog: http://macstrac.blogspot.com/
>>>
>>> Open Source Integration
>>
>> --
>> Daniel Kulp
>> dkulp@apache.org - http://dankulp.com/blog
>> Talend Community Coder - http://coders.talend.com
>
> Rob Davies
> -----------------
> Red Hat, Inc
> Twitter: rajdavies
> Blog: http://rajdavies.blogspot.com
> ActiveMQ in Action: http://www.manning.com/snyder/
>
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Robert Davies <ra...@gmail.com>.
It seems a couple of people are getting a head of themselves.
Firstly, the -1 vote of Dan and Hadrian are invalid without a technical justification, and it seems they are trying to justify a -1 on some policy by the Camel PMC that I for one are not aware of.
We have discussed removing the camel console [1], but that discussion is insufficient to cover the case of adding a maven target to different console - its not being distributed as part of Apache Camel, its just making it easier to run if you want to. I understand the concerns about hawtio, but lets discuss that first - and on a different thread and get some formality into this please.
Rob
[1] http://camel.465427.n5.nabble.com/DISCUSS-CAMEL-3-0-Does-camel-need-a-web-console-tt5726280.html#a5727053
On 29 Nov 2013, at 18:07, Daniel Kulp <dk...@apache.org> wrote:
>
> On Nov 28, 2013, at 8:42 AM, James Strachan <ja...@gmail.com> wrote:
>
>> Should we back out the use of graphviz too? Do you think generating images
>> for camel routes should be -1'd too?
>
> No. Graphviz is a graphics library. ALL the code for taking the camel routes and feeding the information into graphiz lives in camel and is under the Camel PMC control and direction. How the graph is presented to the user is under the Camel PMC direction. Thus, it’s “OK”.
>
> In this case, all of the code for presenting the Camel UI is NOT in control of the Camel PMC. It’s not part of Camel. It’s completely under the control of an external party. That is NOT OK.
>
> If HawtIO was just a console framework (or whatever you want to call it) and all of the “Camel” value-add was a plugin or was built upon that and that code was in Camel, I’d have “less” of a concern (certain branding and links and doc things would need to be resolved as well). Basically, if it was like Spring where Spring has a core and all the camel value add stuff to spring (namespace handlers, spring integration stuff, etc…) is part of Camel, then it would be OK.
>
> So, in summary, if a user wants a nice graphics view of a Camel route, as far as the Camel project goes, there are three options:
>
> 1) Claim it’s not an issue and do nothing….. It’s not one of our “itches” for us to scratch.
>
> 2) Claim it is an issue, but outside the scope of our project and point people the third party applications page we have on the website for options that are available.
>
> 3) Expand the scope of Camel to include this, but in this case, it HAS to be controlled, managed, documented, branded, etc…. completely by the Camel PMC. How it’s presented to the user, etc… must be completely “Apache Camel”, not hawtio or what ever.
>
>
> Take your pick.
>
> Dan
>
>
>
>> On 28 November 2013 13:41, James Strachan <ja...@gmail.com> wrote:
>>
>>> On 28 November 2013 13:32, Daniel Kulp <dk...@apache.org> wrote:
>>>
>>>>
>>>> I’m -1 to this commit. I don’t think we should be adding a bunch of
>>>> targets for all the various container/platform integrations.
>>>
>>>
>>> If that were true I'd maybe -1 it too; but this commit looks to be about
>>> making it easy for Camel users to visualise & debug Camel routes in a web
>>> browser - from inside their existing maven camel project. i.e. its a camel
>>> thing; just needs a web server to host some static HTML/CSS/JS (which is
>>> purely an implementation detail).
>>>
>>> Though its nothing really to do with mimicking runtime platforms like
>>> tomcat:run / karaf:run / jetty:run.
>>>
>>> --
>>> James
>>> -------
>>> Red Hat
>>>
>>> Email: jstracha@redhat.com
>>> Web: http://fusesource.com
>>> Twitter: jstrachan, fusenews
>>> Blog: http://macstrac.blogspot.com/
>>>
>>> Open Source Integration
>>>
>>
>>
>>
>> --
>> James
>> -------
>> Red Hat
>>
>> Email: jstracha@redhat.com
>> Web: http://fusesource.com
>> Twitter: jstrachan, fusenews
>> Blog: http://macstrac.blogspot.com/
>>
>> Open Source Integration
>
> --
> Daniel Kulp
> dkulp@apache.org - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
Rob Davies
-----------------
Red Hat, Inc
Twitter: rajdavies
Blog: http://rajdavies.blogspot.com
ActiveMQ in Action: http://www.manning.com/snyder/
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Daniel Kulp <dk...@apache.org>.
On Nov 28, 2013, at 8:42 AM, James Strachan <ja...@gmail.com> wrote:
> Should we back out the use of graphviz too? Do you think generating images
> for camel routes should be -1'd too?
No. Graphviz is a graphics library. ALL the code for taking the camel routes and feeding the information into graphiz lives in camel and is under the Camel PMC control and direction. How the graph is presented to the user is under the Camel PMC direction. Thus, it’s “OK”.
In this case, all of the code for presenting the Camel UI is NOT in control of the Camel PMC. It’s not part of Camel. It’s completely under the control of an external party. That is NOT OK.
If HawtIO was just a console framework (or whatever you want to call it) and all of the “Camel” value-add was a plugin or was built upon that and that code was in Camel, I’d have “less” of a concern (certain branding and links and doc things would need to be resolved as well). Basically, if it was like Spring where Spring has a core and all the camel value add stuff to spring (namespace handlers, spring integration stuff, etc…) is part of Camel, then it would be OK.
So, in summary, if a user wants a nice graphics view of a Camel route, as far as the Camel project goes, there are three options:
1) Claim it’s not an issue and do nothing….. It’s not one of our “itches” for us to scratch.
2) Claim it is an issue, but outside the scope of our project and point people the third party applications page we have on the website for options that are available.
3) Expand the scope of Camel to include this, but in this case, it HAS to be controlled, managed, documented, branded, etc…. completely by the Camel PMC. How it’s presented to the user, etc… must be completely “Apache Camel”, not hawtio or what ever.
Take your pick.
Dan
> On 28 November 2013 13:41, James Strachan <ja...@gmail.com> wrote:
>
>> On 28 November 2013 13:32, Daniel Kulp <dk...@apache.org> wrote:
>>
>>>
>>> I’m -1 to this commit. I don’t think we should be adding a bunch of
>>> targets for all the various container/platform integrations.
>>
>>
>> If that were true I'd maybe -1 it too; but this commit looks to be about
>> making it easy for Camel users to visualise & debug Camel routes in a web
>> browser - from inside their existing maven camel project. i.e. its a camel
>> thing; just needs a web server to host some static HTML/CSS/JS (which is
>> purely an implementation detail).
>>
>> Though its nothing really to do with mimicking runtime platforms like
>> tomcat:run / karaf:run / jetty:run.
>>
>> --
>> James
>> -------
>> Red Hat
>>
>> Email: jstracha@redhat.com
>> Web: http://fusesource.com
>> Twitter: jstrachan, fusenews
>> Blog: http://macstrac.blogspot.com/
>>
>> Open Source Integration
>>
>
>
>
> --
> James
> -------
> Red Hat
>
> Email: jstracha@redhat.com
> Web: http://fusesource.com
> Twitter: jstrachan, fusenews
> Blog: http://macstrac.blogspot.com/
>
> Open Source Integration
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Hadrian Zbarcea <hz...@gmail.com>.
Actually, funny you should ask. The camel:dot goal (DotMojo.java) has
not been maintained for 5+ years, is not used and produces output of
very poor quality.
We agreed to remove the camel console from the camel distro and RedHat
intends, I assume, to promote the hawtio solution. Other parties may
promote their own. That should happen outside the Apache Camel project.
I think that was Dan's point, which I consider valid. Please feel free
to create a maven-hawtio-plugin with whatever goodies you deem useful.
Here's a -1 from me too [1]. And a +1 to removing the DotMojo. I will
start a separate thread proposing to remove it.
Hadrian
[1] http://www.apache.org/foundation/voting.html#Veto
On 11/28/2013 08:42 AM, James Strachan wrote:
> Should we back out the use of graphviz too? Do you think generating images
> for camel routes should be -1'd too?
>
>
> On 28 November 2013 13:41, James Strachan <ja...@gmail.com> wrote:
>
>> On 28 November 2013 13:32, Daniel Kulp <dk...@apache.org> wrote:
>>
>>>
>>> I’m -1 to this commit. I don’t think we should be adding a bunch of
>>> targets for all the various container/platform integrations.
>>
>>
>> If that were true I'd maybe -1 it too; but this commit looks to be about
>> making it easy for Camel users to visualise & debug Camel routes in a web
>> browser - from inside their existing maven camel project. i.e. its a camel
>> thing; just needs a web server to host some static HTML/CSS/JS (which is
>> purely an implementation detail).
>>
>> Though its nothing really to do with mimicking runtime platforms like
>> tomcat:run / karaf:run / jetty:run.
>>
>> --
>> James
>> -------
>> Red Hat
>>
>> Email: jstracha@redhat.com
>> Web: http://fusesource.com
>> Twitter: jstrachan, fusenews
>> Blog: http://macstrac.blogspot.com/
>>
>> Open Source Integration
>>
>
>
>
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by James Strachan <ja...@gmail.com>.
Should we back out the use of graphviz too? Do you think generating images
for camel routes should be -1'd too?
On 28 November 2013 13:41, James Strachan <ja...@gmail.com> wrote:
> On 28 November 2013 13:32, Daniel Kulp <dk...@apache.org> wrote:
>
>>
>> I’m -1 to this commit. I don’t think we should be adding a bunch of
>> targets for all the various container/platform integrations.
>
>
> If that were true I'd maybe -1 it too; but this commit looks to be about
> making it easy for Camel users to visualise & debug Camel routes in a web
> browser - from inside their existing maven camel project. i.e. its a camel
> thing; just needs a web server to host some static HTML/CSS/JS (which is
> purely an implementation detail).
>
> Though its nothing really to do with mimicking runtime platforms like
> tomcat:run / karaf:run / jetty:run.
>
> --
> James
> -------
> Red Hat
>
> Email: jstracha@redhat.com
> Web: http://fusesource.com
> Twitter: jstrachan, fusenews
> Blog: http://macstrac.blogspot.com/
>
> Open Source Integration
>
--
James
-------
Red Hat
Email: jstracha@redhat.com
Web: http://fusesource.com
Twitter: jstrachan, fusenews
Blog: http://macstrac.blogspot.com/
Open Source Integration
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by James Strachan <ja...@gmail.com>.
On 28 November 2013 13:32, Daniel Kulp <dk...@apache.org> wrote:
>
> I’m -1 to this commit. I don’t think we should be adding a bunch of
> targets for all the various container/platform integrations.
If that were true I'd maybe -1 it too; but this commit looks to be about
making it easy for Camel users to visualise & debug Camel routes in a web
browser - from inside their existing maven camel project. i.e. its a camel
thing; just needs a web server to host some static HTML/CSS/JS (which is
purely an implementation detail).
Though its nothing really to do with mimicking runtime platforms like
tomcat:run / karaf:run / jetty:run.
--
James
-------
Red Hat
Email: jstracha@redhat.com
Web: http://fusesource.com
Twitter: jstrachan, fusenews
Blog: http://macstrac.blogspot.com/
Open Source Integration
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by James Carman <ja...@carmanconsulting.com>.
Furthermore, let me add that I agree with Dan Kulp's assessment and
his reasons are not political. They are technical.
On Mon, Dec 2, 2013 at 11:23 AM, James Carman
<ja...@carmanconsulting.com> wrote:
> Agreed. I'm also -1 on this commit.
>
> On Thu, Nov 28, 2013 at 8:32 AM, Daniel Kulp <dk...@apache.org> wrote:
>>
>> I’m -1 to this commit. I don’t think we should be adding a bunch of targets for all the various container/platform integrations. This starts going down the road of adding targets for karaf, glassfish, etc… We should just provide standard packaging that the hawtio:run command or whatever would pick up. (like tomcat:run, jetty:run, etc…)
>>
>> Dan
>>
>>
>> On Nov 28, 2013, at 7:46 AM, davsclaus@apache.org wrote:
>>
>>> Updated Branches:
>>> refs/heads/camel-2.12.x 628b34c0d -> ae5a770e0
>>>
>>>
>>> CAMEL-7023: Added hawtio goal to camel maven plugin.
>>>
>>> Conflicts:
>>> parent/pom.xml
>>>
>>>
>>> Project: http://git-wip-us.apache.org/repos/asf/camel/repo
>>> Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ae5a770e
>>> Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ae5a770e
>>> Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ae5a770e
>>>
>>> Branch: refs/heads/camel-2.12.x
>>> Commit: ae5a770e01a1a2512412be97e62b18cb7578d640
>>> Parents: 628b34c
>>> Author: Claus Ibsen <da...@apache.org>
>>> Authored: Thu Nov 28 13:47:25 2013 +0100
>>> Committer: Claus Ibsen <da...@apache.org>
>>> Committed: Thu Nov 28 13:48:16 2013 +0100
>>>
>>> ----------------------------------------------------------------------
>>> parent/pom.xml | 1 +
>>> tooling/maven/camel-maven-plugin/pom.xml | 7 +++
>>> .../java/org/apache/camel/maven/HawtioMojo.java | 58 ++++++++++++++++++++
>>> .../java/org/apache/camel/maven/RunMojo.java | 21 +++++--
>>> 4 files changed, 83 insertions(+), 4 deletions(-)
>>> ----------------------------------------------------------------------
>>>
>>>
>>> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/parent/pom.xml
>>> ----------------------------------------------------------------------
>>> diff --git a/parent/pom.xml b/parent/pom.xml
>>> index 95f2a9e..d3229bc 100644
>>> --- a/parent/pom.xml
>>> +++ b/parent/pom.xml
>>> @@ -173,6 +173,7 @@
>>> <hawtbuf-version>1.9</hawtbuf-version>
>>> <hawtdb-version>1.6</hawtdb-version>
>>> <hawtdispatch-version>1.18</hawtdispatch-version>
>>> + <hawtio-version>1.2.0</hawtio-version>
>>> <hazelcast-version>2.6</hazelcast-version>
>>> <hbase-version>0.94.10</hbase-version>
>>> <hbase-bundle-version>0.94.6_1</hbase-bundle-version>
>>>
>>> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/pom.xml
>>> ----------------------------------------------------------------------
>>> diff --git a/tooling/maven/camel-maven-plugin/pom.xml b/tooling/maven/camel-maven-plugin/pom.xml
>>> index 160b8ab..940ab77 100644
>>> --- a/tooling/maven/camel-maven-plugin/pom.xml
>>> +++ b/tooling/maven/camel-maven-plugin/pom.xml
>>> @@ -53,6 +53,13 @@
>>> <artifactId>camel-cdi</artifactId>
>>> </dependency>
>>>
>>> + <!--for the hawtio goal -->
>>> + <dependency>
>>> + <groupId>io.hawt</groupId>
>>> + <artifactId>hawtio-app</artifactId>
>>> + <version>${hawtio-version}</version>
>>> + </dependency>
>>> +
>>> <dependency>
>>> <groupId>org.codehaus.mojo</groupId>
>>> <artifactId>exec-maven-plugin</artifactId>
>>>
>>> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
>>> ----------------------------------------------------------------------
>>> diff --git a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
>>> new file mode 100644
>>> index 0000000..1c8f697
>>> --- /dev/null
>>> +++ b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
>>> @@ -0,0 +1,58 @@
>>> +/**
>>> + * Licensed to the Apache Software Foundation (ASF) under one or more
>>> + * contributor license agreements. See the NOTICE file distributed with
>>> + * this work for additional information regarding copyright ownership.
>>> + * The ASF licenses this file to You under the Apache License, Version 2.0
>>> + * (the "License"); you may not use this file except in compliance with
>>> + * the License. You may obtain a copy of the License at
>>> + *
>>> + * http://www.apache.org/licenses/LICENSE-2.0
>>> + *
>>> + * Unless required by applicable law or agreed to in writing, software
>>> + * distributed under the License is distributed on an "AS IS" BASIS,
>>> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>>> + * See the License for the specific language governing permissions and
>>> + * limitations under the License.
>>> + */
>>> +package org.apache.camel.maven;
>>> +
>>> +import java.lang.reflect.Method;
>>> +
>>> +/**
>>> + * Runs a CamelContext using any Spring or Blueprint XML configuration files found in
>>> + * <code>META-INF/spring/*.xml</code>, and <code>OSGI-INF/blueprint/*.xml</code>,
>>> + * and <code>camel-*.xml</code> and starting up the context together with
>>> + * <a href="http://hawt.io/">hawtio</a> as web console.
>>> + *
>>> + * @goal hawtio
>>> + * @requiresDependencyResolution compile+runtime
>>> + * @execute phase="test-compile"
>>> + */
>>> +public class HawtioMojo extends RunMojo {
>>> +
>>> + /**
>>> + * The port number to use for the hawtio web console.
>>> + *
>>> + * @parameter property="camel.port"
>>> + * default-value="8080"
>>> + */
>>> + private int port = 8080;
>>> +
>>> + public HawtioMojo() {
>>> + extendedPluginDependencyArtifactId = "hawtio-app";
>>> + }
>>> +
>>> + @Override
>>> + void beforeBootstrapCamel() throws Exception {
>>> + getLog().info("Starting hawtio ...");
>>> + Method hawtioMain = Thread.currentThread().getContextClassLoader().loadClass("io.hawt.app.App")
>>> + .getMethod("main", new Class[] {String[].class});
>>> + if (!hawtioMain.isAccessible()) {
>>> + getLog().debug("Setting accessibility to true in order to invoke main().");
>>> + hawtioMain.setAccessible(true);
>>> + }
>>> + String[] args = new String[]{"--port", "" + port, "--join", "false"};
>>> + hawtioMain.invoke(hawtioMain, new Object[]{args});
>>> + }
>>> +
>>> +}
>>>
>>> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
>>> ----------------------------------------------------------------------
>>> diff --git a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
>>> index 6f3921d..510333b6 100644
>>> --- a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
>>> +++ b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
>>> @@ -369,6 +369,7 @@ public class RunMojo extends AbstractExecMojo {
>>> private Properties originalSystemProperties;
>>>
>>> private String extraPluginDependencyArtifactId;
>>> + protected String extendedPluginDependencyArtifactId;
>>>
>>> /**
>>> * Execute goal.
>>> @@ -455,7 +456,7 @@ public class RunMojo extends AbstractExecMojo {
>>> getLog().info("Using org.apache.camel.spring.Main to initiate a CamelContext");
>>> mainClass = "org.apache.camel.spring.Main";
>>> }
>>> -
>>> +
>>> arguments = new String[args.size()];
>>> args.toArray(arguments);
>>>
>>> @@ -474,9 +475,12 @@ public class RunMojo extends AbstractExecMojo {
>>> }
>>>
>>> IsolatedThreadGroup threadGroup = new IsolatedThreadGroup(mainClass /* name */);
>>> - Thread bootstrapThread = new Thread(threadGroup, new Runnable() {
>>> + final Thread bootstrapThread = new Thread(threadGroup, new Runnable() {
>>> public void run() {
>>> try {
>>> + beforeBootstrapCamel();
>>> +
>>> + getLog().info("Starting Camel ...");
>>> Method main = Thread.currentThread().getContextClassLoader().loadClass(mainClass)
>>> .getMethod("main", new Class[] {String[].class});
>>> if (!main.isAccessible()) {
>>> @@ -494,6 +498,7 @@ public class RunMojo extends AbstractExecMojo {
>>> }
>>> }
>>> }, mainClass + ".main()");
>>> +
>>> bootstrapThread.setContextClassLoader(getClassLoader());
>>> setSystemProperties();
>>>
>>> @@ -532,6 +537,13 @@ public class RunMojo extends AbstractExecMojo {
>>> registerSourceRoots();
>>> }
>>>
>>> + /**
>>> + * Allows plugin extensions to do custom logic before bootstrapping Camel.
>>> + */
>>> + void beforeBootstrapCamel() throws Exception {
>>> + // noop
>>> + }
>>> +
>>> class IsolatedThreadGroup extends ThreadGroup {
>>> Throwable uncaughtException; // synchronize access to this
>>>
>>> @@ -743,7 +755,7 @@ public class RunMojo extends AbstractExecMojo {
>>> * @throws MojoExecutionException
>>> */
>>> private void addExtraPluginDependenciesToClasspath(Set<URL> path) throws MojoExecutionException {
>>> - if (extraPluginDependencyArtifactId == null) {
>>> + if (extraPluginDependencyArtifactId == null && extendedPluginDependencyArtifactId == null) {
>>> return;
>>> }
>>>
>>> @@ -751,7 +763,8 @@ public class RunMojo extends AbstractExecMojo {
>>> Set<Artifact> artifacts = new HashSet<Artifact>(this.pluginDependencies);
>>> for (Artifact artifact : artifacts) {
>>> // must
>>> - if (artifact.getArtifactId().equals(extraPluginDependencyArtifactId)) {
>>> + if (artifact.getArtifactId().equals(extraPluginDependencyArtifactId)
>>> + || artifact.getArtifactId().equals(extendedPluginDependencyArtifactId)) {
>>> getLog().debug("Adding extra plugin dependency artifact: " + artifact.getArtifactId()
>>> + " to classpath");
>>> path.add(artifact.getFile().toURI().toURL());
>>>
>>
>> --
>> Daniel Kulp
>> dkulp@apache.org - http://dankulp.com/blog
>> Talend Community Coder - http://coders.talend.com
>>
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by James Carman <ja...@carmanconsulting.com>.
Agreed. I'm also -1 on this commit.
On Thu, Nov 28, 2013 at 8:32 AM, Daniel Kulp <dk...@apache.org> wrote:
>
> I’m -1 to this commit. I don’t think we should be adding a bunch of targets for all the various container/platform integrations. This starts going down the road of adding targets for karaf, glassfish, etc… We should just provide standard packaging that the hawtio:run command or whatever would pick up. (like tomcat:run, jetty:run, etc…)
>
> Dan
>
>
> On Nov 28, 2013, at 7:46 AM, davsclaus@apache.org wrote:
>
>> Updated Branches:
>> refs/heads/camel-2.12.x 628b34c0d -> ae5a770e0
>>
>>
>> CAMEL-7023: Added hawtio goal to camel maven plugin.
>>
>> Conflicts:
>> parent/pom.xml
>>
>>
>> Project: http://git-wip-us.apache.org/repos/asf/camel/repo
>> Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ae5a770e
>> Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ae5a770e
>> Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ae5a770e
>>
>> Branch: refs/heads/camel-2.12.x
>> Commit: ae5a770e01a1a2512412be97e62b18cb7578d640
>> Parents: 628b34c
>> Author: Claus Ibsen <da...@apache.org>
>> Authored: Thu Nov 28 13:47:25 2013 +0100
>> Committer: Claus Ibsen <da...@apache.org>
>> Committed: Thu Nov 28 13:48:16 2013 +0100
>>
>> ----------------------------------------------------------------------
>> parent/pom.xml | 1 +
>> tooling/maven/camel-maven-plugin/pom.xml | 7 +++
>> .../java/org/apache/camel/maven/HawtioMojo.java | 58 ++++++++++++++++++++
>> .../java/org/apache/camel/maven/RunMojo.java | 21 +++++--
>> 4 files changed, 83 insertions(+), 4 deletions(-)
>> ----------------------------------------------------------------------
>>
>>
>> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/parent/pom.xml
>> ----------------------------------------------------------------------
>> diff --git a/parent/pom.xml b/parent/pom.xml
>> index 95f2a9e..d3229bc 100644
>> --- a/parent/pom.xml
>> +++ b/parent/pom.xml
>> @@ -173,6 +173,7 @@
>> <hawtbuf-version>1.9</hawtbuf-version>
>> <hawtdb-version>1.6</hawtdb-version>
>> <hawtdispatch-version>1.18</hawtdispatch-version>
>> + <hawtio-version>1.2.0</hawtio-version>
>> <hazelcast-version>2.6</hazelcast-version>
>> <hbase-version>0.94.10</hbase-version>
>> <hbase-bundle-version>0.94.6_1</hbase-bundle-version>
>>
>> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/pom.xml
>> ----------------------------------------------------------------------
>> diff --git a/tooling/maven/camel-maven-plugin/pom.xml b/tooling/maven/camel-maven-plugin/pom.xml
>> index 160b8ab..940ab77 100644
>> --- a/tooling/maven/camel-maven-plugin/pom.xml
>> +++ b/tooling/maven/camel-maven-plugin/pom.xml
>> @@ -53,6 +53,13 @@
>> <artifactId>camel-cdi</artifactId>
>> </dependency>
>>
>> + <!--for the hawtio goal -->
>> + <dependency>
>> + <groupId>io.hawt</groupId>
>> + <artifactId>hawtio-app</artifactId>
>> + <version>${hawtio-version}</version>
>> + </dependency>
>> +
>> <dependency>
>> <groupId>org.codehaus.mojo</groupId>
>> <artifactId>exec-maven-plugin</artifactId>
>>
>> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
>> ----------------------------------------------------------------------
>> diff --git a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
>> new file mode 100644
>> index 0000000..1c8f697
>> --- /dev/null
>> +++ b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
>> @@ -0,0 +1,58 @@
>> +/**
>> + * Licensed to the Apache Software Foundation (ASF) under one or more
>> + * contributor license agreements. See the NOTICE file distributed with
>> + * this work for additional information regarding copyright ownership.
>> + * The ASF licenses this file to You under the Apache License, Version 2.0
>> + * (the "License"); you may not use this file except in compliance with
>> + * the License. You may obtain a copy of the License at
>> + *
>> + * http://www.apache.org/licenses/LICENSE-2.0
>> + *
>> + * Unless required by applicable law or agreed to in writing, software
>> + * distributed under the License is distributed on an "AS IS" BASIS,
>> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>> + * See the License for the specific language governing permissions and
>> + * limitations under the License.
>> + */
>> +package org.apache.camel.maven;
>> +
>> +import java.lang.reflect.Method;
>> +
>> +/**
>> + * Runs a CamelContext using any Spring or Blueprint XML configuration files found in
>> + * <code>META-INF/spring/*.xml</code>, and <code>OSGI-INF/blueprint/*.xml</code>,
>> + * and <code>camel-*.xml</code> and starting up the context together with
>> + * <a href="http://hawt.io/">hawtio</a> as web console.
>> + *
>> + * @goal hawtio
>> + * @requiresDependencyResolution compile+runtime
>> + * @execute phase="test-compile"
>> + */
>> +public class HawtioMojo extends RunMojo {
>> +
>> + /**
>> + * The port number to use for the hawtio web console.
>> + *
>> + * @parameter property="camel.port"
>> + * default-value="8080"
>> + */
>> + private int port = 8080;
>> +
>> + public HawtioMojo() {
>> + extendedPluginDependencyArtifactId = "hawtio-app";
>> + }
>> +
>> + @Override
>> + void beforeBootstrapCamel() throws Exception {
>> + getLog().info("Starting hawtio ...");
>> + Method hawtioMain = Thread.currentThread().getContextClassLoader().loadClass("io.hawt.app.App")
>> + .getMethod("main", new Class[] {String[].class});
>> + if (!hawtioMain.isAccessible()) {
>> + getLog().debug("Setting accessibility to true in order to invoke main().");
>> + hawtioMain.setAccessible(true);
>> + }
>> + String[] args = new String[]{"--port", "" + port, "--join", "false"};
>> + hawtioMain.invoke(hawtioMain, new Object[]{args});
>> + }
>> +
>> +}
>>
>> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
>> ----------------------------------------------------------------------
>> diff --git a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
>> index 6f3921d..510333b6 100644
>> --- a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
>> +++ b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
>> @@ -369,6 +369,7 @@ public class RunMojo extends AbstractExecMojo {
>> private Properties originalSystemProperties;
>>
>> private String extraPluginDependencyArtifactId;
>> + protected String extendedPluginDependencyArtifactId;
>>
>> /**
>> * Execute goal.
>> @@ -455,7 +456,7 @@ public class RunMojo extends AbstractExecMojo {
>> getLog().info("Using org.apache.camel.spring.Main to initiate a CamelContext");
>> mainClass = "org.apache.camel.spring.Main";
>> }
>> -
>> +
>> arguments = new String[args.size()];
>> args.toArray(arguments);
>>
>> @@ -474,9 +475,12 @@ public class RunMojo extends AbstractExecMojo {
>> }
>>
>> IsolatedThreadGroup threadGroup = new IsolatedThreadGroup(mainClass /* name */);
>> - Thread bootstrapThread = new Thread(threadGroup, new Runnable() {
>> + final Thread bootstrapThread = new Thread(threadGroup, new Runnable() {
>> public void run() {
>> try {
>> + beforeBootstrapCamel();
>> +
>> + getLog().info("Starting Camel ...");
>> Method main = Thread.currentThread().getContextClassLoader().loadClass(mainClass)
>> .getMethod("main", new Class[] {String[].class});
>> if (!main.isAccessible()) {
>> @@ -494,6 +498,7 @@ public class RunMojo extends AbstractExecMojo {
>> }
>> }
>> }, mainClass + ".main()");
>> +
>> bootstrapThread.setContextClassLoader(getClassLoader());
>> setSystemProperties();
>>
>> @@ -532,6 +537,13 @@ public class RunMojo extends AbstractExecMojo {
>> registerSourceRoots();
>> }
>>
>> + /**
>> + * Allows plugin extensions to do custom logic before bootstrapping Camel.
>> + */
>> + void beforeBootstrapCamel() throws Exception {
>> + // noop
>> + }
>> +
>> class IsolatedThreadGroup extends ThreadGroup {
>> Throwable uncaughtException; // synchronize access to this
>>
>> @@ -743,7 +755,7 @@ public class RunMojo extends AbstractExecMojo {
>> * @throws MojoExecutionException
>> */
>> private void addExtraPluginDependenciesToClasspath(Set<URL> path) throws MojoExecutionException {
>> - if (extraPluginDependencyArtifactId == null) {
>> + if (extraPluginDependencyArtifactId == null && extendedPluginDependencyArtifactId == null) {
>> return;
>> }
>>
>> @@ -751,7 +763,8 @@ public class RunMojo extends AbstractExecMojo {
>> Set<Artifact> artifacts = new HashSet<Artifact>(this.pluginDependencies);
>> for (Artifact artifact : artifacts) {
>> // must
>> - if (artifact.getArtifactId().equals(extraPluginDependencyArtifactId)) {
>> + if (artifact.getArtifactId().equals(extraPluginDependencyArtifactId)
>> + || artifact.getArtifactId().equals(extendedPluginDependencyArtifactId)) {
>> getLog().debug("Adding extra plugin dependency artifact: " + artifact.getArtifactId()
>> + " to classpath");
>> path.add(artifact.getFile().toURI().toURL());
>>
>
> --
> Daniel Kulp
> dkulp@apache.org - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
>
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Babak Vahdat <ba...@swissonline.ch>.
Hi Christian,
Back from a trip on my way to home at the airport, I've just carefully read your attitude about this thread.
Thanks for sharing your clear statement!
Babak
> Am 15.12.2013 um 20:04 schrieb Christian Müller <ch...@gmail.com>:
>
> To complete this thread, Claus reverted this commit on December 3rd. We are
> fine here so far.
>
> Some people asked me privately about my opinion, and because we are in
> Apache, I will share them here:
> If Apache Camel is
> - shipped/integrated with an official Apache Camel console or
> - shipped/integrated with an external developed console which is
> transparent for the user - e.g. via a seamless integration with an official
> Apache Camel Maven goal (or Ant task, ...)
> the content of the console MUST be under the control of this project.
> This is required to prevent a community/vendor "lock in". Otherwise this
> community/vendor COULD use this exclusivity to forward/link/advertise from
> the console to only this community/vendor to the detriment of the Apache
> Camel project and other offerings.
> This is different to "just use a third party framework with an Apache
> friendly license" to do x, y, z, ...
>
> This should be also the case for Apache ActiveMQ, Apache Karaf, Apache
> ServiceMix, ...
>
> Best,
> Christian
> -----------------
>
> Software Integration Specialist
>
> Apache Member
> V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
> Apache Incubator PMC Member
>
> https://www.linkedin.com/pub/christian-mueller/11/551/642
>
>
>> On Tue, Dec 3, 2013 at 4:43 PM, Daniel Kulp <dk...@apache.org> wrote:
>>
>>
>> This “discussion” seems to have died down. There are 4 PMC members that
>> support the veto with 3 specifically stating technical (and not political
>> or social) grounds. Thus, this must be reverted until all of the
>> technical issues are resolved. Claus: is that something you’ll have time
>> to do shortly?
>>
>> Dan
>>
>>
>>> On Nov 28, 2013, at 8:32 AM, Daniel Kulp <dk...@apache.org> wrote:
>>>
>>>
>>> I’m -1 to this commit. I don’t think we should be adding a bunch of
>> targets for all the various container/platform integrations. This starts
>> going down the road of adding targets for karaf, glassfish, etc… We should
>> just provide standard packaging that the hawtio:run command or whatever
>> would pick up. (like tomcat:run, jetty:run, etc…)
>>>
>>> Dan
>>>
>>>
>>>> On Nov 28, 2013, at 7:46 AM, davsclaus@apache.org wrote:
>>>>
>>>> Updated Branches:
>>>> refs/heads/camel-2.12.x 628b34c0d -> ae5a770e0
>>>>
>>>>
>>>> CAMEL-7023: Added hawtio goal to camel maven plugin.
>>>>
>>>> Conflicts:
>>>> parent/pom.xml
>>>>
>>>>
>>>> Project: http://git-wip-us.apache.org/repos/asf/camel/repo
>>>> Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ae5a770e
>>>> Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ae5a770e
>>>> Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ae5a770e
>>>>
>>>> Branch: refs/heads/camel-2.12.x
>>>> Commit: ae5a770e01a1a2512412be97e62b18cb7578d640
>>>> Parents: 628b34c
>>>> Author: Claus Ibsen <da...@apache.org>
>>>> Authored: Thu Nov 28 13:47:25 2013 +0100
>>>> Committer: Claus Ibsen <da...@apache.org>
>>>> Committed: Thu Nov 28 13:48:16 2013 +0100
>>>>
>>>> ----------------------------------------------------------------------
>>>> parent/pom.xml | 1 +
>>>> tooling/maven/camel-maven-plugin/pom.xml | 7 +++
>>>> .../java/org/apache/camel/maven/HawtioMojo.java | 58
>> ++++++++++++++++++++
>>>> .../java/org/apache/camel/maven/RunMojo.java | 21 +++++--
>>>> 4 files changed, 83 insertions(+), 4 deletions(-)
>>>> ----------------------------------------------------------------------
>> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/parent/pom.xml
>>>> ----------------------------------------------------------------------
>>>> diff --git a/parent/pom.xml b/parent/pom.xml
>>>> index 95f2a9e..d3229bc 100644
>>>> --- a/parent/pom.xml
>>>> +++ b/parent/pom.xml
>>>> @@ -173,6 +173,7 @@
>>>> <hawtbuf-version>1.9</hawtbuf-version>
>>>> <hawtdb-version>1.6</hawtdb-version>
>>>> <hawtdispatch-version>1.18</hawtdispatch-version>
>>>> + <hawtio-version>1.2.0</hawtio-version>
>>>> <hazelcast-version>2.6</hazelcast-version>
>>>> <hbase-version>0.94.10</hbase-version>
>>>> <hbase-bundle-version>0.94.6_1</hbase-bundle-version>
>> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/pom.xml
>>>> ----------------------------------------------------------------------
>>>> diff --git a/tooling/maven/camel-maven-plugin/pom.xml
>> b/tooling/maven/camel-maven-plugin/pom.xml
>>>> index 160b8ab..940ab77 100644
>>>> --- a/tooling/maven/camel-maven-plugin/pom.xml
>>>> +++ b/tooling/maven/camel-maven-plugin/pom.xml
>>>> @@ -53,6 +53,13 @@
>>>> <artifactId>camel-cdi</artifactId>
>>>> </dependency>
>>>>
>>>> + <!--for the hawtio goal -->
>>>> + <dependency>
>>>> + <groupId>io.hawt</groupId>
>>>> + <artifactId>hawtio-app</artifactId>
>>>> + <version>${hawtio-version}</version>
>>>> + </dependency>
>>>> +
>>>> <dependency>
>>>> <groupId>org.codehaus.mojo</groupId>
>>>> <artifactId>exec-maven-plugin</artifactId>
>> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
>>>> ----------------------------------------------------------------------
>>>> diff --git
>> a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
>> b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
>>>> new file mode 100644
>>>> index 0000000..1c8f697
>>>> --- /dev/null
>>>> +++
>> b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
>>>> @@ -0,0 +1,58 @@
>>>> +/**
>>>> + * Licensed to the Apache Software Foundation (ASF) under one or more
>>>> + * contributor license agreements. See the NOTICE file distributed
>> with
>>>> + * this work for additional information regarding copyright ownership.
>>>> + * The ASF licenses this file to You under the Apache License, Version
>> 2.0
>>>> + * (the "License"); you may not use this file except in compliance with
>>>> + * the License. You may obtain a copy of the License at
>>>> + *
>>>> + * http://www.apache.org/licenses/LICENSE-2.0
>>>> + *
>>>> + * Unless required by applicable law or agreed to in writing, software
>>>> + * distributed under the License is distributed on an "AS IS" BASIS,
>>>> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>> implied.
>>>> + * See the License for the specific language governing permissions and
>>>> + * limitations under the License.
>>>> + */
>>>> +package org.apache.camel.maven;
>>>> +
>>>> +import java.lang.reflect.Method;
>>>> +
>>>> +/**
>>>> + * Runs a CamelContext using any Spring or Blueprint XML configuration
>> files found in
>>>> + * <code>META-INF/spring/*.xml</code>, and
>> <code>OSGI-INF/blueprint/*.xml</code>,
>>>> + * and <code>camel-*.xml</code> and starting up the context together
>> with
>>>> + * <a href="http://hawt.io/">hawtio</a> as web console.
>>>> + *
>>>> + * @goal hawtio
>>>> + * @requiresDependencyResolution compile+runtime
>>>> + * @execute phase="test-compile"
>>>> + */
>>>> +public class HawtioMojo extends RunMojo {
>>>> +
>>>> + /**
>>>> + * The port number to use for the hawtio web console.
>>>> + *
>>>> + * @parameter property="camel.port"
>>>> + * default-value="8080"
>>>> + */
>>>> + private int port = 8080;
>>>> +
>>>> + public HawtioMojo() {
>>>> + extendedPluginDependencyArtifactId = "hawtio-app";
>>>> + }
>>>> +
>>>> + @Override
>>>> + void beforeBootstrapCamel() throws Exception {
>>>> + getLog().info("Starting hawtio ...");
>>>> + Method hawtioMain =
>> Thread.currentThread().getContextClassLoader().loadClass("io.hawt.app.App")
>>>> + .getMethod("main", new Class[] {String[].class});
>>>> + if (!hawtioMain.isAccessible()) {
>>>> + getLog().debug("Setting accessibility to true in order to
>> invoke main().");
>>>> + hawtioMain.setAccessible(true);
>>>> + }
>>>> + String[] args = new String[]{"--port", "" + port, "--join",
>> "false"};
>>>> + hawtioMain.invoke(hawtioMain, new Object[]{args});
>>>> + }
>>>> +
>>>> +}
>> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
>>>> ----------------------------------------------------------------------
>>>> diff --git
>> a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
>> b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
>>>> index 6f3921d..510333b6 100644
>>>> ---
>> a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
>>>> +++
>> b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
>>>> @@ -369,6 +369,7 @@ public class RunMojo extends AbstractExecMojo {
>>>> private Properties originalSystemProperties;
>>>>
>>>> private String extraPluginDependencyArtifactId;
>>>> + protected String extendedPluginDependencyArtifactId;
>>>>
>>>> /**
>>>> * Execute goal.
>>>> @@ -455,7 +456,7 @@ public class RunMojo extends AbstractExecMojo {
>>>> getLog().info("Using org.apache.camel.spring.Main to
>> initiate a CamelContext");
>>>> mainClass = "org.apache.camel.spring.Main";
>>>> }
>>>> -
>>>> +
>>>> arguments = new String[args.size()];
>>>> args.toArray(arguments);
>>>>
>>>> @@ -474,9 +475,12 @@ public class RunMojo extends AbstractExecMojo {
>>>> }
>>>>
>>>> IsolatedThreadGroup threadGroup = new
>> IsolatedThreadGroup(mainClass /* name */);
>>>> - Thread bootstrapThread = new Thread(threadGroup, new
>> Runnable() {
>>>> + final Thread bootstrapThread = new Thread(threadGroup, new
>> Runnable() {
>>>> public void run() {
>>>> try {
>>>> + beforeBootstrapCamel();
>>>> +
>>>> + getLog().info("Starting Camel ...");
>>>> Method main =
>> Thread.currentThread().getContextClassLoader().loadClass(mainClass)
>>>> .getMethod("main", new Class[] {String[].class});
>>>> if (!main.isAccessible()) {
>>>> @@ -494,6 +498,7 @@ public class RunMojo extends AbstractExecMojo {
>>>> }
>>>> }
>>>> }, mainClass + ".main()");
>>>> +
>>>> bootstrapThread.setContextClassLoader(getClassLoader());
>>>> setSystemProperties();
>>>>
>>>> @@ -532,6 +537,13 @@ public class RunMojo extends AbstractExecMojo {
>>>> registerSourceRoots();
>>>> }
>>>>
>>>> + /**
>>>> + * Allows plugin extensions to do custom logic before
>> bootstrapping Camel.
>>>> + */
>>>> + void beforeBootstrapCamel() throws Exception {
>>>> + // noop
>>>> + }
>>>> +
>>>> class IsolatedThreadGroup extends ThreadGroup {
>>>> Throwable uncaughtException; // synchronize access to this
>>>>
>>>> @@ -743,7 +755,7 @@ public class RunMojo extends AbstractExecMojo {
>>>> * @throws MojoExecutionException
>>>> */
>>>> private void addExtraPluginDependenciesToClasspath(Set<URL> path)
>> throws MojoExecutionException {
>>>> - if (extraPluginDependencyArtifactId == null) {
>>>> + if (extraPluginDependencyArtifactId == null &&
>> extendedPluginDependencyArtifactId == null) {
>>>> return;
>>>> }
>>>>
>>>> @@ -751,7 +763,8 @@ public class RunMojo extends AbstractExecMojo {
>>>> Set<Artifact> artifacts = new
>> HashSet<Artifact>(this.pluginDependencies);
>>>> for (Artifact artifact : artifacts) {
>>>> // must
>>>> - if
>> (artifact.getArtifactId().equals(extraPluginDependencyArtifactId)) {
>>>> + if
>> (artifact.getArtifactId().equals(extraPluginDependencyArtifactId)
>>>> + ||
>> artifact.getArtifactId().equals(extendedPluginDependencyArtifactId)) {
>>>> getLog().debug("Adding extra plugin dependency
>> artifact: " + artifact.getArtifactId()
>>>> + " to classpath");
>>>> path.add(artifact.getFile().toURI().toURL());
>>>
>>> --
>>> Daniel Kulp
>>> dkulp@apache.org - http://dankulp.com/blog
>>> Talend Community Coder - http://coders.talend.com
>>
>> --
>> Daniel Kulp
>> dkulp@apache.org - http://dankulp.com/blog
>> Talend Community Coder - http://coders.talend.com
>>
>>
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Christian Müller <ch...@gmail.com>.
To complete this thread, Claus reverted this commit on December 3rd. We are
fine here so far.
Some people asked me privately about my opinion, and because we are in
Apache, I will share them here:
If Apache Camel is
- shipped/integrated with an official Apache Camel console or
- shipped/integrated with an external developed console which is
transparent for the user - e.g. via a seamless integration with an official
Apache Camel Maven goal (or Ant task, ...)
the content of the console MUST be under the control of this project.
This is required to prevent a community/vendor "lock in". Otherwise this
community/vendor COULD use this exclusivity to forward/link/advertise from
the console to only this community/vendor to the detriment of the Apache
Camel project and other offerings.
This is different to "just use a third party framework with an Apache
friendly license" to do x, y, z, ...
This should be also the case for Apache ActiveMQ, Apache Karaf, Apache
ServiceMix, ...
Best,
Christian
-----------------
Software Integration Specialist
Apache Member
V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
Apache Incubator PMC Member
https://www.linkedin.com/pub/christian-mueller/11/551/642
On Tue, Dec 3, 2013 at 4:43 PM, Daniel Kulp <dk...@apache.org> wrote:
>
> This “discussion” seems to have died down. There are 4 PMC members that
> support the veto with 3 specifically stating technical (and not political
> or social) grounds. Thus, this must be reverted until all of the
> technical issues are resolved. Claus: is that something you’ll have time
> to do shortly?
>
> Dan
>
>
> On Nov 28, 2013, at 8:32 AM, Daniel Kulp <dk...@apache.org> wrote:
>
> >
> > I’m -1 to this commit. I don’t think we should be adding a bunch of
> targets for all the various container/platform integrations. This starts
> going down the road of adding targets for karaf, glassfish, etc… We should
> just provide standard packaging that the hawtio:run command or whatever
> would pick up. (like tomcat:run, jetty:run, etc…)
> >
> > Dan
> >
> >
> > On Nov 28, 2013, at 7:46 AM, davsclaus@apache.org wrote:
> >
> >> Updated Branches:
> >> refs/heads/camel-2.12.x 628b34c0d -> ae5a770e0
> >>
> >>
> >> CAMEL-7023: Added hawtio goal to camel maven plugin.
> >>
> >> Conflicts:
> >> parent/pom.xml
> >>
> >>
> >> Project: http://git-wip-us.apache.org/repos/asf/camel/repo
> >> Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ae5a770e
> >> Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ae5a770e
> >> Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ae5a770e
> >>
> >> Branch: refs/heads/camel-2.12.x
> >> Commit: ae5a770e01a1a2512412be97e62b18cb7578d640
> >> Parents: 628b34c
> >> Author: Claus Ibsen <da...@apache.org>
> >> Authored: Thu Nov 28 13:47:25 2013 +0100
> >> Committer: Claus Ibsen <da...@apache.org>
> >> Committed: Thu Nov 28 13:48:16 2013 +0100
> >>
> >> ----------------------------------------------------------------------
> >> parent/pom.xml | 1 +
> >> tooling/maven/camel-maven-plugin/pom.xml | 7 +++
> >> .../java/org/apache/camel/maven/HawtioMojo.java | 58
> ++++++++++++++++++++
> >> .../java/org/apache/camel/maven/RunMojo.java | 21 +++++--
> >> 4 files changed, 83 insertions(+), 4 deletions(-)
> >> ----------------------------------------------------------------------
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/parent/pom.xml
> >> ----------------------------------------------------------------------
> >> diff --git a/parent/pom.xml b/parent/pom.xml
> >> index 95f2a9e..d3229bc 100644
> >> --- a/parent/pom.xml
> >> +++ b/parent/pom.xml
> >> @@ -173,6 +173,7 @@
> >> <hawtbuf-version>1.9</hawtbuf-version>
> >> <hawtdb-version>1.6</hawtdb-version>
> >> <hawtdispatch-version>1.18</hawtdispatch-version>
> >> + <hawtio-version>1.2.0</hawtio-version>
> >> <hazelcast-version>2.6</hazelcast-version>
> >> <hbase-version>0.94.10</hbase-version>
> >> <hbase-bundle-version>0.94.6_1</hbase-bundle-version>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/pom.xml
> >> ----------------------------------------------------------------------
> >> diff --git a/tooling/maven/camel-maven-plugin/pom.xml
> b/tooling/maven/camel-maven-plugin/pom.xml
> >> index 160b8ab..940ab77 100644
> >> --- a/tooling/maven/camel-maven-plugin/pom.xml
> >> +++ b/tooling/maven/camel-maven-plugin/pom.xml
> >> @@ -53,6 +53,13 @@
> >> <artifactId>camel-cdi</artifactId>
> >> </dependency>
> >>
> >> + <!--for the hawtio goal -->
> >> + <dependency>
> >> + <groupId>io.hawt</groupId>
> >> + <artifactId>hawtio-app</artifactId>
> >> + <version>${hawtio-version}</version>
> >> + </dependency>
> >> +
> >> <dependency>
> >> <groupId>org.codehaus.mojo</groupId>
> >> <artifactId>exec-maven-plugin</artifactId>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
> >> ----------------------------------------------------------------------
> >> diff --git
> a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
> b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
> >> new file mode 100644
> >> index 0000000..1c8f697
> >> --- /dev/null
> >> +++
> b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
> >> @@ -0,0 +1,58 @@
> >> +/**
> >> + * Licensed to the Apache Software Foundation (ASF) under one or more
> >> + * contributor license agreements. See the NOTICE file distributed
> with
> >> + * this work for additional information regarding copyright ownership.
> >> + * The ASF licenses this file to You under the Apache License, Version
> 2.0
> >> + * (the "License"); you may not use this file except in compliance with
> >> + * the License. You may obtain a copy of the License at
> >> + *
> >> + * http://www.apache.org/licenses/LICENSE-2.0
> >> + *
> >> + * Unless required by applicable law or agreed to in writing, software
> >> + * distributed under the License is distributed on an "AS IS" BASIS,
> >> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> >> + * See the License for the specific language governing permissions and
> >> + * limitations under the License.
> >> + */
> >> +package org.apache.camel.maven;
> >> +
> >> +import java.lang.reflect.Method;
> >> +
> >> +/**
> >> + * Runs a CamelContext using any Spring or Blueprint XML configuration
> files found in
> >> + * <code>META-INF/spring/*.xml</code>, and
> <code>OSGI-INF/blueprint/*.xml</code>,
> >> + * and <code>camel-*.xml</code> and starting up the context together
> with
> >> + * <a href="http://hawt.io/">hawtio</a> as web console.
> >> + *
> >> + * @goal hawtio
> >> + * @requiresDependencyResolution compile+runtime
> >> + * @execute phase="test-compile"
> >> + */
> >> +public class HawtioMojo extends RunMojo {
> >> +
> >> + /**
> >> + * The port number to use for the hawtio web console.
> >> + *
> >> + * @parameter property="camel.port"
> >> + * default-value="8080"
> >> + */
> >> + private int port = 8080;
> >> +
> >> + public HawtioMojo() {
> >> + extendedPluginDependencyArtifactId = "hawtio-app";
> >> + }
> >> +
> >> + @Override
> >> + void beforeBootstrapCamel() throws Exception {
> >> + getLog().info("Starting hawtio ...");
> >> + Method hawtioMain =
> Thread.currentThread().getContextClassLoader().loadClass("io.hawt.app.App")
> >> + .getMethod("main", new Class[] {String[].class});
> >> + if (!hawtioMain.isAccessible()) {
> >> + getLog().debug("Setting accessibility to true in order to
> invoke main().");
> >> + hawtioMain.setAccessible(true);
> >> + }
> >> + String[] args = new String[]{"--port", "" + port, "--join",
> "false"};
> >> + hawtioMain.invoke(hawtioMain, new Object[]{args});
> >> + }
> >> +
> >> +}
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
> >> ----------------------------------------------------------------------
> >> diff --git
> a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
> b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
> >> index 6f3921d..510333b6 100644
> >> ---
> a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
> >> +++
> b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
> >> @@ -369,6 +369,7 @@ public class RunMojo extends AbstractExecMojo {
> >> private Properties originalSystemProperties;
> >>
> >> private String extraPluginDependencyArtifactId;
> >> + protected String extendedPluginDependencyArtifactId;
> >>
> >> /**
> >> * Execute goal.
> >> @@ -455,7 +456,7 @@ public class RunMojo extends AbstractExecMojo {
> >> getLog().info("Using org.apache.camel.spring.Main to
> initiate a CamelContext");
> >> mainClass = "org.apache.camel.spring.Main";
> >> }
> >> -
> >> +
> >> arguments = new String[args.size()];
> >> args.toArray(arguments);
> >>
> >> @@ -474,9 +475,12 @@ public class RunMojo extends AbstractExecMojo {
> >> }
> >>
> >> IsolatedThreadGroup threadGroup = new
> IsolatedThreadGroup(mainClass /* name */);
> >> - Thread bootstrapThread = new Thread(threadGroup, new
> Runnable() {
> >> + final Thread bootstrapThread = new Thread(threadGroup, new
> Runnable() {
> >> public void run() {
> >> try {
> >> + beforeBootstrapCamel();
> >> +
> >> + getLog().info("Starting Camel ...");
> >> Method main =
> Thread.currentThread().getContextClassLoader().loadClass(mainClass)
> >> .getMethod("main", new Class[] {String[].class});
> >> if (!main.isAccessible()) {
> >> @@ -494,6 +498,7 @@ public class RunMojo extends AbstractExecMojo {
> >> }
> >> }
> >> }, mainClass + ".main()");
> >> +
> >> bootstrapThread.setContextClassLoader(getClassLoader());
> >> setSystemProperties();
> >>
> >> @@ -532,6 +537,13 @@ public class RunMojo extends AbstractExecMojo {
> >> registerSourceRoots();
> >> }
> >>
> >> + /**
> >> + * Allows plugin extensions to do custom logic before
> bootstrapping Camel.
> >> + */
> >> + void beforeBootstrapCamel() throws Exception {
> >> + // noop
> >> + }
> >> +
> >> class IsolatedThreadGroup extends ThreadGroup {
> >> Throwable uncaughtException; // synchronize access to this
> >>
> >> @@ -743,7 +755,7 @@ public class RunMojo extends AbstractExecMojo {
> >> * @throws MojoExecutionException
> >> */
> >> private void addExtraPluginDependenciesToClasspath(Set<URL> path)
> throws MojoExecutionException {
> >> - if (extraPluginDependencyArtifactId == null) {
> >> + if (extraPluginDependencyArtifactId == null &&
> extendedPluginDependencyArtifactId == null) {
> >> return;
> >> }
> >>
> >> @@ -751,7 +763,8 @@ public class RunMojo extends AbstractExecMojo {
> >> Set<Artifact> artifacts = new
> HashSet<Artifact>(this.pluginDependencies);
> >> for (Artifact artifact : artifacts) {
> >> // must
> >> - if
> (artifact.getArtifactId().equals(extraPluginDependencyArtifactId)) {
> >> + if
> (artifact.getArtifactId().equals(extraPluginDependencyArtifactId)
> >> + ||
> artifact.getArtifactId().equals(extendedPluginDependencyArtifactId)) {
> >> getLog().debug("Adding extra plugin dependency
> artifact: " + artifact.getArtifactId()
> >> + " to classpath");
> >> path.add(artifact.getFile().toURI().toURL());
> >>
> >
> > --
> > Daniel Kulp
> > dkulp@apache.org - http://dankulp.com/blog
> > Talend Community Coder - http://coders.talend.com
> >
>
> --
> Daniel Kulp
> dkulp@apache.org - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
>
>
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Daniel Kulp <dk...@apache.org>.
This “discussion” seems to have died down. There are 4 PMC members that support the veto with 3 specifically stating technical (and not political or social) grounds. Thus, this must be reverted until all of the technical issues are resolved. Claus: is that something you’ll have time to do shortly?
Dan
On Nov 28, 2013, at 8:32 AM, Daniel Kulp <dk...@apache.org> wrote:
>
> I’m -1 to this commit. I don’t think we should be adding a bunch of targets for all the various container/platform integrations. This starts going down the road of adding targets for karaf, glassfish, etc… We should just provide standard packaging that the hawtio:run command or whatever would pick up. (like tomcat:run, jetty:run, etc…)
>
> Dan
>
>
> On Nov 28, 2013, at 7:46 AM, davsclaus@apache.org wrote:
>
>> Updated Branches:
>> refs/heads/camel-2.12.x 628b34c0d -> ae5a770e0
>>
>>
>> CAMEL-7023: Added hawtio goal to camel maven plugin.
>>
>> Conflicts:
>> parent/pom.xml
>>
>>
>> Project: http://git-wip-us.apache.org/repos/asf/camel/repo
>> Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ae5a770e
>> Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ae5a770e
>> Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ae5a770e
>>
>> Branch: refs/heads/camel-2.12.x
>> Commit: ae5a770e01a1a2512412be97e62b18cb7578d640
>> Parents: 628b34c
>> Author: Claus Ibsen <da...@apache.org>
>> Authored: Thu Nov 28 13:47:25 2013 +0100
>> Committer: Claus Ibsen <da...@apache.org>
>> Committed: Thu Nov 28 13:48:16 2013 +0100
>>
>> ----------------------------------------------------------------------
>> parent/pom.xml | 1 +
>> tooling/maven/camel-maven-plugin/pom.xml | 7 +++
>> .../java/org/apache/camel/maven/HawtioMojo.java | 58 ++++++++++++++++++++
>> .../java/org/apache/camel/maven/RunMojo.java | 21 +++++--
>> 4 files changed, 83 insertions(+), 4 deletions(-)
>> ----------------------------------------------------------------------
>>
>>
>> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/parent/pom.xml
>> ----------------------------------------------------------------------
>> diff --git a/parent/pom.xml b/parent/pom.xml
>> index 95f2a9e..d3229bc 100644
>> --- a/parent/pom.xml
>> +++ b/parent/pom.xml
>> @@ -173,6 +173,7 @@
>> <hawtbuf-version>1.9</hawtbuf-version>
>> <hawtdb-version>1.6</hawtdb-version>
>> <hawtdispatch-version>1.18</hawtdispatch-version>
>> + <hawtio-version>1.2.0</hawtio-version>
>> <hazelcast-version>2.6</hazelcast-version>
>> <hbase-version>0.94.10</hbase-version>
>> <hbase-bundle-version>0.94.6_1</hbase-bundle-version>
>>
>> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/pom.xml
>> ----------------------------------------------------------------------
>> diff --git a/tooling/maven/camel-maven-plugin/pom.xml b/tooling/maven/camel-maven-plugin/pom.xml
>> index 160b8ab..940ab77 100644
>> --- a/tooling/maven/camel-maven-plugin/pom.xml
>> +++ b/tooling/maven/camel-maven-plugin/pom.xml
>> @@ -53,6 +53,13 @@
>> <artifactId>camel-cdi</artifactId>
>> </dependency>
>>
>> + <!--for the hawtio goal -->
>> + <dependency>
>> + <groupId>io.hawt</groupId>
>> + <artifactId>hawtio-app</artifactId>
>> + <version>${hawtio-version}</version>
>> + </dependency>
>> +
>> <dependency>
>> <groupId>org.codehaus.mojo</groupId>
>> <artifactId>exec-maven-plugin</artifactId>
>>
>> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
>> ----------------------------------------------------------------------
>> diff --git a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
>> new file mode 100644
>> index 0000000..1c8f697
>> --- /dev/null
>> +++ b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
>> @@ -0,0 +1,58 @@
>> +/**
>> + * Licensed to the Apache Software Foundation (ASF) under one or more
>> + * contributor license agreements. See the NOTICE file distributed with
>> + * this work for additional information regarding copyright ownership.
>> + * The ASF licenses this file to You under the Apache License, Version 2.0
>> + * (the "License"); you may not use this file except in compliance with
>> + * the License. You may obtain a copy of the License at
>> + *
>> + * http://www.apache.org/licenses/LICENSE-2.0
>> + *
>> + * Unless required by applicable law or agreed to in writing, software
>> + * distributed under the License is distributed on an "AS IS" BASIS,
>> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>> + * See the License for the specific language governing permissions and
>> + * limitations under the License.
>> + */
>> +package org.apache.camel.maven;
>> +
>> +import java.lang.reflect.Method;
>> +
>> +/**
>> + * Runs a CamelContext using any Spring or Blueprint XML configuration files found in
>> + * <code>META-INF/spring/*.xml</code>, and <code>OSGI-INF/blueprint/*.xml</code>,
>> + * and <code>camel-*.xml</code> and starting up the context together with
>> + * <a href="http://hawt.io/">hawtio</a> as web console.
>> + *
>> + * @goal hawtio
>> + * @requiresDependencyResolution compile+runtime
>> + * @execute phase="test-compile"
>> + */
>> +public class HawtioMojo extends RunMojo {
>> +
>> + /**
>> + * The port number to use for the hawtio web console.
>> + *
>> + * @parameter property="camel.port"
>> + * default-value="8080"
>> + */
>> + private int port = 8080;
>> +
>> + public HawtioMojo() {
>> + extendedPluginDependencyArtifactId = "hawtio-app";
>> + }
>> +
>> + @Override
>> + void beforeBootstrapCamel() throws Exception {
>> + getLog().info("Starting hawtio ...");
>> + Method hawtioMain = Thread.currentThread().getContextClassLoader().loadClass("io.hawt.app.App")
>> + .getMethod("main", new Class[] {String[].class});
>> + if (!hawtioMain.isAccessible()) {
>> + getLog().debug("Setting accessibility to true in order to invoke main().");
>> + hawtioMain.setAccessible(true);
>> + }
>> + String[] args = new String[]{"--port", "" + port, "--join", "false"};
>> + hawtioMain.invoke(hawtioMain, new Object[]{args});
>> + }
>> +
>> +}
>>
>> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
>> ----------------------------------------------------------------------
>> diff --git a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
>> index 6f3921d..510333b6 100644
>> --- a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
>> +++ b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
>> @@ -369,6 +369,7 @@ public class RunMojo extends AbstractExecMojo {
>> private Properties originalSystemProperties;
>>
>> private String extraPluginDependencyArtifactId;
>> + protected String extendedPluginDependencyArtifactId;
>>
>> /**
>> * Execute goal.
>> @@ -455,7 +456,7 @@ public class RunMojo extends AbstractExecMojo {
>> getLog().info("Using org.apache.camel.spring.Main to initiate a CamelContext");
>> mainClass = "org.apache.camel.spring.Main";
>> }
>> -
>> +
>> arguments = new String[args.size()];
>> args.toArray(arguments);
>>
>> @@ -474,9 +475,12 @@ public class RunMojo extends AbstractExecMojo {
>> }
>>
>> IsolatedThreadGroup threadGroup = new IsolatedThreadGroup(mainClass /* name */);
>> - Thread bootstrapThread = new Thread(threadGroup, new Runnable() {
>> + final Thread bootstrapThread = new Thread(threadGroup, new Runnable() {
>> public void run() {
>> try {
>> + beforeBootstrapCamel();
>> +
>> + getLog().info("Starting Camel ...");
>> Method main = Thread.currentThread().getContextClassLoader().loadClass(mainClass)
>> .getMethod("main", new Class[] {String[].class});
>> if (!main.isAccessible()) {
>> @@ -494,6 +498,7 @@ public class RunMojo extends AbstractExecMojo {
>> }
>> }
>> }, mainClass + ".main()");
>> +
>> bootstrapThread.setContextClassLoader(getClassLoader());
>> setSystemProperties();
>>
>> @@ -532,6 +537,13 @@ public class RunMojo extends AbstractExecMojo {
>> registerSourceRoots();
>> }
>>
>> + /**
>> + * Allows plugin extensions to do custom logic before bootstrapping Camel.
>> + */
>> + void beforeBootstrapCamel() throws Exception {
>> + // noop
>> + }
>> +
>> class IsolatedThreadGroup extends ThreadGroup {
>> Throwable uncaughtException; // synchronize access to this
>>
>> @@ -743,7 +755,7 @@ public class RunMojo extends AbstractExecMojo {
>> * @throws MojoExecutionException
>> */
>> private void addExtraPluginDependenciesToClasspath(Set<URL> path) throws MojoExecutionException {
>> - if (extraPluginDependencyArtifactId == null) {
>> + if (extraPluginDependencyArtifactId == null && extendedPluginDependencyArtifactId == null) {
>> return;
>> }
>>
>> @@ -751,7 +763,8 @@ public class RunMojo extends AbstractExecMojo {
>> Set<Artifact> artifacts = new HashSet<Artifact>(this.pluginDependencies);
>> for (Artifact artifact : artifacts) {
>> // must
>> - if (artifact.getArtifactId().equals(extraPluginDependencyArtifactId)) {
>> + if (artifact.getArtifactId().equals(extraPluginDependencyArtifactId)
>> + || artifact.getArtifactId().equals(extendedPluginDependencyArtifactId)) {
>> getLog().debug("Adding extra plugin dependency artifact: " + artifact.getArtifactId()
>> + " to classpath");
>> path.add(artifact.getFile().toURI().toURL());
>>
>
> --
> Daniel Kulp
> dkulp@apache.org - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
>
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com
Re: git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
Posted by Daniel Kulp <dk...@apache.org>.
I’m -1 to this commit. I don’t think we should be adding a bunch of targets for all the various container/platform integrations. This starts going down the road of adding targets for karaf, glassfish, etc… We should just provide standard packaging that the hawtio:run command or whatever would pick up. (like tomcat:run, jetty:run, etc…)
Dan
On Nov 28, 2013, at 7:46 AM, davsclaus@apache.org wrote:
> Updated Branches:
> refs/heads/camel-2.12.x 628b34c0d -> ae5a770e0
>
>
> CAMEL-7023: Added hawtio goal to camel maven plugin.
>
> Conflicts:
> parent/pom.xml
>
>
> Project: http://git-wip-us.apache.org/repos/asf/camel/repo
> Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ae5a770e
> Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ae5a770e
> Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ae5a770e
>
> Branch: refs/heads/camel-2.12.x
> Commit: ae5a770e01a1a2512412be97e62b18cb7578d640
> Parents: 628b34c
> Author: Claus Ibsen <da...@apache.org>
> Authored: Thu Nov 28 13:47:25 2013 +0100
> Committer: Claus Ibsen <da...@apache.org>
> Committed: Thu Nov 28 13:48:16 2013 +0100
>
> ----------------------------------------------------------------------
> parent/pom.xml | 1 +
> tooling/maven/camel-maven-plugin/pom.xml | 7 +++
> .../java/org/apache/camel/maven/HawtioMojo.java | 58 ++++++++++++++++++++
> .../java/org/apache/camel/maven/RunMojo.java | 21 +++++--
> 4 files changed, 83 insertions(+), 4 deletions(-)
> ----------------------------------------------------------------------
>
>
> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/parent/pom.xml
> ----------------------------------------------------------------------
> diff --git a/parent/pom.xml b/parent/pom.xml
> index 95f2a9e..d3229bc 100644
> --- a/parent/pom.xml
> +++ b/parent/pom.xml
> @@ -173,6 +173,7 @@
> <hawtbuf-version>1.9</hawtbuf-version>
> <hawtdb-version>1.6</hawtdb-version>
> <hawtdispatch-version>1.18</hawtdispatch-version>
> + <hawtio-version>1.2.0</hawtio-version>
> <hazelcast-version>2.6</hazelcast-version>
> <hbase-version>0.94.10</hbase-version>
> <hbase-bundle-version>0.94.6_1</hbase-bundle-version>
>
> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/pom.xml
> ----------------------------------------------------------------------
> diff --git a/tooling/maven/camel-maven-plugin/pom.xml b/tooling/maven/camel-maven-plugin/pom.xml
> index 160b8ab..940ab77 100644
> --- a/tooling/maven/camel-maven-plugin/pom.xml
> +++ b/tooling/maven/camel-maven-plugin/pom.xml
> @@ -53,6 +53,13 @@
> <artifactId>camel-cdi</artifactId>
> </dependency>
>
> + <!--for the hawtio goal -->
> + <dependency>
> + <groupId>io.hawt</groupId>
> + <artifactId>hawtio-app</artifactId>
> + <version>${hawtio-version}</version>
> + </dependency>
> +
> <dependency>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>exec-maven-plugin</artifactId>
>
> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
> ----------------------------------------------------------------------
> diff --git a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
> new file mode 100644
> index 0000000..1c8f697
> --- /dev/null
> +++ b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
> @@ -0,0 +1,58 @@
> +/**
> + * Licensed to the Apache Software Foundation (ASF) under one or more
> + * contributor license agreements. See the NOTICE file distributed with
> + * this work for additional information regarding copyright ownership.
> + * The ASF licenses this file to You under the Apache License, Version 2.0
> + * (the "License"); you may not use this file except in compliance with
> + * the License. You may obtain a copy of the License at
> + *
> + * http://www.apache.org/licenses/LICENSE-2.0
> + *
> + * Unless required by applicable law or agreed to in writing, software
> + * distributed under the License is distributed on an "AS IS" BASIS,
> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> + * See the License for the specific language governing permissions and
> + * limitations under the License.
> + */
> +package org.apache.camel.maven;
> +
> +import java.lang.reflect.Method;
> +
> +/**
> + * Runs a CamelContext using any Spring or Blueprint XML configuration files found in
> + * <code>META-INF/spring/*.xml</code>, and <code>OSGI-INF/blueprint/*.xml</code>,
> + * and <code>camel-*.xml</code> and starting up the context together with
> + * <a href="http://hawt.io/">hawtio</a> as web console.
> + *
> + * @goal hawtio
> + * @requiresDependencyResolution compile+runtime
> + * @execute phase="test-compile"
> + */
> +public class HawtioMojo extends RunMojo {
> +
> + /**
> + * The port number to use for the hawtio web console.
> + *
> + * @parameter property="camel.port"
> + * default-value="8080"
> + */
> + private int port = 8080;
> +
> + public HawtioMojo() {
> + extendedPluginDependencyArtifactId = "hawtio-app";
> + }
> +
> + @Override
> + void beforeBootstrapCamel() throws Exception {
> + getLog().info("Starting hawtio ...");
> + Method hawtioMain = Thread.currentThread().getContextClassLoader().loadClass("io.hawt.app.App")
> + .getMethod("main", new Class[] {String[].class});
> + if (!hawtioMain.isAccessible()) {
> + getLog().debug("Setting accessibility to true in order to invoke main().");
> + hawtioMain.setAccessible(true);
> + }
> + String[] args = new String[]{"--port", "" + port, "--join", "false"};
> + hawtioMain.invoke(hawtioMain, new Object[]{args});
> + }
> +
> +}
>
> http://git-wip-us.apache.org/repos/asf/camel/blob/ae5a770e/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
> ----------------------------------------------------------------------
> diff --git a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
> index 6f3921d..510333b6 100644
> --- a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
> +++ b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
> @@ -369,6 +369,7 @@ public class RunMojo extends AbstractExecMojo {
> private Properties originalSystemProperties;
>
> private String extraPluginDependencyArtifactId;
> + protected String extendedPluginDependencyArtifactId;
>
> /**
> * Execute goal.
> @@ -455,7 +456,7 @@ public class RunMojo extends AbstractExecMojo {
> getLog().info("Using org.apache.camel.spring.Main to initiate a CamelContext");
> mainClass = "org.apache.camel.spring.Main";
> }
> -
> +
> arguments = new String[args.size()];
> args.toArray(arguments);
>
> @@ -474,9 +475,12 @@ public class RunMojo extends AbstractExecMojo {
> }
>
> IsolatedThreadGroup threadGroup = new IsolatedThreadGroup(mainClass /* name */);
> - Thread bootstrapThread = new Thread(threadGroup, new Runnable() {
> + final Thread bootstrapThread = new Thread(threadGroup, new Runnable() {
> public void run() {
> try {
> + beforeBootstrapCamel();
> +
> + getLog().info("Starting Camel ...");
> Method main = Thread.currentThread().getContextClassLoader().loadClass(mainClass)
> .getMethod("main", new Class[] {String[].class});
> if (!main.isAccessible()) {
> @@ -494,6 +498,7 @@ public class RunMojo extends AbstractExecMojo {
> }
> }
> }, mainClass + ".main()");
> +
> bootstrapThread.setContextClassLoader(getClassLoader());
> setSystemProperties();
>
> @@ -532,6 +537,13 @@ public class RunMojo extends AbstractExecMojo {
> registerSourceRoots();
> }
>
> + /**
> + * Allows plugin extensions to do custom logic before bootstrapping Camel.
> + */
> + void beforeBootstrapCamel() throws Exception {
> + // noop
> + }
> +
> class IsolatedThreadGroup extends ThreadGroup {
> Throwable uncaughtException; // synchronize access to this
>
> @@ -743,7 +755,7 @@ public class RunMojo extends AbstractExecMojo {
> * @throws MojoExecutionException
> */
> private void addExtraPluginDependenciesToClasspath(Set<URL> path) throws MojoExecutionException {
> - if (extraPluginDependencyArtifactId == null) {
> + if (extraPluginDependencyArtifactId == null && extendedPluginDependencyArtifactId == null) {
> return;
> }
>
> @@ -751,7 +763,8 @@ public class RunMojo extends AbstractExecMojo {
> Set<Artifact> artifacts = new HashSet<Artifact>(this.pluginDependencies);
> for (Artifact artifact : artifacts) {
> // must
> - if (artifact.getArtifactId().equals(extraPluginDependencyArtifactId)) {
> + if (artifact.getArtifactId().equals(extraPluginDependencyArtifactId)
> + || artifact.getArtifactId().equals(extendedPluginDependencyArtifactId)) {
> getLog().debug("Adding extra plugin dependency artifact: " + artifact.getArtifactId()
> + " to classpath");
> path.add(artifact.getFile().toURI().toURL());
>
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com