I have a problem with imports in my generated files. I created two files in two different packages. One of them imports the other. When then compiler runs, there is an error: "The import ... cannot be resolved."
It works well when I proceed it although eclipse says, there are errors. I found a awkward fix: just move the file (which should be imported) from one to an other package. It seems like the compiler compiles again and resolves the imports in the right way.
If you move a file from one package to another and it works then the problem is with the package names, not the order in which compilation proceeds.
If the real problem is that you think that you can generate and compile in one step then that is not possible. What you need to do is generate then compile.