You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/05/11 14:14:00 UTC

[jira] [Commented] (CAMEL-15043) MojoFailureException after creating a new component using archetype then build it straight away

    [ https://issues.apache.org/jira/browse/CAMEL-15043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17104486#comment-17104486 ] 

Claus Ibsen commented on CAMEL-15043:
-------------------------------------

Thanks for reporting. Yeah we should get the maven archetypes fixed if they have problems. And also remove the osgi bits and make them use java 11 by default.

Contributions is welcome

> MojoFailureException after creating a new component using archetype then build it straight away
> -----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-15043
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15043
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-package-maven-plugin
>    Affects Versions: 3.2.0
>         Environment: OS -> Mac OS 10.15.4
> Maven -> 3.6.3
> Java -> 1.8.0_241
>            Reporter: Alvin Ma
>            Priority: Major
>              Labels: archetype
>             Fix For: 3.4.0
>
>         Attachments: Screen Shot 2020-05-11 at 1.17.18 PM.png
>
>
>  
> Intention: To create my own Camel component.
>  
> Steps:
>  # Run `mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-component -DarchetypeVersion=3.2.0 -DgroupId=org.apache.camel -DartifactId=camel-mycomponent -Dname=MyComponent -Dscheme=mycomponent -Dpackage=org.apache.camel.component.mycomponent` and it'll create `camel-mycomponent` directory. Then open the `pom.xml` and delete the `OSGi` part because I don't need it.
>  # Under `camel-mycomponent` run `mvn clean install`
>  
> Result:
> Got error
> {noformat}
> [ERROR] Failed to execute goal org.apache.camel:camel-package-maven-plugin:3.2.0:generate-component (generate) on project camel-mycomponent: Error generating data org.apache.maven.plugin.MojoFailureException: Unable to create mojo: Could not find component java type -> [Help 1] {noformat}
>  
> Expected: Build successfully with a jar output.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)