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 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 class, which is part of a code library project that was
i have part of Asp.NET 1.1 project. I work with remote site, which works
I have a project which has some lib's associated with it (in Build Path).
As part of our build process we have to create an Access ACCDB (2007)
Let's say I have an xml file with this part: <tag name=key value=${tag.val}/> This
Our project is held in a SourceSafe database. We have an automated build, which
I have a project which uses groovy 1.7.5 and grails 1.3.4. but my new
I have a project which requires creating Classes dynamically at runtime, where the only
I have a project which uses php's mt_rand() to generate different random integers but
I have a project which I am working on and it has multiple files

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.