How can I supply a castorbuilder.properties file? I need to specify several non-default values in there, or my classes wont be generated properly (that is, they don't even compile). I don't see a way to accomplish this; even though the castorbuilder.properties file is in the project classpath. (I put it in the jaxb-directory, which AFAIK should be part of the project classpath. But it seems that the JAXBBuilder sometimes even removes this file from the jabx folder!)

Also, I need to use the Java2 collection types, but I don't see a way to set this parameter.

Any help is appreciated.