T
T
thatmaniscool2018-07-31 16:21:05
Java
thatmaniscool, 2018-07-31 16:21:05

maven reset error, how to fix?

So, according to the lesson, I created an empty project, created the necessary folders.
Then I went to the project folder, opened the command line, and typed in the following:
mnv -clean package.
The assembly went, but a fatal error occurred. Namely:

C:\Users\MS\Desktop\eclipse-workspace\JavaNioSever>mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< JavaNioSever:JavaNioSever >----------------------
[INFO] Building SimpleJavaServer 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ JavaNioSever ---
[INFO] Deleting C:\Users\MS\Desktop\eclipse-workspace\JavaNioSever\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ JavaNioSev
er ---
[WARNING] Using platform encoding (Cp1251 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ JavaNioSever
---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1251, i.e. b
uild is platform dependent!
[INFO] Compiling 1 source file to C:\Users\MS\Desktop\eclipse-workspace\JavaNioS
ever\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ Ja
vaNioSever ---
[WARNING] Using platform encoding (Cp1251 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ JavaN
ioSever ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.494 s
[INFO] Finished at: 2018-07-31T22:08:54+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
7.0:testCompile (default-testCompile) on project JavaNioSever: Execution default
-testCompile of goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCo
mpile failed.: IllegalArgumentException -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutio
nException

I'm new to this, so it's hard for me to understand what's what. But what should be done to fix this error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Osipov, 2018-07-31
@Shiftuia

Most likely it's the versions of maven and jdk
Try playing around with fonts and versions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question