Seems like the plain-credential plugin is not compatible with JCasC.
At least JCasC export cannot describe FileItem class.
plain-credential is using a non describable interface of FileItem from org.apache.commons.fileupload.FileItem not sure how to convert this type to a describable type.