mapton
mapton copied to clipboard
Error Compiling
Hello,
I cloned the latest source and did a maven compile in Windows 11 in Netbeans 15.
file:/C:/Users/Sean/.m2/repository/eu/hansolo/fx/countries/17.0.23/${project.name}-${project.version}.jar
There is an illegal character in the above path. Does anyone have a suggestion on how to resolve this?
Thanks in advance!
Sean
--- maven-compiler-plugin:3.10.1:compile (default-compile) @ core --- Changes detected - recompiling the module! Compiling 165 source files to C:\GitHub\mapton\modules\core\target\classes
COMPILATION ERROR :
error reading C:\Users\Sean.m2\repository\eu\hansolo\fx\countries\17.0.23\countries-17.0.23.jar; java.net.URISyntaxException: Illegal character in path at index 68: file:/C:/Users/Sean/.m2/repository/eu/hansolo/fx/countries/17.0.23/${project.name}-${project.version}.jar error reading C:\Users\Sean.m2\repository\eu\hansolo\fx\heatmap\17.0.12\heatmap-17.0.12.jar; java.net.URISyntaxException: Illegal character in path at index 66: file:/C:/Users/Sean/.m2/repository/eu/hansolo/fx/heatmap/17.0.12/${project.name}-${project.version}.jar org/mapton/core/actions/AboutAction.java:[22,33] cannot find symbol symbol: class ModuleHelper location: package se.trixon.almond.nbp.core 3 errors
Hello @leowhss, I believe it has something to do with Netbeans nbm-maven-plugin, I have had that error for sometime now but in the end, it all works as expected for me.
Does it for you?
I'll have to report this problem to NetBeans since it's out of my hands, AFAICT.
Make sure to pull and rebuild the Almond project also.
Initially, it will not compile if I build from mapton-parent.
I also compiled almond-project.
I opened the Projects for mapton-api and core. From there I built the respective projects. I needed to also add
public static final String KEY_APP_FIRST_RUN = "firstrun";
public static final String KEY_FULL_SCREEN = "fullscreen";
public static final String KEY_APP_START_COUNTER = "startcounter";
to MOptions class in mapton-api before I could compile the project.
With the above, I managed to successfully compile and run from mapton-parent.
Happy to here that you solved it. That three constants are supposed to be in se.trixon.almond.util.OptionsBase since they are used in other apps too.