Skip to content

Conversation

@sermojohn
Copy link
Contributor

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.

@davsclaus
Copy link
Contributor

@sermojohn is this a similar fix that you did for camel-spring

@sermojohn
Copy link
Contributor Author

sermojohn commented Nov 23, 2017

Yes. However, there are some new challenges due to the fact that schema-generation is provided in a maven profile. This did not work well with jdk9 profile, because the enable-schemagen profile would be disabled (when not explicitly enabling profiles). This was fixed as well.

When enable-schemagen profile is disabled through the new system property disable-schemagen, the build fails because some plugins look for the camel-blueprint.xsd file. I believe this was existing issue, but is still not fixed by my commit.

@davsclaus
Copy link
Contributor

Okay so you can build camel-blueprint on windows now on both java 8 and java 9 with this PR?

@sermojohn
Copy link
Contributor Author

Yes

@davsclaus
Copy link
Contributor

Thanks for the PR it has been merged. Do you mind closing this?

@sermojohn sermojohn closed this Nov 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants