[
https://issues.apache.org/jira/browse/CAMEL-13395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Cosentino resolved CAMEL-13395.
--------------------------------------
Resolution: Fixed
> Threadsafe camel-api-component-maven-plugin
> --------------------------------------------
>
> Key: CAMEL-13395
> URL: https://issues.apache.org/jira/browse/CAMEL-13395
> Project: Camel
> Issue Type: Improvement
> Components: tooling
> Reporter: Marc Carter
> Assignee: Andrea Cosentino
> Priority: Minor
> Fix For: 3.0.0, 3.0.0-M3
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> In plugin {{camel-api-component-maven-plugin}}, {{ApiComponentGeneratorMojo}}
> claims it is threadsafe however its superclass is clearly using {{static}}
> fields (AbstractGeneratorMojo.java:59) and it fails very easily on multi-core
> boxes
> The following fails consistently on a multi-core host:
> {code:bash}
> # Run once to complete all compilations
> ./mvnw install -Pfastinstall -pl
> :camel-google-calendar,:camel-box,:camel-braintree,:camel-api-component-maven-plugin
> # Run again but using threads, this largely guarantees the plugin is run
> concurrently
> ./mvnw -TC1 install -Pfastinstall -pl
> :camel-google-calendar,:camel-box,:camel-braintree,:camel-api-component-maven-plugin
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)