While creating some JAXB bindings from some XSD files I have I ran into an error like the following:
$ xjc -p com.foo.data.import foo.xsd -d out [ERROR] The package name 'com.foo.data.import' used for this schema is not a valid package name.
What is the cause of this error? That would be the keyword “import” in the package name. You just can’t use a reserved word in a package name no matter how much you really want to!