What is alternative to package-info.java which is used for JAXB. I don't want this class in project.What are alternative settings for jaxb to skip this?. Thank you.
Is not necessary indeed. You use it if you want to avoid jaxb to put something strange in your code like ns2 or whatever. If you don't like to see strange things in your xml you should put package-info.java in your packages to clearly define things: eg the namespace.
here's a clear example of what i mean Jaxb generated xml - problem with root element prefix