I'm completely new to programming and I just built a Maven project with very poorly structured packages. Now, when I try to run my project from the terminal with the command "mvn compile exec:java -Dexec.mainClass=main.java.main.TakBoard"
, it won't run.
The error message is:
[ERROR] Could not find goal 'java-Dexec.mainClass=main.java.takgame.main.TakBoard' in plugin org.codehaus.mojo:exec-maven-plugin:1.6.0 among available goals exec, help, java -> [Help 1]
My github project link is here, so you can see the structure. Main class is in TakGame/src/java/main/takgame/main/TakBoard.java
I also tried to remove the last main class once and built the project again in NetBeans. Didn't work, so I added the main class again. How can I make this work without having the do the whole project all over again?