Currently the maven plugin sets system properties when environmentVariables are specified in the pom. These system properties are never reset however and therefore in a multi-module maven build or in an IDE such as Eclipse those system properties will interfere with other modules that are also using the swagger-codegen maven plugin.
For example if I have module a that generates model objects and module b that generates apis if I run a multi-module build (with a running then b) module b will generate both model objects and apis.