eclipse-ee4j / tyrus

Tyrus
Other
114 stars 36 forks source link

Virgin sample project doesn't build #866

Open ddyer0 opened 11 months ago

ddyer0 commented 11 months ago

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.

ddyer0 commented 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 : or :[:]:. Available lifecycle phases are: pre-clean, clean, post-clean, validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [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 read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException

G:\share\projects\tyrus\echo-service>

jansupol commented 11 months ago

That's a typo: mvn clear should be mvn clean.

ddyer0 commented 11 months ago

Same result with mvn clean package

jansupol commented 11 months ago

Sorry, but no. With mvn clean there is no way you get [ERROR] Unknown lifecycle phase "clean".