shiro-faces
shiro-faces copied to clipboard
Bintray Forbidden response
When compile application using shiro-faces console shows following
... ... Downloading from bintray-deluan-maven: http://dl.bintray.com/deluan/maven/com/sun/mail/jakarta.mail/maven-metadata.xml ... ... Could not transfer metadata com.sun.mail:jakarta.mail/maven-metadata.xml from/to bintray-deluan-maven (http://dl.bintray.com/deluan/maven): Authorization failed for http://dl.bintray.com/deluan/maven/com/sun/mail/jakarta.mail/maven-metadata.xml 403 Forbidden
JFrog to Shut down JCenter and Bintray
I suggest you manually install shiro-faces
from source code:
- Clone this repository.
-
mvn clean install -U
there are some issues with the documentation tags which can be easily fixed by manually debugging them or applying this diff:
diff --git a/src/main/java/org/apache/shiro/web/faces/tags/PrincipalTag.java b/src/main/java/org/apache/shiro/web/faces/tags/PrincipalTag.java
index 9654d13..4f48508 100644
--- a/src/main/java/org/apache/shiro/web/faces/tags/PrincipalTag.java
+++ b/src/main/java/org/apache/shiro/web/faces/tags/PrincipalTag.java
@@ -12,7 +12,6 @@ import java.lang.reflect.Modifier;
/**
* <p>Tag used to print out the String value of a user's default principal,
* or a specific principal as specified by the tag's attributes.</p>
- * <p/>
* <p> If no attributes are specified, the tag prints out the <tt>toString()</tt>
* value of the user's default principal. If the <tt>type</tt> attribute
* is specified, the tag looks for a principal with the given type. If the
diff --git a/src/main/java/org/apache/shiro/web/faces/tags/UserTag.java b/src/main/java/org/apache/shiro/web/faces/tags/UserTag.java
index bbe853e..c74e0fe 100644
--- a/src/main/java/org/apache/shiro/web/faces/tags/UserTag.java
+++ b/src/main/java/org/apache/shiro/web/faces/tags/UserTag.java
@@ -3,15 +3,16 @@ package org.apache.shiro.web.faces.tags;
import javax.faces.view.facelets.TagConfig;
/**
+ * <p>
* Tag that renders the tag body if the current user known to the system, either from a successful login attempt
* (not necessarily during the current session) or from 'RememberMe' services.
- * <p/>
+ * </p>
* <p><b>Note:</b> This is <em>less</em> restrictive than the <code>AuthenticatedTag</code> since it only assumes
* the user is who they say they are, either via a current session login <em>or</em> via Remember Me services, which
* makes no guarantee the user is who they say they are. The <code>AuthenticatedTag</code> however
* guarantees that the current user has logged in <em>during their current session</em>, proving they really are
* who they say they are.
- * <p/>
+ * </p>
* <p>The logically opposite tag of this one is the {@link GuestTag}.
* *
*
Thanks I will try it.