Open ddyer0 opened 11 months ago
Probably a searate issue, it appears that some ad-hoc parsing of java version is going awry.
G:\share\projects\tyrus\echo-service>javac -version javac 16-ea
G:\share\projects\tyrus\echo-service>mvn clear package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.example:echo-service:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 23, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ----------------------< com.example:echo-service >----------------------
[INFO] Building echo-service 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ war ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.126 s
[INFO] Finished at: 2023-11-09T14:12:40-08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "clear". You must specify a valid lifecycle phase or a goal in the format
G:\share\projects\tyrus\echo-service>
That's a typo: mvn clear
should be mvn clean
.
Same result with mvn clean package
Sorry, but no. With mvn clean
there is no way you get [ERROR] Unknown lifecycle phase "clean".
I followed instructions to construct the "echo service" sample project and imported it into eclipse. It doesn't quite build due to a missing dependency.
Description Resource Path Location Type ClientManager cannot be resolved EchoTest.java /echo-service/src/test/java/com/example line 36 Java Problem ClientManager cannot be resolved to a type EchoTest.java /echo-service/src/test/java/com/example line 36 Java Problem The type org.glassfish.tyrus.client.ClientManager is not accessible EchoTest.java /echo-service/src/test/java/com/example line 14 Java Problem
I'm using eclipse and java 16 on windows.