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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:05:10+00:00 2026-05-26T15:05:10+00:00

I have a need to have a config.xml file in my Eclipse project, and

  • 0

I have a need to have a config.xml file in my Eclipse project, and to use that file as the input to a Maven goal. That goal will use config.xml to auto-generate code (both XML and Java) under a generated/ directory (also in my project).

Thus:

MyProject/
    src/main/config
        config.xml
    src/main/java
        (All my Java source)
    (rest of my project)
    generated
        source/
            java/
            xml/

Thus the Maven goal would get kicked off prior to any compile– or build-related goals and would use config.xml to populate the generated/source/* directories as I need them. Those sources would then be available for subsequent goals to process.

Does such a tool exist? The closest I’ve been able to find is XDoclet but I have two concerns with it:

  1. I can’t tell how flexible it is; i.e., to what degree I can put my own config “stuff” inside of config.xml, give XDoclet an XSD and let it go to town; more on this below
  2. Can’t seem to find any Maven goals/plugins for it

As for the first item/issue, what I mean is this: ideally I’d like to put any kind of XML inside config.xml. So then, this ideal tool should only need an XSD for that XML, and some XSLT (or the likes) to determine how to autogenerate code from the XML found inside the config file.

I am not sure if XDoclet allows for such flexibility.

Any ideas or suggestions? There has to be something out there like this! Thanks in advance,

  • 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-26T15:05:11+00:00Added an answer on May 26, 2026 at 3:05 pm

    XDoclet is pretty flexible, but it purpose it to process java sources and generate something out of it. If you start with some xml, your best choice would be XSLT transformation – xdoclet ist not suitable for this.

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

Sidebar

Related Questions

I have custom checkstyle checks file (called checks.xml), and I'm trying to use that
I have created a custom xml file which I use as a config for
For example I have file config.xml in that file I have following xml content
I have an XML file which I need to read and load the data
I have a flash file with an xml file as flashvars. when I use
I would like to have an xml config file as follows: <?xml version=1.0 encoding=utf-8
I have an Eclipse RCP application where I use NSIS to generate the exe
I need to read some filenames from an xml config file using xmlstarlet with
I have a xml file that changed when i update some values, and i'm
I have an XML file (urlrewrite.xml) that needs a property placeholder resolved. I enable

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.