By: Ulrich Lang user 23 Jul 2018 at 8:53 p.m. CDT

4 Responses
Ulrich Lang gravatar
Hi I'm trying to build the sample project at https://gluu.org/docs/oxd/3.1.1/libraries/languages/java/, i.e. https://github.com/GluuFederation/oxd/archive/version_3.1.1.zip Any ideas what's wrong? Or do you have another login redirect code example we could reconfigure for our purposes quickly (Java + Apache)? Here is the mvn install output: E:\DATA\Programming\gluu-client\oxd-version_3.1.1>mvn install [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.xdi:oxd-common:jar:3.1.1.Final [WARNING] 'repositories.repository.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ org.xdi:oxd:3.1.1.Final, E:\DATA\Programming\gluu-client\oxd-version_3.1.1\pom.xml, line 66, column 17 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.xdi:oxd-client:jar:3.1.1.Final [WARNING] 'repositories.repository.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ org.xdi:oxd:3.1.1.Final, E:\DATA\Programming\gluu-client\oxd-version_3.1.1\pom.xml, line 66, column 17 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.xdi:oxd-server:jar:3.1.1.Final [WARNING] 'repositories.repository.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ org.xdi:oxd:3.1.1.Final, E:\DATA\Programming\gluu-client\oxd-version_3.1.1\pom.xml, line 66, column 17 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.xdi:oxd-rp-client:jar:3.1.1.Final [WARNING] 'repositories.repository.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ org.xdi:oxd:3.1.1.Final, E:\DATA\Programming\gluu-client\oxd-version_3.1.1\pom.xml, line 66, column 17 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.xdi:oxd-https-extension:jar:3.1.1.Final [WARNING] 'repositories.repository.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ org.xdi:oxd:3.1.1.Final, E:\DATA\Programming\gluu-client\oxd-version_3.1.1\pom.xml, line 66, column 17 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.xdi:oxd:pom:3.1.1.Final [WARNING] 'repositories.repository.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ line 66, column 17 [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] [WARNING] The project org.xdi:oxd:pom:3.1.1.Final uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] oxD [INFO] oxD Common [INFO] oxD Client [INFO] oxD Server [INFO] oxD RP Client [INFO] oxd-https-extension [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building oxD 3.1.1.Final [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ oxd --- [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\pom.xml to C:\Users\ulrich\.m2\repository\org\xdi\oxd\3.1.1.Final\oxd-3.1.1.Final.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building oxD Common 3.1.1.Final [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.4:resources (default-resources) @ oxd-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-common\src\main\resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ oxd-common --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.4:testResources (default-testResources) @ oxd-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ oxd-common --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ oxd-common --- [INFO] Surefire report directory: E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-common\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running TestSuite Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.158 sec Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ oxd-common --- [INFO] [INFO] --- maven-jar-plugin:2.4:test-jar (default) @ oxd-common --- [INFO] [INFO] >>> maven-source-plugin:2.1.2:jar (attach-sources) > generate-sources @ oxd-common >>> [INFO] [INFO] <<< maven-source-plugin:2.1.2:jar (attach-sources) < generate-sources @ oxd-common <<< [INFO] [INFO] [INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ oxd-common --- [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ oxd-common --- [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-common\target\oxd-common.jar to C:\Users\ulrich\.m2\repository\org\xdi\oxd-common\3.1.1.Final\oxd-common-3.1.1.Final.jar [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-common\pom.xml to C:\Users\ulrich\.m2\repository\org\xdi\oxd-common\3.1.1.Final\oxd-common-3.1.1.Final.pom [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-common\target\oxd-common-tests.jar to C:\Users\ulrich\.m2\repository\org\xdi\oxd-common\3.1.1.Final\oxd-common-3.1.1.Final-tests.jar [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-common\target\oxd-common-sources.jar to C:\Users\ulrich\.m2\repository\org\xdi\oxd-common\3.1.1.Final\oxd-common-3.1.1.Final-sources.jar [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building oxD Client 3.1.1.Final [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.4:resources (default-resources) @ oxd-client --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ oxd-client --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.4:testResources (default-testResources) @ oxd-client --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 6 resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ oxd-client --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ oxd-client --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ oxd-client --- [INFO] [INFO] --- maven-jar-plugin:2.4:test-jar (default) @ oxd-client --- [INFO] Building jar: E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-client\target\oxd-client-tests.jar [INFO] [INFO] >>> maven-source-plugin:2.1.2:jar (attach-sources) > generate-sources @ oxd-client >>> [INFO] [INFO] <<< maven-source-plugin:2.1.2:jar (attach-sources) < generate-sources @ oxd-client <<< [INFO] [INFO] [INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ oxd-client --- [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ oxd-client --- [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-client\target\oxd-client.jar to C:\Users\ulrich\.m2\repository\org\xdi\oxd-client\3.1.1.Final\oxd-client-3.1.1.Final.jar [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-client\pom.xml to C:\Users\ulrich\.m2\repository\org\xdi\oxd-client\3.1.1.Final\oxd-client-3.1.1.Final.pom [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-client\target\oxd-client-tests.jar to C:\Users\ulrich\.m2\repository\org\xdi\oxd-client\3.1.1.Final\oxd-client-3.1.1.Final-tests.jar [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-client\target\oxd-client-sources.jar to C:\Users\ulrich\.m2\repository\org\xdi\oxd-client\3.1.1.Final\oxd-client-3.1.1.Final-sources.jar [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building oxD Server 3.1.1.Final [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- git-commit-id-plugin:2.1.12:revision (get-the-git-infos) @ oxd-server --- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] oxD ................................................ SUCCESS [ 0.249 s] [INFO] oxD Common ......................................... SUCCESS [ 2.309 s] [INFO] oxD Client ......................................... SUCCESS [ 0.639 s] [INFO] oxD Server ......................................... FAILURE [ 0.294 s] [INFO] oxD RP Client ...................................... SKIPPED [INFO] oxd-https-extension ................................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.699 s [INFO] Finished at: 2018-07-23T18:51:06-07:00 [INFO] Final Memory: 18M/368M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.1.12:revision (get-the-git-infos) on project oxd-server: .git directory could not be found! Please specify a valid [dotGitDirectory] in your pom.xml -> [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/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :oxd-server E:\DATA\Programming\gluu-client\oxd-version_3.1.1> E:\DATA\Programming\gluu-client\oxd-version_3.1.1>

By Michael Schwartz Account Admin 23 Jul 2018 at 10:03 p.m. CDT

Michael Schwartz gravatar
We have packages for oxd. [https://gluu.org/docs/oxd/install/](https://gluu.org/docs/oxd/install/) The UMA demo I showed at Identiverse is here [https://github.com/GluuFederation/gluu-gateway/tree/master/gg-demo](https://github.com/GluuFederation/gluu-gateway/tree/master/gg-demo) You can also see my [Slides](https://docs.google.com/presentation/d/12p9vgd7w5UKNyibhGIdUYTiqIZs9_ybXWLWxRXYfR9E/edit#slide=id.g3c6339730b_0_0) that show screenshots of the demo. Or are you looking for an OpenID Connect demo?

By Ulrich Lang user 24 Jul 2018 at 12:12 a.m. CDT

Ulrich Lang gravatar
Hi Mike Actually I am just looking for some simple/easy/free Java AuthFilter example that we could put into our Jetty based application to deal with the session/auth checks +redirect if the user is not authenticated. And that talks to Gluu somehow (OpenID Connect or similar) as an identity provider. Makes sense? Ulrich

By Yuriy Zabrovarnyy staff 24 Jul 2018 at 2:31 a.m. CDT

Yuriy Zabrovarnyy gravatar
Ulrich, It happens because you downloaded project as zip file instead of performing `git clone`. oxd is using `git-commit-id-plugin` maven plugin. As said in your log output: ``` [ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.1.12:revision (get-the-git-infos) on project oxd-server: .git directory could not be found! Please specify a valid [dotGitDirectory] in your pom.xml -> [Help 1] ``` We always perform `git clone` which you can do as well to build the project. Otherwise you can add `<failOnNoGitDirectory>false</failOnNoGitDirectory>` to `git-commit-id-plugin`, so it will ignore `.git` folder absence and will build project successfully. Plugin description in `pom.xml` should look as this (on your machine `E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-server\pom.xml`): ``` <plugin> <groupId>pl.project13.maven</groupId> <artifactId>git-commit-id-plugin</artifactId> <version>2.1.12</version> <executions> <execution> <id>get-the-git-infos</id> <goals> <goal>revision</goal> </goals> </execution> </executions> <configuration> <generateGitPropertiesFile>true</generateGitPropertiesFile> <failOnNoGitDirectory>false</failOnNoGitDirectory> </configuration> </plugin> ``` I've added this property by default since 3.1.4, so nobody will face same problem for future versions. (Thank you for reporting it !) `https://github.com/GluuFederation/oxd` is main repo for `oxd-server`, `oxd-https-extension` and `oxd-client`. You can find many tests there which shows how interaction with oxd is performed. However we don't have demo code in this repo. Demo application is located here: `https://github.com/GluuFederation/oxd-java-sample` with quite verbose explanation. Thanks, Yuriy Z

By Ulrich Lang user 26 Jul 2018 at 11:02 a.m. CDT

Ulrich Lang gravatar
thanks - we are being side-tracked and will pick this up in 2-3 weeks. I am also in touch with Mike... I will update this ticket as we get back to this. Thanks