Skip to content


Subversion checkout URL

You can clone with
Download ZIP


package is already defined as package myPackage #169

mackler opened this Issue · 1 comment

2 participants


I'm just trying out scalaxb for the first time. I ran my W3C schema through it, and gave scalaxb the main package name of my project. When I tried to compile the generated files, I got:

[error] /usr/home/mackler/myProject/src/main/scala/xmlprotocol.scala:9: package is already defined as package myPackage
[error] object `package` extends XMLProtocol { }
[error]        ^
[error] one error found
[error] (compile:compile) Compilation failed
[error] Total time: 6 s, completed Oct 19, 2012 3:42:32 AM

Perhaps it is because I already have a package object defined in the package that I used for the scalaxb files. When I gave scalaxb it's own package name the error went away. I'm just guessing since there's nothing in the documentation warning users about package objects clashing with scalaxb.


Good point. I should document somewhere to use package name that's not being used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.