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

Chapter 3 examples fail with a missing dependency #3

Open
keilw opened this issue Jan 20, 2022 · 3 comments
Open

Chapter 3 examples fail with a missing dependency #3

keilw opened this issue Jan 20, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@keilw
Copy link
Collaborator

keilw commented Jan 20, 2022

All chapter 3 examples fail to build with a missing dependency:

[ERROR] Failed to execute goal on project basic-sam: Could not resolve dependencies for project com.apress.jakartasecbook:basic-sam:war:1.0.0-SNAPSHOT: org.omnifaces:authentication-utils:jar:1.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :basic-sam
@keilw keilw added the bug Something isn't working label Jan 20, 2022
@keilw
Copy link
Collaborator Author

keilw commented Dec 1, 2023

Over 90% (all except those under 3-simple-sam-gf) are still broken.
@arjantijms Do you think there's a chance to fix the problem?

@keilw
Copy link
Collaborator Author

keilw commented Dec 1, 2023

Basically the class org.omnifaces.authenticationutils.AuthenticationUtils and the artifact

            <groupId>org.omnifaces</groupId>
            <artifactId>authentication-utils</artifactId>
            <version>1.0</version>

do not exist. And the repository authentication-utils never contained anything.

@arjantijms Is there at least a snapshot for it, or does the class (or a working equivalent) in another library deployed to MavenCentral?

@keilw
Copy link
Collaborator Author

keilw commented Dec 4, 2023

@arjantijms Guess you are too busy with other issues around the foundation of Jakarta EE, but I found a hint for a workaround in
https://arjan-tijms.omnifaces.org/2022/04/whats-new-in-jakarta-security-3.html.

The solution is to upgrade most of these examples to Jakarta EE 10.
I'll do so. The book has one reference to authentication-utils (it propably should have been annotated with another "Outlook to Jakarta EE 10") on page 110/111. Probably something to fix in a second edition, but in the example code I'll fix it for you by using Jakarta EE 10 for all chapter 3 modules except the GF ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant