-
Notifications
You must be signed in to change notification settings - Fork 99
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
No schemas to compile. Skipping XJC execution #449
Comments
Hi @SebasHein |
Hi @laurentschoelens My XSD files are located in a folder structure like this First I thought it was like this (which I cannot completely exclude - therefore I mention it):
This is weird :-) BUT: Is there maybe something I did wrong with accessing the jaxb plugin during maven build? |
Could you provide the output of You should also remove the |
I did remove the schemaDirectory tag outside of executions. I attached also the log of maven jaxb:generate as requested. |
If I do understand well, everything works as expected expect using |
Well I'm not familiar with this As seen here, you can specify which execution you want to run with additional Don't think this issue is related to plugin itself. @mattrpav any idea ? |
Heads up-- @laurentschoelens @SebasHein I'm tied up w/ ActiveMQ 6 release this week. I'll be able to take a look next week. |
No problem, maybe you'd have some idea about short |
I understand now where the jaxb prefix came from |
@SebasHein |
If you only need seperate package per xsd, please see this wiki page |
I will read all suggested hints as soon as possible. What I need is to have three different XSDs leading to Java classes in three different packages. |
Hi @SebasHein : did you manage to make it work ? |
Hello @SebasHein |
First of all - sorry for the long delay. Short after writing the issues "end of the year" business catched me finally and I had no time for this. And I understood that @mattrpav wanted to investigate more and I was waiting for his answer... I have three XSDs which should result each in an own package. In my case the observed behaviour is not really problematic in meaning that my build does fail. The problem occurs only if I call the maven goal explicitely (mvn:generate). So from my point of view you can close this issue unless @mattrpav has something against? |
I've pinged Matt since I didn't know about By doing so, your configuration should look like : <plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-maven-plugin</artifactId>
<version>4.0.0</version>
<configuration>
<schemaDirectory>${project.basedir}/xjc</schemaDirectory>
<bindingDirectory>${project.basedir}/bindings</bindingDirectory>
<extension>true</extension>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-plugins</artifactId>
<version>4.0.0</version>
</plugin>
</plugins>
</configuration>
</plugin> And the following binding file
You can also look at the configuring target packages in binding files guide (with some adaptation) in the wiki. |
Closing issue, which could be reopened if needed |
Maybe this is related to #250 ?
I have a pom xml with several executions and their configuration. As long as the configuration which contains is contained in the execution the schema is not found.
As soon as I put the element out of the execution and directly below the plugin element it look like it works.
This does NOT work:
This does work for one xsd ...
But I have three XSD files and they should result in three packages, one for each XSD.
Is there another way to do this?
The text was updated successfully, but these errors were encountered: