Updated Branches: refs/heads/camel-2.12.x 6d761ddc1 -> a60afb73d refs/heads/master 963b1c3c9 -> 88a5104f2
CAMEL-7023: Remove hawtio maven plugin. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/88a5104f Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/88a5104f Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/88a5104f Branch: refs/heads/master Commit: 88a5104f25bb4d504e6e0b74a3474e27620cedd1 Parents: 963b1c3 Author: Claus Ibsen <davscl...@apache.org> Authored: Tue Dec 3 19:05:32 2013 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Tue Dec 3 19:06:50 2013 +0100 ---------------------------------------------------------------------- parent/pom.xml | 1 - tooling/maven/camel-maven-plugin/pom.xml | 7 --- .../java/org/apache/camel/maven/HawtioMojo.java | 54 -------------------- 3 files changed, 62 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/88a5104f/parent/pom.xml ---------------------------------------------------------------------- diff --git a/parent/pom.xml b/parent/pom.xml index a5645ac..62cc115 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -173,7 +173,6 @@ <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>3.0.2</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/88a5104f/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 d4d160b..ebd7b78 100644 --- a/tooling/maven/camel-maven-plugin/pom.xml +++ b/tooling/maven/camel-maven-plugin/pom.xml @@ -53,13 +53,6 @@ <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/88a5104f/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 deleted file mode 100644 index 57e509e..0000000 --- a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * 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 - protected void beforeBootstrapCamel() throws Exception { - getLog().info("Starting hawtio ..."); - Method hawtioMain = Thread.currentThread().getContextClassLoader() - .loadClass("io.hawt.app.App").getMethod("main", String[].class); - String[] args = new String[]{"--port", "" + port, "--join", "false"}; - hawtioMain.invoke(null, new Object[]{args}); - } - -}