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

ASF GitHub Bot commented on CAMEL-11942:
----------------------------------------

GitHub user sermojohn opened a pull request:

    https://github.com/apache/camel/pull/2104

    camel-blueprint-schemagen-fix

    Switched to jaxb2-maven-plugin for camel-spring schemagen (similar to 
CAMEL-11942)
    
    Also, due to the use of activeByDefault profile for schema generation, the 
build failed on jdk9 because the schema was never generated. So I applied a 
common pattern of using a property (named disable-schemagen) instead of 
activeByDefault, which can be used for disabling schema generation (probably 
intended for **on-hpjdk** and **on-ibmjdk** profiles). As a result, both jdk9 
and jdk < 9 builds succeed. 
    
    However, there is still an issue when disabling schema generation, because 
the camel-blueprint.xsd is required by 
**camel-eip-documentation-enricher-maven-plugin**, so in practice schema 
generation should never be disabled based on the existing build script.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sermojohn/camel camel-blueprint-schemagen-fix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/2104.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2104
    
----
commit f297870f905920e237578b050229a0536d18ab89
Author: Ioannis Sermetziadis <sermoj...@gmail.com>
Date:   2017-11-21T20:00:37Z

    camel-blueprint schemagen build fix that affected windows builds

----


> camel-spring build failure on windows
> -------------------------------------
>
>                 Key: CAMEL-11942
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11942
>             Project: Camel
>          Issue Type: Task
>          Components: build system
>    Affects Versions: 2.20.0
>            Reporter: Önder Sezgin
>            Priority: Minor
>             Fix For: 2.21.0
>
>
> [INFO] Executed tasks
> [INFO]
> [INFO] --- exec-maven-plugin:1.1.1:exec (generate schema) @ camel-spring ---
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 03:33 min
> [INFO] Finished at: 2017-10-24T10:27:33+03:00
> [INFO] Final Memory: 37M/240M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1.1:exec 
> (g
> enerate schema) on project camel-spring: Command execution failed. Error 
> while e
> xecuting process. Cannot run program "cmd.exe" (in directory 
> "D:\dev\github\came
> l\components\camel-spring"): CreateProcess error=206, The filename or 
> extension
> is too long -> [Help 1]
> [ERROR]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to