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 136039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:53:08+00:00 2026-05-11T06:53:08+00:00

What is a good strategy for dealing with generated code? One of our projects

  • 0

What is a good strategy for dealing with generated code? One of our projects uses Apache CXF’s wsdl2java tool to generate JAX-WS stubs for a set of wsdls. How should this code be dealt with?

There are two options that I can see:

  1. Generate the stubs once and store them in version control. With this, you don’t have to deal with IDE classpath issues since you have the source files right there in your tree (or nearby). However, you have a lot of extra clutter in version control in addition to the temptation for someone to monkey with the generated code

  2. The stubs are generated every time at build time. This reverses the pros/cons for #1 in that the developer now has to deal run the build script and add the resulting jars to his/her classpath.

We went with #2 because the annoyance of classpath related issues seemed to outweigh the problems detailed in #1.

What are other people doing? Does anyone have any recommendations to streamline this process?

  • 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. 2026-05-11T06:53:09+00:00Added an answer on May 11, 2026 at 6:53 am

    My attitude is that generated code should practically never be stored in version control. There has to be a compelling reason to do it. I typically create an ant task ‘build-for-eclipse’ that builds all generated code. I run that, refresh the directory into which generated code is created, and voilà, I am fit to go.

    The goal is that you have a ‘one-button’ trivial task that any developer can do so they’ll have all the source — generated and not — in their IDE, but that no output of anything is stored in source control. If it’s the output of a generator, then by definition it’s not source. 🙂

    This should safely meet everyone’s needs.

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

Sidebar

Related Questions

I am looking for a good strategy of dealing with database deadlocks from within
What is a good strategy for dealing with changing product and feature names in
I'm looking for a good strategy to truly decouple, for parallel processing, my web
Does anyone have a good Drupal upgrade strategy for an install that is in
Good afternoon, This should be an easy one. I've done the cookie-cutter default ASP.NET
Good day, We just converted our web application .NET 1.1 to .NET 2.0. We
To avoid spammers, what's a good strategy for imposing limits on users when sending
Is there A good strategy to Log the User activity on an ASP MVC
What is a good strategy for sniffing/tracing function calls between a Flex application and
What is a good strategy for detecting when the position (x, y) of a

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.