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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:28:56+00:00 2026-05-27T00:28:56+00:00

I put a jaxb.properties file in the package where my classes are where I

  • 0

I put a jaxb.properties file in the package where my classes are where I use a different JAXB provider (as seen in this link Specifying EclipseLink MOXy as Your JAXB Provider) which I use for unmarshalling.

The following occurs:

  • When I run the project from Eclipse/STS the unmarshalling works OK,
    since it reads the jaxb.properties file.

  • When I build the project with Maven 3 (mvn clean install), the jaxb.properties file isn’t included in the package – therefore those classes can’t unmarshall XML files successfully. Then I have to manually put the jaxb.properties file by navigating to the deployed app, entering the package and pasting the file.

Solutions? Thanks!

  • 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-27T00:28:56+00:00Added an answer on May 27, 2026 at 12:28 am

    You should put resources(like jaxb.properties) in src/main/resources.
    I can’t find any proof/documentation yet, but I am certain that maven will only compile and copy .java files from the src folder.

    From the documentation it seems clear, that compile will only compile and not copy anything. Therefore only .java files under src/main/java will be handled and everything else ignored.

    Resources are handled by resources:resources, which is executed automatically. This target copies resources from src/main/resources.

    Compile only compiles files from the src folder. Resource files are not java files and will therefore not be copied/compiled to the output directory.

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

Sidebar

Related Questions

I am trying to use Eclipselink's MOXy. I put jaxb.properties file in the same
I put this at the top, using sudo vi /etc/profile: PYTHONPATH=/home/myuser:/home/myotheruser When I use
I put together this quick carousel that I'm using to cycle through different divs
Put them all in one separate folder structure or along with classes which implements
Put value as a field makes sense only if this one represents some object's
Put this in your location bar in IE javascript:location.href='http://www.google.com/search?q=something&lt=bar' Watch in horror as it
I use Jersey with JAXB to convert my response to XML. I have several
Under Helios/m2eclipse, when I generated jaxb sources they would be put on the Eclipse
I have an application doing XML<->conversions using Jaxb and automatically generated classes with maven-jaxb2-plugin.
Put simply, I can create 2 dependency properties in a WPF control and put

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.