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

Virgin sample project doesn't build #866

Open
ddyer0 opened this issue Nov 9, 2023 · 4 comments
Open

Virgin sample project doesn't build #866

ddyer0 opened this issue Nov 9, 2023 · 4 comments

Comments

@ddyer0
Copy link

ddyer0 commented Nov 9, 2023

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
Copy link
Author

ddyer0 commented Nov 9, 2023

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
Copy link
Contributor

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

@ddyer0
Copy link
Author

ddyer0 commented Nov 10, 2023

Same result with mvn clean package

@jansupol
Copy link
Contributor

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

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