For others: this was among several issues that Tony and I uncovered. To wit:
1. Update to the latest snapshot if you are using file-based code generation (as opposed to generating from a URL):
<properties>
<codegen-version>2.0.9-SNAPSHOT</codegen-version>
<scala-version>2.9.1</scala-version>
<junit-version>4.8.1</junit-version>
<maven-plugin-version>3.1.0</maven-plugin-version>
</properties>
(note the 2.0.9-SNAPSHOT)
In previous versions, the swagger-codegen code would assume it could tack on the api filenames to the end of the resource api filename, which never works (although that strategy could work for URLs).
2. Upgrade to Java SE 1.7. I had a very persistent OutOfMemoryError that happened on Java 1.6:
Caused by: java.lang.OutOfMemoryError: Java heap space
at scala.collection.mutable.HashMap.get(HashMap.scala:65)
at scala.collection.mutable.MapLike$class.getOrElseUpdate(MapLike.scala:186)
at scala.collection.mutable.HashMap.getOrElseUpdate(HashMap.scala:43)
at scala.tools.nsc.io.ZipArchive.scala$tools$nsc$io$ZipArchive$$ensureDir(ZipArchive.scala:99)
at scala.tools.nsc.io.ZipArchive.getDir(ZipArchive.scala:108)
at scala.tools.nsc.io.FileZipArchive.iterator(ZipArchive.scala:121)
Upgrading made it go away.
-- Duane