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/12/03 19:04:43 UTC
[2/2] git commit: CAMEL-7023: Remove hawtio maven plugin.
CAMEL-7023: Remove hawtio 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/a60afb73
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a60afb73
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a60afb73
Branch: refs/heads/camel-2.12.x
Commit: a60afb73de2fee09fec8010658fe9cb630bd4ca4
Parents: 6d761dd
Author: Claus Ibsen <da...@apache.org>
Authored: Tue Dec 3 19:05:32 2013 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Tue Dec 3 19:07:00 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/a60afb73/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index c298b4b..627cef0 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>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/a60afb73/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 940ab77..160b8ab 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/a60afb73/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});
- }
-
-}