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

  • Home
  • SEARCH
  • 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 691569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:33:29+00:00 2026-05-14T02:33:29+00:00

I have a project which as part of the build process creates an XMLBeans

  • 0

I have a project which as part of the build process creates an XMLBeans jar file (stbSchemas.jar) which I want to include and reference in this project.

Is this the best way to go about this (Single project) or should I have a child project which is built from the parent project?

I am building this using Maven2 inside Eclipse. Is there a better way to do this so that I can maintain the integrity of the projects and stability of the builds.

  • 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-14T02:33:30+00:00Added an answer on May 14, 2026 at 2:33 am

    Hmm. If I understand correctly, you’re saying that the you need to reference the stbSchemas.jar in your project in order to build some code that DOESN’T go into the stbSchemas.jar file. If that’s a correct assumption, then I think you should probably do a little bit of refactoring so that you have something like this:

    1) a Maven parent pom file at the top level of the project. That parent pom has a modules section that would reference the 2 modules from step 2. E.G:

    <modules>
      <module>stbSchemas</module>
      <module>core</module>
    </modules>
    

    2) Split the code into clean modules. stbSchemas would be the first, your other code would be a 2nd module. Each of those modules gets its own pom.xml file that would reference the parent pom file like this:

    <parent>
           <groupId>parent.group</groupId>
            <artifactId>parent</artifactId>
            <version>1.0-SNAPSHOT</version>
          </parent>
    

    The second module’s pom.xml file would also need a dependency section for stbSchemas.jar, like this:

    <dependency>
      <groupId>my.group</groupId>
      <artifactId>stbSchemas</artifactId>
      <version>1.0-SNAPSHOT</version>
    </dependency>
    

    Then, when you build your second module, it’ll pick up stbSchemas.jar.

    3) Once you’ve got that (or something similar) setup in Maven, you can use the maven eclipse plugin (mvn eclipse:eclipse) to generate a correct eclipse classpath for the whole project. You can then refresh the project in Eclipse, and that will put stbSchemas.jar on the classpath for you.

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

Sidebar

Related Questions

I have a third party jar which is necessary for our project. It is
I have a Java project that uses this driver for serial communication. The driver
As part of a project I'm working on we have a requirement to support
I'm trying to improve our build process, and to that end I've been looking
We have a process at our company that processes TIFF images. I have a
I have a project that uses 3 other projects as libraries and has quite
I have created a project in NetBeans by downloading some third party jars of
n00b here (first Android project). I have been given a custom video codec that
I am brand new to IoC and thus have been following the examples provided
Our project has about 20 developers, but our application makes relatively light use of

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.