Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7578319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:24:14+00:00 2026-05-30T17:24:14+00:00

this question is very similar to this one but my case is a bit

  • 0

this question is very similar to this one but my case is a bit different

I have a single directory which contains many xsd and wsdl. some of these need to be generated into different packages.

I have configured my pom.xml as following:

    <plugin>
            <groupId>org.jvnet.jaxb2.maven2</groupId>
            <artifactId>maven-jaxb2-plugin</artifactId>
            <version>0.7.1</version>
            <executions>
                <execution>
                    <id>xsd-generate</id>
                    <goals>
                        <goal>generate</goal>
                    </goals>
                    <configuration>
                        <generateDirectory>${project.build.directory}/generated-sources/xsdClasses</generateDirectory>
                        <generatePackage>eu.ist_phosphorus.harmony.common.serviceinterface.databinding.jaxb</generatePackage>
                        <schemaDirectory>resources/webservices</schemaDirectory>
                        <includeSchemas>
                            <!-- we have 3 top level xsd's -->
                            <include>Topology-Types.xsd</include>
                            <include>Reservation-Types.xsd</include>
                            <include>Notification-Types.xsd</include>

                        </includeSchemas>
                        <extension>true</extension>
                        <args>
                            <arg>-Xcopyable</arg> <!-- to make them implement java.lang.Cloneable -->
                        </args>
                        <plugins>
                            <!-- necesary for -Xcopyable to work -->
                            <plugin>
                                <groupId>org.jvnet.jaxb2_commons</groupId>
                                <artifactId>jaxb2-basics</artifactId>
                                <version>0.5.3</version>
                            </plugin>
                        </plugins>
                    </configuration>
                </execution>

                <execution>
                    <id>wsdl-reservation-generate</id>
                    <goals>
                        <goal>generate</goal>
                    </goals>
                    <configuration>
                        <generateDirectory>${project.build.directory}/generated-sources/reservationClasses</generateDirectory>
                        <generatePackage>eu.ist_phosphorus.harmony.common.serviceinterface.reservation</generatePackage>
                        <schemaDirectory>resources/webservices/</schemaDirectory>
                        <includeSchemas>
                            <include>Reservation-WS.wsdl</include>
                        </includeSchemas>
                        <extension>true</extension>
                    </configuration>
                </execution>

                <execution>
                    <id>wsdl-notification-generate</id>
                    <goals>
                        <goal>generate</goal>
                    </goals>
                    <configuration>
                        <generateDirectory>${project.build.directory}/generated-sources/notificationClasses</generateDirectory>
                        <generatePackage>eu.ist_phosphorus.harmony.common.serviceinterface.notification</generatePackage>
                        <schemaDirectory>resources/webservices</schemaDirectory>
                        <includeSchemas>
                            <include>Notification-WS.wsdl</include>
                        </includeSchemas>
                        <extension>true</extension>
                    </configuration>
                </execution>

                <execution>
                    <id>wsdl-topology-generate</id>
                    <goals>
                        <goal>generate</goal>
                    </goals>
                    <configuration>
                        <generateDirectory>${project.build.directory}/generated-sources/topologyClasses</generateDirectory>
                        <generatePackage>eu.ist_phosphorus.harmony.common.serviceinterface.topology</generatePackage>
                        <schemaDirectory>resources/webservices</schemaDirectory>
                        <includeSchemas>
                            <include>Topology-WS.wsdl</include>
                        </includeSchemas>
                        <extension>true</extension>
                    </configuration>
                </execution>

            </executions>

        </plugin>

when I run mvn compile the classes are generated, the problem is that every generated package contains every single class, and not just the one I included wih includeSchemas.

how can I configure the plugin so that every package contains only the classes listed in includeSchemas?

why is my case different to the other question? I cannot put the xsd/wsdl files in different directories since them depend in extra files which I do not think is a good idea to duplicate

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:24:15+00:00Added an answer on May 30, 2026 at 5:24 pm

    I believe your problem is that <includeSchemas> should be <schemaIncludes> (at least with version 0.8.0)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My question popped up a very similar question, this one . But the accepted
My question is very similar to this question but a bit more specific. My
I found a question that was very similar to this one, but using features
I have a very similar question to this question , but I am still
I know that this is a repeated question. I have found very similar questions
My current problem is very similar to this one . I have a downloadFile(URL)
I found a very similar question to mine, but not exactly the same. This
This question is very similar to https://stackoverflow.com/questions/6839516/outlook-2010-reopen-messages which was closed as not being a
My question is similar to this one but I'm having some problems with the
There is a question very similar to this but I wanted to ask it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.