Generate features depends on the application class files.
If you have not compiled the application source or if you clean the project then there are no class files. The generate features mojo should raise an error if there is no application to scan.
To recreate this issue try:
mvn clean
mvn liberty:generate-features -DgenerateToSrc=true
It will not generate any features because there is nothing to scan.