Maven best practices seem like they support one project > one jar > one pom.xml.
I have a maven project that can compile and run as a command line program OR as a GUI. Is it bad to have one project with one POM file that creates 2 jars in this case (one for each run type)? Or is there a better way to do it?
Also, I have automated tests in my test package that compile and run as jar files. Is it a bad practice to keep those in the maven test structure and use the same pom file to compile them? Or is it better to put them in a different project?