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

CamelCase Always plugin (and other org.andromda.thirdparty.jaxb2_commons plugins) #460

Closed
rbertucat opened this issue Dec 5, 2023 · 12 comments · Fixed by #461
Closed

CamelCase Always plugin (and other org.andromda.thirdparty.jaxb2_commons plugins) #460

rbertucat opened this issue Dec 5, 2023 · 12 comments · Fixed by #461
Assignees
Labels
xjc-plugins Issue concerns basics plugins
Milestone

Comments

@rbertucat
Copy link

I'm trying to migrate from jaxb2 to jaxb4. The CamelCase Always plugin used to work pretty well.

Now in jaxb4, com.sun.xml.bind.api.impl.NameConverter has been updated to org.glassfish.jaxb.core.api.impl.NameConverter so the plugin fails.

Any chance you could suggest a workaround - a plugin doing the same end result? Or do you plan to update the CamelCase Always plugin?

Example:

<plugin>
    <groupId>org.jvnet.jaxb2.maven2</groupId>
    <artifactId>maven-jaxb2-plugin</artifactId>
    <version>0.8.0</version>
    <executions>
        <execution>
            <id>jaxb-generate</id>
            <phase>generate-sources</phase>
            <goals>
                <goal>generate</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <generatePackage>YOUR.PACKAGE.HERE</generatePackage>
        <args>
            <arg>-camelcase-always</arg>
        </args>
        <bindingDirectory>src/main/binding</bindingDirectory>
        <schemas>
            <schema>
                <url>http://YOUR.XSD.HERE</url>
            </schema>
        </schemas>
        <extension>true</extension>
        <plugins>
            <plugin>
                <groupId>org.andromda.thirdparty.jaxb2_commons</groupId>
                <artifactId>camelcase-always</artifactId>
                <version>1.0</version>
            </plugin>
        </plugins>
    </configuration>
</plugin>

From: https://stackoverflow.com/questions/8916398/how-can-i-get-jaxb2-to-emit-camelcase-bindings
Sources are here: https://repo1.maven.org/maven2/org/andromda/thirdparty/jaxb2_commons/camelcase-always/1.0/

@laurentschoelens
Copy link
Collaborator

I look to get source code of this plugin (and others ones if interesting). Maybe we could get this in 4.0.1 which is in staging mode

laurentschoelens added a commit to laurentschoelens/jaxb-tools that referenced this issue Dec 6, 2023
@laurentschoelens laurentschoelens changed the title CamelCase Always plugin CamelCase Always plugin (and other org.andromda.thirdparty.jaxb2_commons plugins) Dec 6, 2023
laurentschoelens added a commit to laurentschoelens/jaxb-tools that referenced this issue Dec 6, 2023
@laurentschoelens
Copy link
Collaborator

laurentschoelens commented Dec 6, 2023

PR provided for camelcase : need to update wiki now 😄

laurentschoelens added a commit to laurentschoelens/jaxb-tools that referenced this issue Dec 6, 2023
@rbertucat
Copy link
Author

Looks good Laurent, thanks. Any chance this will be part of the next release? When is the next release planned for?

@laurentschoelens
Copy link
Collaborator

Need first to get it pass the build workflow 😂
Then @mattrpav will take a look and merge it since I provide the PR
Next release (v4.0.1) will be planned for before Christmas 🎁

laurentschoelens added a commit to laurentschoelens/jaxb-tools that referenced this issue Dec 6, 2023
laurentschoelens added a commit to laurentschoelens/jaxb-tools that referenced this issue Dec 6, 2023
@laurentschoelens
Copy link
Collaborator

Here is the wiki's documentation and how-to use CamelCase plugin from jaxb-tools : https://github.com/highsource/jaxb-tools/wiki/JAXB-CamelCase-Plugin
I've also added extra documentation for the other 4 plugins that were imported from the andromda groupId.

@laurentschoelens laurentschoelens self-assigned this Dec 6, 2023
@laurentschoelens laurentschoelens added the xjc-plugins Issue concerns basics plugins label Dec 6, 2023
@laurentschoelens laurentschoelens added this to the 4.0.1 milestone Dec 6, 2023
@laurentschoelens
Copy link
Collaborator

@rbertucat : this is now merged in master (4.0.1) so be part of the next release by the end of the month.

@rbertucat
Copy link
Author

@laurentschoelens we were able to test on our side and it works great! Thank you so much for the quick turnaround!

@rbertucat
Copy link
Author

@laurentschoelens any update on the 4.0.1 release date please?

@laurentschoelens
Copy link
Collaborator

@mattrpav ?
If all green this week

mattrpav pushed a commit to mattrpav/jaxb-tools that referenced this issue Feb 5, 2024
mattrpav pushed a commit to mattrpav/jaxb-tools that referenced this issue Feb 5, 2024
@laurentschoelens
Copy link
Collaborator

@rbertucat : sorry for the delay but good news, 4.0.2 version has been released. Enjoy

@rbertucat
Copy link
Author

@laurentschoelens thanks for the release. We've been able to switch to 4.0.3, and we are also using the jaxb-maven-plugin directly now. It's working great.

@laurentschoelens
Copy link
Collaborator

Thanks for the feedback @rbertucat 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
xjc-plugins Issue concerns basics plugins
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants