You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by dh...@apache.org on 2014/06/10 21:52:00 UTC

[32/35] Renamed component-util plugin to api-component

http://git-wip-us.apache.org/repos/asf/camel/blob/0c9fbb62/tooling/maven/camel-component-util-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-component-util-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java b/tooling/maven/camel-component-util-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java
deleted file mode 100644
index 28bd958..0000000
--- a/tooling/maven/camel-component-util-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java
+++ /dev/null
@@ -1,276 +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.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.lang.reflect.Method;
-import java.lang.reflect.Modifier;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.regex.Pattern;
-import javax.swing.text.ChangedCharSetException;
-import javax.swing.text.SimpleAttributeSet;
-import javax.swing.text.html.HTML;
-import javax.swing.text.html.parser.DTD;
-import javax.swing.text.html.parser.Parser;
-import javax.swing.text.html.parser.TagElement;
-
-import org.apache.camel.util.component.ApiMethodParser;
-import org.apache.camel.util.component.ArgumentSubstitutionParser;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugins.annotations.LifecyclePhase;
-import org.apache.maven.plugins.annotations.Mojo;
-import org.apache.maven.plugins.annotations.Parameter;
-import org.apache.maven.plugins.annotations.ResolutionScope;
-import org.codehaus.plexus.util.IOUtil;
-
-/**
- * Parses ApiMethod signatures from Javadoc.
- */
-@Mojo(name = "fromJavadoc", requiresDependencyResolution = ResolutionScope.TEST, requiresProject = true,
-        defaultPhase = LifecyclePhase.GENERATE_SOURCES)
-public class JavadocApiMethodGeneratorMojo extends AbstractApiMethodGeneratorMojo {
-
-    static {
-        // set Java AWT to headless before using Swing HTML parser
-        System.setProperty("java.awt.headless", "true");
-    }
-
-    protected static final String DEFAULT_EXCLUDE_PACKAGES = "javax?\\.lang.*";
-
-    @Parameter(property = "camel.component.util.excludePackages", defaultValue = DEFAULT_EXCLUDE_PACKAGES)
-    protected String excludePackages;
-
-    @Parameter(property = "camel.component.util.excludeClasses")
-    protected String excludeClasses;
-
-    @Parameter(property = "camel.component.util.excludeMethods")
-    protected String excludeMethods;
-
-    @Override
-    protected ApiMethodParser createAdapterParser(Class proxyType) {
-        return new ArgumentSubstitutionParser(proxyType, getArgumentSubstitutions());
-    }
-
-    @Override
-    public List<String> getSignatureList() throws MojoExecutionException {
-        // signatures as map from signature with no arg names to arg names from JavadocParser
-        Map<String, String> result = new HashMap<String, String>();
-
-        final Pattern packagePatterns = Pattern.compile(excludePackages);
-        Pattern classPatterns = null;
-        if (excludeClasses != null) {
-            classPatterns = Pattern.compile(excludeClasses);
-        }
-        Pattern methodPatterns = null;
-        if (excludeMethods != null) {
-            methodPatterns = Pattern.compile(excludeMethods);
-        }
-
-        // for proxy class and super classes not matching excluded packages or classes
-        for (Class aClass = getProxyType();
-             aClass != null && !packagePatterns.matcher(aClass.getPackage().getName()).matches() &&
-                     (classPatterns == null || !classPatterns.matcher(aClass.getSimpleName()).matches());
-             aClass = aClass.getSuperclass()) {
-
-            LOG.debug("Processing " + aClass.getName());
-            final String javaDocPath = aClass.getName().replaceAll("\\.", "/") + ".html";
-
-            // read javadoc html text for class
-            InputStream inputStream = null;
-            try {
-                inputStream = getProjectClassLoader().getResourceAsStream(javaDocPath);
-                if (inputStream == null) {
-                    LOG.debug("JavaDoc not found on classpath for " + aClass.getName());
-                    break;
-                }
-                // transform the HTML to get method summary as text
-                // dummy DTD
-                final DTD dtd = DTD.getDTD("html.dtd");
-                final JavadocParser htmlParser = new JavadocParser(dtd, javaDocPath);
-                htmlParser.parse(new InputStreamReader(inputStream, "UTF-8"));
-
-                // get public method signature
-                final Map<String, String> methodMap = htmlParser.getMethodText();
-                for (String method : htmlParser.getMethods()) {
-                    if (!result.containsKey(method) &&
-                            (methodPatterns == null || !methodPatterns.matcher(method).find())) {
-
-                        final int leftBracket = method.indexOf('(');
-                        final String name = method.substring(0, leftBracket);
-                        final String args = method.substring(leftBracket + 1, method.length() - 1);
-                        String[] types;
-                        if (args.isEmpty()) {
-                            types = new String[0];
-                        } else {
-                            types = args.split(",");
-                        }
-                        final String resultType = getResultType(aClass, name, types);
-                        if (resultType != null) {
-                            final StringBuilder signature = new StringBuilder(resultType);
-                            signature.append(" ").append(name).append(methodMap.get(method));
-                            result.put(method, signature.toString());
-                        }
-                    }
-                }
-            } catch (IOException e) {
-                throw new MojoExecutionException(e.getMessage(), e);
-            } finally {
-                IOUtil.close(inputStream);
-            }
-        }
-
-        if (result.isEmpty()) {
-            throw new MojoExecutionException("No public non-static methods found, " +
-                    "make sure Javadoc is available as project test dependency");
-        }
-        return new ArrayList<String>(result.values());
-    }
-
-    private String getResultType(Class<?> aClass, String name, String[] types) throws MojoExecutionException {
-        Class<?>[] argTypes = new Class<?>[types.length];
-        final ClassLoader classLoader = getProjectClassLoader();
-        for (int i = 0; i < types.length; i++) {
-            try {
-                try {
-                    argTypes[i] = ApiMethodParser.forName(types[i].trim(), classLoader);
-                } catch (ClassNotFoundException e) {
-                    throw new MojoExecutionException(e.getMessage(), e);
-                }
-            } catch (IllegalArgumentException e) {
-                throw new MojoExecutionException(e.getCause().getMessage(), e.getCause());
-            }
-        }
-        try {
-            final Method method = aClass.getMethod(name, argTypes);
-            // only include non-static public methods
-            int modifiers = method.getModifiers();
-            if (Modifier.isPublic(modifiers) && !Modifier.isStatic(modifiers)) {
-                return method.getReturnType().getCanonicalName();
-            } else {
-                return null;
-            }
-        } catch (NoSuchMethodException e) {
-            throw new MojoExecutionException(e.getMessage(), e);
-        }
-    }
-
-    private class JavadocParser extends Parser {
-        private String hrefPattern;
-
-        private ParserState parserState;
-        private String methodWithTypes;
-        private StringBuilder methodTextBuilder = new StringBuilder();
-
-        private List<String> methods = new ArrayList<String>();
-        private Map<String, String> methodText = new HashMap<String, String>();
-
-        public JavadocParser(DTD dtd, String docPath) {
-            super(dtd);
-            this.hrefPattern = docPath + "#";
-        }
-
-        @Override
-        protected void startTag(TagElement tag) throws ChangedCharSetException {
-            super.startTag(tag);
-
-            final HTML.Tag htmlTag = tag.getHTMLTag();
-            if (htmlTag != null) {
-                if (HTML.Tag.A.equals(htmlTag)) {
-                    final SimpleAttributeSet attributes = getAttributes();
-                    final Object name = attributes.getAttribute(HTML.Attribute.NAME);
-                    if (name != null) {
-                        final String nameAttr = (String) name;
-                        if (parserState == null && "method_summary".equals(nameAttr)) {
-                            parserState = ParserState.METHOD_SUMMARY;
-                        } else if (parserState == ParserState.METHOD_SUMMARY && nameAttr.startsWith("methods_inherited_from_class_")) {
-                            parserState = null;
-                        } else if (parserState == ParserState.METHOD && methodWithTypes == null) {
-                            final Object href = attributes.getAttribute(HTML.Attribute.HREF);
-                            if (href != null) {
-                                String hrefAttr = (String) href;
-                                if (hrefAttr.contains(hrefPattern)) {
-                                    methodWithTypes = hrefAttr.substring(hrefAttr.indexOf('#') + 1);
-                                }
-                            }
-                        }
-                    }
-                } else if (parserState == ParserState.METHOD_SUMMARY && HTML.Tag.CODE.equals(htmlTag)) {
-                    parserState = ParserState.METHOD;
-                }
-            }
-        }
-
-        @Override
-        protected void handleEmptyTag(TagElement tag) {
-            if (parserState == ParserState.METHOD && HTML.Tag.CODE.equals(tag.getHTMLTag())) {
-                if (methodWithTypes != null) {
-                    // process collected method data
-                    methods.add(methodWithTypes);
-                    this.methodText.put(methodWithTypes, getArgSignature());
-
-                    // clear the text builder for next method
-                    methodTextBuilder.delete(0, methodTextBuilder.length());
-                    methodWithTypes = null;
-                }
-
-                parserState = ParserState.METHOD_SUMMARY;
-            }
-        }
-
-        private String getArgSignature() {
-            final String typeString = methodWithTypes.substring(methodWithTypes.indexOf('(') + 1, methodWithTypes.indexOf(')'));
-            if (typeString.isEmpty()) {
-                return "()";
-            }
-            final String[] types = typeString.split(",");
-            String argText = methodTextBuilder.toString().replaceAll("&nbsp;", " ").replaceAll("&nbsp", " ");
-            final String[] args = argText.substring(argText.indexOf('(') + 1, argText.indexOf(')')).split(",");
-            StringBuilder builder = new StringBuilder("(");
-            for (int i = 0; i < types.length; i++) {
-                final String[] arg = args[i].trim().split(" ");
-                builder.append(types[i]).append(" ").append(arg[1].trim()).append(",");
-            }
-            builder.deleteCharAt(builder.length() - 1);
-            builder.append(")");
-            return builder.toString();
-        }
-
-        @Override
-        protected void handleText(char[] text) {
-            if (parserState == ParserState.METHOD && methodWithTypes != null) {
-                methodTextBuilder.append(text);
-            }
-        }
-
-        private List<String> getMethods() {
-            return methods;
-        }
-
-        private Map<String, String> getMethodText() {
-            return methodText;
-        }
-    }
-
-    private static enum ParserState {
-        METHOD_SUMMARY, METHOD;
-    }
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/0c9fbb62/tooling/maven/camel-component-util-maven-plugin/src/main/java/org/apache/camel/maven/Substitution.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-component-util-maven-plugin/src/main/java/org/apache/camel/maven/Substitution.java b/tooling/maven/camel-component-util-maven-plugin/src/main/java/org/apache/camel/maven/Substitution.java
deleted file mode 100644
index d16e041..0000000
--- a/tooling/maven/camel-component-util-maven-plugin/src/main/java/org/apache/camel/maven/Substitution.java
+++ /dev/null
@@ -1,80 +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;
-
-/**
- * Argument name substitution for {@link FileApiMethodGeneratorMojo}.
- */
-public class Substitution {
-
-    public String method;
-    private String argName;
-    private String argType;
-    private String replacement;
-    private boolean replaceWithType;
-
-    public Substitution() {
-    }
-
-    public Substitution(String method, String argName, String argType, String replacement, boolean replaceWithType) {
-        this.method = method;
-        this.argName = argName;
-        this.argType = argType;
-        this.replacement = replacement;
-        this.replaceWithType = replaceWithType;
-    }
-
-    public String getMethod() {
-        return method;
-    }
-
-    public void setMethod(String method) {
-        this.method = method;
-    }
-
-    public String getArgName() {
-        return argName;
-    }
-
-    public void setArgName(String argName) {
-        this.argName = argName;
-    }
-
-    public String getArgType() {
-        return argType;
-    }
-
-    public void setArgType(String argType) {
-        this.argType = argType;
-    }
-
-    public String getReplacement() {
-        return replacement;
-    }
-
-    public void setReplacement(String replacement) {
-        this.replacement = replacement;
-    }
-
-    public boolean isReplaceWithType() {
-        return replaceWithType;
-    }
-
-    public void setReplaceWithType(boolean replaceWithType) {
-        this.replaceWithType = replaceWithType;
-    }
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/0c9fbb62/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-collection.vm
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-collection.vm b/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-collection.vm
deleted file mode 100644
index 0774366..0000000
--- a/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-collection.vm
+++ /dev/null
@@ -1,76 +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.
-## ------------------------------------------------------------------------
-## api-collection.vm
-/*
- * Camel ApiCollection generated by camel-component-util-maven-plugin
- * Generated on: $generatedDate
- */
-package $packageName;
-
-import java.util.Map;
-import java.util.HashMap;
-
-#set( $componentConfig = "${componentName}Configuration" )
-import ${componentPackage}.${componentConfig};
-#foreach ( $api in $apis )
-import ${componentPackage}.${helper.getEndpointConfig($api.ProxyClass)};
-#end
-
-import org.apache.camel.util.component.ApiCollection;
-import org.apache.camel.util.component.ApiMethodHelper;
-
-/**
- * Camel {@link ApiCollection} for $componentName
- */
-public final class $collectionName extends ApiCollection<${apiNameEnum}, ${componentConfig}> {
-
-    private static $collectionName collection;
-
-    private ${collectionName}() {
-        final Map<String, String> aliases = new HashMap<String, String>();
-#foreach( $api in $apis )
-
-        aliases.clear();
-#foreach( $alias in $api.Aliases )
-        aliases.put("$alias.MethodPattern", "$alias.MethodAlias");
-#end
-#set( $apiMethod = ${helper.getApiMethod($api.ProxyClass)} )
-#set( $apiName = "${apiNameEnum}.${helper.getEnumConstant($api.ApiName)}" )
-        apis.put($apiName, new ApiMethodHelper<$apiMethod>(${apiMethod}.class, aliases));
-        apiMethods.put(${apiMethod}.class, ${apiName});
-#end
-    }
-
-    public $componentConfig getEndpointConfiguration(${apiNameEnum} apiName) {
-        $componentConfig result = null;
-        switch (apiName) {
-#foreach( $api in $apis )
-        case ${helper.getEnumConstant($api.ApiName)}:
-            result = new ${helper.getEndpointConfig($api.ProxyClass)}();
-            break;
-#end
-        }
-        return result;
-    }
-
-    public static synchronized $collectionName getCollection() {
-        if (collection == null) {
-            collection = new $collectionName();
-        }
-        return collection;
-    }
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/0c9fbb62/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-endpoint-config.vm
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-endpoint-config.vm b/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-endpoint-config.vm
deleted file mode 100644
index f01d29e..0000000
--- a/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-endpoint-config.vm
+++ /dev/null
@@ -1,47 +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.
-## ------------------------------------------------------------------------
-## api-endpoint-config.vm
-/*
- * Camel EndpointConfiguration generated by camel-component-util-maven-plugin
- * Generated on: $generatedDate
- */
-package ${componentPackage};
-
-/**
- * Camel EndpointConfiguration for $proxyType.Name
- */
-@SuppressWarnings("unused")
-public final class $configName extends ${componentName}Configuration {
-
-#foreach( $parameter in $parameters.entrySet() )
-    private $helper.getCanonicalName($parameter.Value) $parameter.Key;
-#end
-## getters and setters
-#foreach( $parameter in $parameters.entrySet() )
-#set ( $name = $parameter.Key )
-#set ( $type = $helper.getCanonicalName($parameter.Value) )
-#set ( $suffix = $helper.getBeanPropertySuffix($name) )
-
-    public $type get${suffix}() {
-        return $name;
-    }
-
-    public void set${suffix}($type $name) {
-        this.$name = $name;
-    }
-#end
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/0c9fbb62/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-method-enum.vm
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-method-enum.vm b/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-method-enum.vm
deleted file mode 100644
index 0bc3056..0000000
--- a/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-method-enum.vm
+++ /dev/null
@@ -1,63 +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.
-## ------------------------------------------------------------------------
-## api-method-enum.vm
-/*
- * Camel ApiMethod Enumeration generated by camel-component-util-maven-plugin
- * Generated on: $generatedDate
- */
-package $packageName;
-
-import java.lang.reflect.Method;
-import java.util.List;
-
-import $proxyType.Name;
-
-import org.apache.camel.util.component.ApiMethod;
-import org.apache.camel.util.component.ApiMethodImpl;
-
-/**
- * Camel {@link ApiMethod} Enumeration for $proxyType.Name
- */
-@SuppressWarnings("unused")
-public enum $enumName implements ApiMethod {
-
-#foreach ( $model in $models )
-    ${model.UniqueName}($helper.getType($model.ResultType), "$model.Name"#foreach ( $arg in $model.Arguments ), $helper.getType($arg.Type), "$arg.Name"#end)#if ( $foreach.hasNext ),#else;#end
-
-#end
-
-    private final ApiMethod apiMethod;
-
-    private ${enumName}(Class<?> resultType, String name, Object... args) {
-        this.apiMethod = new ApiMethodImpl(${proxyType.SimpleName}.class, resultType, name, args);
-    }
-
-    @Override
-    public String getName() { return apiMethod.getName(); }
-
-    @Override
-    public Class<?> getResultType() { return apiMethod.getResultType(); }
-
-    @Override
-    public List<String> getArgNames() { return apiMethod.getArgNames(); }
-
-    @Override
-    public List<Class<?>> getArgTypes() { return apiMethod.getArgTypes(); }
-
-    @Override
-    public Method getMethod() { return apiMethod.getMethod(); }
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/0c9fbb62/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-name-enum.vm
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-name-enum.vm b/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-name-enum.vm
deleted file mode 100644
index e0d558d..0000000
--- a/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-name-enum.vm
+++ /dev/null
@@ -1,56 +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.
-## ------------------------------------------------------------------------
-## api-name-enum.vm
-/*
- * Camel ApiName Enumeration generated by camel-component-util-maven-plugin
- * Generated on: $generatedDate
- */
-package $packageName;
-
-import org.apache.camel.util.component.ApiName;
-
-/**
- * Camel {@link ApiName} Enumeration for Component $componentName
- */
-public enum $apiNameEnum implements ApiName {
-
-#foreach ( $api in $apis )
-#set ( $apiName = $api.ApiName )
-    ${helper.getEnumConstant($apiName)}("$apiName")#if ( $foreach.hasNext ),#else;#end
-
-#end
-
-    private final String name;
-
-    private ${apiNameEnum}(String name) {
-        this.name = name;
-    }
-
-    @Override
-    public String getName() {
-        return name;
-    }
-
-    public static $apiNameEnum fromValue(String value) throws IllegalArgumentException {
-        for ($apiNameEnum api : ${apiNameEnum}.values()) {
-            if (api.name.equals(value)) {
-                return api;
-            }
-        }
-        throw new IllegalArgumentException("Invalid value " + value);
-    }
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/0c9fbb62/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-route-test.vm
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-route-test.vm b/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-route-test.vm
deleted file mode 100644
index a3acad1..0000000
--- a/tooling/maven/camel-component-util-maven-plugin/src/main/resources/api-route-test.vm
+++ /dev/null
@@ -1,109 +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.
-## ------------------------------------------------------------------------
-## api-route-test.vm
-/*
- * Camel Api Route test generated by camel-component-util-maven-plugin
- * Generated on: $generatedDate
- */
-package $packageName;
-
-import java.util.HashMap;
-
-import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.test.junit4.CamelTestSupport;
-import org.junit.Ignore;
-import org.junit.Test;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * Test class for $proxyType.Name APIs.
- * TODO Move the file to src/test/java, populate parameter values, and remove @Ignore annotations.
- * The class source won't be generated again if the generator MOJO finds it under src/test/java.
- */
-public class ${testName} extends CamelTestSupport {
-
-    private static final Logger LOG = LoggerFactory.getLogger(${testName}.class);
-    private static final String PATH_PREFIX = ${componentName}ApiCollection.getCollection().getApiName(${enumName}.class).getName();
-
-#foreach ( $model in $models )
-#set ( $testName = $helper.getTestName($model) )
-#set ( $args = $model.Arguments )
-#set ( $resultType = $model.ResultType )
-#set ( $voidResult = $helper.isVoidType($resultType) )
-## are parameter values needed
-#if ( !$args.isEmpty() )
-    // TODO provide parameter values for $model.Name
-#end
-    @Ignore
-    @Test
-    public void test${testName}() throws Exception {
-## single argument, use as body
-#if ( $args.size() == 1 )
-#set ( $argType = $args.get(0).Type )
-        // using $helper.getCanonicalName($argType) message body for single parameter "$args.get(0).Name"
-## multiple arguments, pass them as headers
-#elseif ( $args.size() > 1 )
-        final HashMap<String, Object> headers = new HashMap<String, Object>();
-#foreach ( $arg in $args )
-#if ( !$arg.Type.isPrimitive() )
-        // parameter type is $helper.getCanonicalName($arg.Type)
-        headers.put("${helper.getExchangePropertyPrefix()}${arg.Name}", null);
-#else
-        headers.put("${helper.getExchangePropertyPrefix()}${arg.Name}", $helper.getDefaultArgValue($arg.Type));
-#end
-#end
-#end
-## method invocation result
-        #if ( !$voidResult )#set ( $type = $helper.getResultDeclaration($resultType) )$type result = (${type})#end
-## actual template call
-#if ( $args.isEmpty() )
-template().requestBody("direct://${model.UniqueName}", (Object)null);
-#elseif ( $args.size() == 1 )
-## typecast body to avoid requestBody() conflict
-template().requestBody("direct://${model.UniqueName}", (${helper.getCanonicalName($argType)}) $helper.getDefaultArgValue($argType));
-#else
-template().requestBodyAndHeader("direct://${model.UniqueName}", null, headers);
-#end
-#if ( !$voidResult )
-
-        LOG.debug("${model.Name} :" + result);
-#end
-    }
-
-#end
-    @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
-        return new RouteBuilder() {
-            public void configure() {
-#foreach ( $model in $models )
-#set ( $args = $model.Arguments )
-                // test route for $model.Name
-                from("direct://${model.UniqueName}")
-                  .to("${scheme}://" + PATH_PREFIX + "/${model.Name}#if ( $args.size() == 1 )?inBody=${args.get(0).Name}#end");
-
-#end
-            }
-        };
-    }
-
-    @Override
-    public boolean isCreateCamelContextPerClass() {
-        // only create the context once for this class
-        return true;
-    }
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/0c9fbb62/tooling/maven/camel-component-util-maven-plugin/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-component-util-maven-plugin/src/main/resources/log4j.properties b/tooling/maven/camel-component-util-maven-plugin/src/main/resources/log4j.properties
deleted file mode 100644
index 3d544fc..0000000
--- a/tooling/maven/camel-component-util-maven-plugin/src/main/resources/log4j.properties
+++ /dev/null
@@ -1,36 +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.
-#
-
-#
-# The logging properties used
-#
-log4j.rootLogger=INFO, out
-
-# uncomment the following line to turn on Camel debugging
-#log4j.logger.org.apache.camel=DEBUG
-
-# CONSOLE appender not used by default
-log4j.appender.out=org.apache.log4j.ConsoleAppender
-log4j.appender.out.layout=org.apache.log4j.PatternLayout
-log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n
-#log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
-
-log4j.throwableRenderer=org.apache.log4j.EnhancedThrowableRenderer
-
-#log4j.logger.org.apache.camel.maven=DEBUG
-#log4j.logger.org.apache.http=DEBUG
-#log4j.logger.org.apache.camel.util.component=TRACE

http://git-wip-us.apache.org/repos/asf/camel/blob/0c9fbb62/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/component/test/TestConfiguration.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/component/test/TestConfiguration.java b/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/component/test/TestConfiguration.java
deleted file mode 100644
index de22f82..0000000
--- a/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/component/test/TestConfiguration.java
+++ /dev/null
@@ -1,23 +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.component.test;
-
-/**
- * Dummy component configuration.
- */
-public class TestConfiguration {
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/0c9fbb62/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/component/test/TestProxy.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/component/test/TestProxy.java b/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/component/test/TestProxy.java
deleted file mode 100644
index 48eb11b..0000000
--- a/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/component/test/TestProxy.java
+++ /dev/null
@@ -1,68 +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.component.test;
-
-import java.util.ArrayList;
-import java.util.List;
-
-public class TestProxy {
-    public String sayHi() {
-        return "Hello!";
-    }
-
-    public String sayHi(boolean hello) {
-        return hello ? "Hello!" : "Hi!";
-    }
-
-    public String sayHi(final String name) {
-        return "Hello " + name;
-    }
-
-    public final String greetMe(final String name) {
-        return "Greetings " + name;
-    }
-
-    public final String greetUs(final String name1, String name2) {
-        return "Greetings " + name1 + ", " + name2;
-    }
-
-    public final String greetAll(final String[] names) {
-        StringBuilder builder = new StringBuilder("Greetings ");
-        for (String name : names) {
-            builder.append(name).append(", ");
-        }
-        builder.delete(builder.length() - 2, builder.length());
-        return builder.toString();
-    }
-
-    public final String greetAll(List<String> names) {
-        StringBuilder builder = new StringBuilder("Greetings ");
-        for (String name : names) {
-            builder.append(name).append(", ");
-        }
-        builder.delete(builder.length() - 2, builder.length());
-        return builder.toString();
-    }
-
-    public final String[] greetTimes(String name, int times) {
-        final List<String> result = new ArrayList<String>();
-        for (int i = 0; i < times; i++) {
-            result.add("Greetings " + name);
-        }
-        return result.toArray(new String[result.size()]);
-    }
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/0c9fbb62/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/maven/AbstractGeneratorMojoTest.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/maven/AbstractGeneratorMojoTest.java b/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/maven/AbstractGeneratorMojoTest.java
deleted file mode 100644
index 641b34e..0000000
--- a/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/maven/AbstractGeneratorMojoTest.java
+++ /dev/null
@@ -1,72 +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.io.File;
-import java.util.Collections;
-import java.util.List;
-
-import org.apache.maven.artifact.DependencyResolutionRequiredException;
-import org.apache.maven.model.Build;
-import org.apache.maven.model.Model;
-import org.apache.maven.project.MavenProject;
-import static org.junit.Assert.assertTrue;
-
-/**
- * Base class for Generator MOJO tests.
- */
-public class AbstractGeneratorMojoTest {
-    protected static final String OUT_DIR = "target/generated-test-sources/camel-component";
-
-    private static final String COMPONENT_PACKAGE = "org.apache.camel.component.test";
-    private static final String OUT_PACKAGE = COMPONENT_PACKAGE + ".internal";
-
-    protected static final String PACKAGE_PATH = OUT_PACKAGE.replaceAll("\\.", "/") + "/";
-    protected static final String COMPONENT_PACKAGE_PATH = COMPONENT_PACKAGE.replaceAll("\\.", "/") + "/";
-
-    protected static final String COMPONENT_NAME = "Test";
-    protected static final String SCHEME = "testComponent";
-
-    protected void assertExists(File outFile) {
-        assertTrue("Generated file not found " + outFile.getPath(), outFile.exists());
-    }
-
-    protected void configureMojo(AbstractGeneratorMojo mojo) {
-        mojo.componentName = COMPONENT_NAME;
-        mojo.scheme = SCHEME;
-        mojo.generatedSrcDir = new File(OUT_DIR);
-        mojo.generatedTestDir = new File(OUT_DIR);
-        mojo.outPackage = OUT_PACKAGE;
-        mojo.componentPackage = COMPONENT_PACKAGE;
-        mojo.project = new MavenProject((Model) null) {
-            @Override
-            public List getTestClasspathElements() throws DependencyResolutionRequiredException {
-                return Collections.EMPTY_LIST;
-            }
-
-            @Override
-            public Build getBuild() {
-                return new Build() {
-                    @Override
-                    public String getTestSourceDirectory() {
-                        return OUT_DIR;
-                    }
-                };
-            }
-        };
-    }
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/0c9fbb62/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/maven/ApiComponentGeneratorMojoTest.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/maven/ApiComponentGeneratorMojoTest.java b/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/maven/ApiComponentGeneratorMojoTest.java
deleted file mode 100644
index 3e9400c..0000000
--- a/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/maven/ApiComponentGeneratorMojoTest.java
+++ /dev/null
@@ -1,55 +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.io.File;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.camel.component.test.TestProxy;
-import org.apache.velocity.VelocityContext;
-import org.junit.Test;
-
-/**
- * Tests {@link ApiComponentGeneratorMojo}
- */
-public class ApiComponentGeneratorMojoTest extends AbstractGeneratorMojoTest {
-
-    @Test
-    public void testExecute() throws Exception {
-
-        final File collectionFile = new File(OUT_DIR, PACKAGE_PATH + COMPONENT_NAME + "ApiCollection.java");
-
-        // delete target files to begin
-        collectionFile.delete();
-
-        final ApiComponentGeneratorMojo mojo = new ApiComponentGeneratorMojo();
-        configureMojo(mojo);
-
-        mojo.apis = new ApiProxy[2];
-        mojo.apis[0] = new ApiProxy("test", TestProxy.class.getName());
-        List<ApiMethodAlias> aliases = new ArrayList<ApiMethodAlias>();
-        aliases.add(new ApiMethodAlias("get(.+)", "$1"));
-        aliases.add(new ApiMethodAlias("set(.+)", "$1"));
-        mojo.apis[1] = new ApiProxy("velocity", VelocityContext.class.getName(), aliases);
-
-        mojo.execute();
-
-        // check target file was generated
-        assertExists(collectionFile);
-    }
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/0c9fbb62/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/maven/FileApiMethodGeneratorMojoTest.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/maven/FileApiMethodGeneratorMojoTest.java b/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/maven/FileApiMethodGeneratorMojoTest.java
deleted file mode 100644
index d77bad7..0000000
--- a/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/maven/FileApiMethodGeneratorMojoTest.java
+++ /dev/null
@@ -1,57 +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.io.File;
-import java.io.IOException;
-
-import org.apache.camel.component.test.TestProxy;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.MojoFailureException;
-import org.junit.Test;
-import static org.junit.Assert.assertTrue;
-
-/**
- * Tests {@link FileApiMethodGeneratorMojo}
- */
-public class FileApiMethodGeneratorMojoTest extends AbstractGeneratorMojoTest {
-
-    @Test
-    public void testExecute() throws IOException, MojoFailureException, MojoExecutionException {
-
-        // delete target file to begin
-        final File outFile = new File(OUT_DIR, PACKAGE_PATH + "TestProxyApiMethod.java");
-        if (outFile.exists()) {
-            outFile.delete();
-        }
-
-        final FileApiMethodGeneratorMojo mojo = new FileApiMethodGeneratorMojo();
-        mojo.substitutions = new Substitution[2];
-        mojo.substitutions[0] = new Substitution(".+", "(.+)", "java.util.List", "$1List", false);
-        mojo.substitutions[1] = new Substitution(".+", "(.+)", ".*?(\\w++)\\[\\]", "$1Array", true);
-
-        configureMojo(mojo);
-        mojo.proxyClass = TestProxy.class.getCanonicalName();
-        mojo.signatureFile = new File("src/test/resources/test-proxy-signatures.txt");
-
-        mojo.execute();
-
-        // check target file was generated
-        assertTrue("Generated file not found " + outFile.getPath(), outFile.exists());
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/0c9fbb62/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojoTest.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojoTest.java b/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojoTest.java
deleted file mode 100644
index ded66dd..0000000
--- a/tooling/maven/camel-component-util-maven-plugin/src/test/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojoTest.java
+++ /dev/null
@@ -1,58 +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.io.File;
-import java.io.IOException;
-
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.MojoFailureException;
-import org.apache.velocity.VelocityContext;
-import org.junit.Test;
-
-/**
- * Tests {@link JavadocApiMethodGeneratorMojo}
- */
-public class JavadocApiMethodGeneratorMojoTest extends AbstractGeneratorMojoTest {
-
-    @Test
-    public void testExecute() throws IOException, MojoFailureException, MojoExecutionException {
-
-        // delete target file to begin
-        final File outFile = new File(OUT_DIR, PACKAGE_PATH + "VelocityContextApiMethod.java");
-        if (outFile.exists()) {
-            outFile.delete();
-        }
-
-        final JavadocApiMethodGeneratorMojo mojo = new JavadocApiMethodGeneratorMojo();
-
-        configureMojo(mojo);
-
-        // use VelocityEngine javadoc
-        mojo.proxyClass = VelocityContext.class.getCanonicalName();
-        Substitution substitution = new Substitution(".*", "key", "java.lang.Object", "applicationKey", false);
-        mojo.substitutions = new Substitution[]{ substitution };
-        mojo.excludePackages = JavadocApiMethodGeneratorMojo.DEFAULT_EXCLUDE_PACKAGES;
-        mojo.excludeMethods = "clone|Current|internal|icache";
-
-        mojo.execute();
-
-        // check target file was generated
-        assertExists(outFile);
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/0c9fbb62/tooling/maven/camel-component-util-maven-plugin/src/test/resources/test-proxy-signatures.txt
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-component-util-maven-plugin/src/test/resources/test-proxy-signatures.txt b/tooling/maven/camel-component-util-maven-plugin/src/test/resources/test-proxy-signatures.txt
deleted file mode 100644
index 4c47474..0000000
--- a/tooling/maven/camel-component-util-maven-plugin/src/test/resources/test-proxy-signatures.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-public String sayHi();
-public String sayHi(boolean hello);
-public String sayHi(final String name);
-public final String greetMe(final String name);
-public final String greetUs(final String name1, String name2);
-public final String greetAll(String[] names);
-public final String greetAll(java.util.List<String> names);
-public final String[] greetTimes(String name, int times);

http://git-wip-us.apache.org/repos/asf/camel/blob/0c9fbb62/tooling/maven/pom.xml
----------------------------------------------------------------------
diff --git a/tooling/maven/pom.xml b/tooling/maven/pom.xml
index fbd883e..3bb5092 100644
--- a/tooling/maven/pom.xml
+++ b/tooling/maven/pom.xml
@@ -33,7 +33,7 @@
     <module>camel-package-maven-plugin</module>
     <module>camel-maven-plugin</module>
     <module>guice-maven-plugin</module>
-    <module>camel-component-util-maven-plugin</module>
+    <module>camel-api-component-maven-plugin</module>
   </modules>
 
   <dependencies>