Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add camel-jaxb into extensions #850

Merged
merged 1 commit into from Mar 6, 2020
Merged

Conversation

mmelko
Copy link
Contributor

@mmelko mmelko commented Mar 5, 2020

fix #786

@ppalaga
Copy link
Contributor

ppalaga commented Mar 5, 2020

#849 came first and it might have an impact on the current one.

@mmelko
Copy link
Contributor Author

mmelko commented Mar 5, 2020

retest this please

Copy link
Contributor

@ppalaga ppalaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mmelko, good work, I especially appreciate the test coverage! Some suggestions inline.

<name>Camel Quarkus :: JAXB extension :: Runtime</name>

<properties>
<firstVersion>1.2.0</firstVersion>
Copy link
Contributor

@ppalaga ppalaga Mar 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<firstVersion>1.2.0</firstVersion>
<firstVersion>1.0.0-M5</firstVersion>

an re-run mvn process-resources -Pformat

Sorry, this used to be incorrectly generated by the template and it should be fixed now for newly stubbed extensions.

#

---
name: "Camel Quarkus JAXB t"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: "Camel Quarkus JAXB t"
name: "Camel Quarkus JAXB Dataformat"

#
# Quarkus
#
quarkus.ssl.native=true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need this?

Comment on lines 25 to 27
quarkus.native.additional-build-args = -H:IncludeResources=test/.*

camel.main.xml-routes = classpath:test/jaxb-routes.xml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we sufficiently test loading the routes from XML elsewhere. I'd vote testing only via Java DSL here.

</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-core-xml</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is camel-quarkus-core-xml required for anything else except loading the XML routes (that I propose to get rid of below)? It would be nice to make sure that camel-quarkus-core-xml is not a hidden dependency of camel-quarkus-jaxb. So I vote for removing camel-quarkus-core-xml if possible.

</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-bean</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the bean component really used? I have not found it anywhere in the routes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was required for some reason when I was using <setBody><simple>${body....} when I will remove xml routes I can delete it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it is required for the simple language when using OGNL like expressions

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

camel-quarkus-bean is still there. Can we remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved route from xml to java dsl so I still need it for simple language in setbody.

Copy link
Contributor

@ppalaga ppalaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few nitpicks, otherwise looks good.

<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jaxb</artifactId>
</dependency>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent


<artifactId>camel-quarkus-integration-test-jaxb</artifactId>
<name>Camel Quarkus :: Integration Tests :: JAXB extension</name>
<description>Integration tests for Camel Quarkus JAXB extension extension</description>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<description>Integration tests for Camel Quarkus JAXB extension extension</description>
<description>Integration tests for Camel Quarkus JAXB extension</description>

</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-bean</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

camel-quarkus-bean is still there. Can we remove it?

Copy link
Contributor

@ppalaga ppalaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @mmelko !

@ppalaga ppalaga merged commit 79b58b6 into apache:master Mar 6, 2020
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.

JAXB dataformat support
3 participants