Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Compiling #58

Open
leowhss opened this issue Nov 28, 2022 · 3 comments
Open

Error Compiling #58

leowhss opened this issue Nov 28, 2022 · 3 comments

Comments

@leowhss
Copy link

leowhss commented Nov 28, 2022

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

@trixon
Copy link
Owner

trixon commented Nov 28, 2022

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.

@leowhss
Copy link
Author

leowhss commented Dec 1, 2022

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.

@trixon
Copy link
Owner

trixon commented Dec 1, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants