Yaml File Scanning Java
I'm Trying to Run a Maven Project Written in Intellij Idea 2020.2.1. I Run into This Error: Org. Yaml. Snakeyaml. Scanner. Scannerexception: While Scanning for...
I'm trying to run a maven project written in intellij idea 2020.2.1.
I run into this error:
org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token
found character '@' that cannot start any token. (Do not use @ for indentation)
in 'reader', line 3, column 15:
artifact: @project.artifactId@
^
at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:420)
at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:226)
There are similar questions (here, or here ) but none has solved my problem.
1 Answer
For me the solution was reload the project and make a maven clean install